ISNA VLOOKUP formula error

towners

Board Regular
Joined
Mar 12, 2009
Messages
222
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

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
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

towners

Board Regular
Joined
Mar 12, 2009
Messages
222
Office Version
  1. 365
Platform
  1. Windows
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,195,619
Messages
6,010,736
Members
441,567
Latest member
Flitbee

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