ISNA VLOOKUP formula error

towners

Board Regular
Joined
Mar 12, 2009
Messages
225
Office Version
  1. 365
Platform
  1. Windows
Hi,

I'm attempting to create a formula that sets to zero any cell that is blank on my VLOOKUP. The VLOOKUP works fine however when I use this code I get "formula contains an error" and the "0" is highlighted.

=IF(ISNA(VLOOKUP($B$1&"Line "&$A$5&$B5,'Daily Data'!$A:$AA,19,FALSE),0,VLOOKUP($B$1&"Line "&$A$5&$B5,'Daily Data'!$A:$AA,19,FALSE))

Can anyone help? btw it's excel 2002

Many thanks

Paul
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Try

=IF(ISNA(VLOOKUP($B$1&"Line "&$A$5&$B5,'Daily Data'!$A:$AA,19,FALSE)),0,VLOOKUP($B$1&"Line "&$A$5&$B5,'Daily Data'!$A:$AA,19,FALSE))
 
Upvote 0
You're a very, very, very nice man. Thank you for swift and effective response - have a great day!
 
Upvote 0

Forum statistics

Threads
1,214,985
Messages
6,122,606
Members
449,089
Latest member
Motoracer88

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