VLOOKUP with Array Return 0 Instead of #N/A for Missing Data

josephekdahl

New Member
Joined
Mar 30, 2006
Messages
15
Hi,

I have the following VLOOKUP: =SUM(VLOOKUP(C5,'Closed-Won Opps'!A:H,{4,5},FALSE)). I need it to return "0" where data is missing instead of #N/A.

I'm not dead set on having an array, but tried it by adding lookups (VLOOKUP + VLOOKUP) and adding ISERROR or ISNA and am not having any luck.

Any help on the correct syntax for this would be greatly appreciated.
Thanks,
Joe
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.

VBA Geek

MrExcel MVP
Joined
Dec 16, 2013
Messages
2,857
iferror is better because it doesn't duplicate the call to the VLOOKUP
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,300
Messages
5,836,489
Members
430,435
Latest member
Benforest1

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