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

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)

erock24

Well-known Member
Joined
Oct 26, 2006
Messages
1,161
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))
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
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))
 

FlyingKiwi

New Member
Joined
Aug 1, 2007
Messages
6
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))
 

crunchtime9999

Board Regular
Joined
Feb 26, 2007
Messages
214
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
 

barry houdini

MrExcel MVP
Joined
Mar 23, 2005
Messages
20,825
Here's an alternative:

=IF(COUNTIF(Pricing!$P$P,$A2&"EA"),VLOOKUP($A2&"EA",Pricing!$P:$R,3,0),0)
 

Forum statistics

Threads
1,181,649
Messages
5,931,215
Members
436,784
Latest member
amuljono

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
Top