Vlookup formula across multiple tables #N/A when lookup not present

Beh162

Board Regular
Joined
Jan 15, 2015
Messages
132
My goal to count how many Blocks a certain EE# has across 7 days, but there are days where they may not be present in the data. The current formula i'm using =SUM(VLOOKUP(B3,$B$18:$E$73,2,),VLOOKUP(B3,$H$18:$K$73,2,0),VLOOKUP(B3,$N$18:$Q$73,2,0),VLOOKUP(B3,$T$18:$W$73,2,0),VLOOKUP(B3,$Z$18:$AC$73,2,0),VLOOKUP(B3,$AF$18:$AI$73,2,0),VLOOKUP(B3,$AL$18:$AO$73,2,0))

Gives me an error of #N/A if one of the days that lookup value EE 13 isn't present. Should I be using a better option?

In my screen shot H16 doesn't have #13 so it's giving me the error. Thanks!
 

Attachments

  • 9.27Screenshot 2024-09-27 104201.jpg
    9.27Screenshot 2024-09-27 104201.jpg
    88.5 KB · Views: 4

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
What version of Excel are you using?

I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)
 
Upvote 0
What version of Excel are you using? (I recommend updating your user profile to show this.) The answer might be different for recent versions vs. older ones.

You should bracket each VLOOKUP with

IFERROR(VLOOKUP(B3,$B$18:$E$73,2,),0)



From the limited glimpse I get from your screenshot, I would say your data design is a problem. If you redesign your data layout this could be done with a single SUMIF function.
 
Last edited:
Upvote 1
What version of Excel are you using? (I recommend updating your user profile to show this.) The answer might be different for recent versions vs. older ones.

You should bracket each VLOOKUP with

IFERROR(VLOOKUP(B3,$B$18:$E$73,2,),0)



From the limited glimpse I get from your screenshot, I would say your data design is a problem. If you redesign your data layout this could be done with a single SUMIF function.
This solved my problem! Thank you!
 
Upvote 0

Forum statistics

Threads
1,222,903
Messages
6,168,939
Members
452,227
Latest member
sam1121

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