if,isna and vlookup formula - need help for my project

crunchtime9999

Board Regular
Joined
Feb 26, 2007
Messages
214
Greetings,
I keep getting a message saying there is an error with my formula and it highlights the 0. Can someone please help me to fix this.

=IF(ISNA(VLOOKUP(CONCATENATE($A2,"EA"),Pricing!$P:$R,3,FALSE),0,VLOOKUP(CONCATENATE($A2,"EA"),Pricing!$P:$R,3,FALSE)))

What I am doing is doing a vlookup on a product is concatenated with the word ea and searching a pricing worksheet for the value. If there is no value I need to return 0 and if there is a value I need to return the value.

Thanks,
I know one of you master can figure this out.
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
I think you need 1 or 2 more ")" after the word "false"

edit:

Just tested it and it looks like it is just 1 more ")" after the 1st "False" before ,0

=IF(ISNA(VLOOKUP(CONCATENATE($A27,"EA"),$A1:$D24,3,FALSE)),0,VLOOKUP(CONCATENATE($A27,"EA"),$A1:$D24,3,FALSE))
 
Upvote 0
Just a misplaced parenthesis, try

=IF(ISNA(VLOOKUP(CONCATENATE($A2,"EA"),Pricing!$P:$R,3,FALSE)),0,VLOOKUP(CONCATENATE($A2,"EA"),Pricing!$P:$R,3,FALSE))
 
Upvote 0
You need another ')' to close the isna funcation.

ie =IF(ISNA(VLOOKUP(CONCATENATE($A2,"EA"),Pricing!$P:$R,3,FALSE)),0,VLOOKUP(CONCATENATE($A2,"EA"),Pricing!$P:$R,3,FALSE))
 
Upvote 0
Just a note: I have been checking my email to see if anyone responded and noticed that my spam filter was set to max so if anyone sent a reply can you please resend.

thanks
 
Upvote 0

Forum statistics

Threads
1,214,839
Messages
6,121,892
Members
449,058
Latest member
Guy Boot

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top