![]() |
#1
|
|||
|
|||
![]()
I'm not sure if IF and Vlookup is the right combination here. I'm working with 2 sheets. 1 Sheet is a long list of account numbers in one column, and their ID # in another column. Tab 2 just has a long list of account numbers. What formula can I use on tab 2 to search tab 1, match the account numbers and then populate the approriate ID #? Any help is appreciated. Thanks. Attached is a shortened example of what I'm referring to.
|
#2
|
||||
|
||||
![]()
Hi
In B2 enter Code:
=VLOOKUP(A2,'tab 1'!$A$2:$B$11,2,FALSE) EDIT to be complete , in XL 2007 you can use Code:
=iferror(VLOOKUP(A2,'tab 1'!$A$2:$B$11,2,FALSE),"") Code:
=if(isna(VLOOKUP(A2,'tab 1'!$A$2:$B$11,2,FALSE),"",VLOOKUP(A2,'tab 1'!$A$2:$B$11,2,FALSE))
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
#3
|
|||
|
|||
![]()
Thanks, that worked in my attached spreadsheet, however when I implemented that into my actual spreadsheet I'm working on I get #REF or #N/A errors. Says that A2 has a constant. I'm not understanding why if I was able to get it to work in my example spreadsheet but not my actual.
|
#4
|
||||
|
||||
![]()
The NA error should not appear if you use the error catching formula
As for the REF error it could be the column index that is faulty. Try the " Evaluate formula" in the Formulas tab of the ribbon and see what happens
__________________
Using O365 v2503 - Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
ibclare | Office | 4 | 06-02-2011 03:22 PM |
![]() |
RogerM | Outlook | 2 | 02-27-2011 06:44 AM |
![]() |
djreyrey | Excel Programming | 10 | 02-08-2011 04:18 PM |
Automated Functions?? | nickypatterson | Outlook | 0 | 08-27-2009 01:50 PM |
How to show help for addin functions? | Movses Asatryan | Excel | 0 | 03-02-2006 05:29 AM |