If/then and Vlookup formula
Sorry about that...
Change the B to an A in the formula. Should read:
=if(isnumber(match(A2,Sheet2!$A$2:$A$1072,0)),"Bud geted","Not
Budgeted")
Ed
On Mar 12, 2:25 pm, Ashley wrote:
Hi Edward. First and foremost, thanks for your help! I tried this formula
and it didn't work properly either. It gave Not Budgeted for all accounts,
including those that were budgeted.
"Edward" wrote:
Yes. The Vlookup is not finding the lookup value in the specified
range (as you are expecting) and therefore giving a #N/A error. Just
stick an isnumber around a match function. Here's a similar formula.
=if(isnumber(match(A2,Sheet2!$A$2:$B$1072,0)),"Bud geted","Not
Budgeted")
On Mar 12, 2:00 pm, Ashley wrote:
Hi all!
What I am trying to do:
In Sheet 1, column A, I have a list of account numbers. In Sheet 2, Column
A, I have another list of account numbers. If an account in Sheet 1 column
A, is also in Sheet 2, column A, then the account is budgeted; If an account
in Sheet 1 column A is not in Sheet 2, column A, then the account is not
budgeted.
I'm not the cleverest with the formulas, and this is what I have tried and
am not getting the best results:
=IF(A2=(VLOOKUP(A2,Sheet2!$A$2:$B$1072,1,FALSE))," Budgeted","Acct Not
Budgeted")
It is working for accounts that are budgeted, but for accounts that aren't
budgeted, I'm getting #N/A. I assume this has something to do with the
VLookup.
Any help as to where I'm going wrong would be greatly appreciated. Thank you.- Hide quoted text -
- Show quoted text -
|