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
 

Some videos you may like

Excel Facts

Do you hate GETPIVOTDATA?
Prevent GETPIVOTDATA. Select inside a PivotTable. In the Analyze tab of the ribbon, open the dropown next to Options and turn it off

VBA Geek

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

Watch MrExcel Video

Forum statistics

Threads
1,109,364
Messages
5,528,265
Members
409,811
Latest member
pjwhyman

This Week's Hot Topics

  • Change military grades into rank
    Afternoon all Need help with formula that will change military rank (i.e. 1, 2, 3 into Amn, A1C, SrA). Running IF formula that does not work...
  • VBA COUNTIF SOLUTION
    Hi The following are the errors spread across the several columns from E to Q ie. 13 columns across several sheets with more than 500 rows per...
  • INSERT ROW WITH SPECIFIS TEXT IN A COLUMN
    Hi All! How can identify that that the row to be inserted has to be inserted before 1st row with specific text in column F. If I record the...
  • Auto-Create a monthly Sign in sheet for preschool students
    The image below is what each page looks like. Above is space for the "Child Name" "Month" "Class" School days are obviously Monday-Friday but...
  • VBA vlookup multiple results
    Hi folks, Hopefully someone out there can help. I have a list to vlookup which works (ish). the lookup only picks up the first instance of the...
  • Extract values for earliest/latest times
    I am trying to put together a formula to get the earliest start time, the latest end time from column A for each person in Column B-F without the...
Top