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

#### crunchtime9999

##### Board Regular
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
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
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
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
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

#### crunchtime9999

##### Board Regular
Wow,
thanks for the quick replies. I will try these.

#### barry houdini

##### MrExcel MVP
Here's an alternative:

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

Replies
1
Views
122
Replies
1
Views
218
Replies
0
Views
475
Replies
1
Views
134
Replies
2
Views
287

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.

### Which adblocker are you using?

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

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