Multiple criteria lookup and add

AGriffiths73

New Member
Joined
Dec 15, 2021
Messages
2
Office Version
  1. 365
Platform
  1. Windows
Hi everyone, I really need some help as my brain has popped!

I have a spreadsheet with three tabs. One is a dashboard to bring together values from the other two. The purpose is to calculate the quantity of items per county so I can determine volumes needed for storage.

The sheets are:

Dashboard - all the countries combined from the two 'data' sheets, in one list sorted A-Z in col. B - and the type of device for Customer 1 in Row 3, and the type of device for Customer 2 in Row 4 - since the device types are not quite the same and I don't want to have a generic device type.
Customer 1 - device types in Row 2, countries in Col. B
Customer 2 - devices types in Row 2, countries in Col. B

On the Dashboard tab, I need a formula that will lookup the country in Col. B, then lookup the device type for Customer 1, then do the same for Customer 2 and add the two values together, so that for each county I have a total of device type in the correct cell.

A problem I have is that not all countries exist on both Customer tabs, so even when I have tried using a simple formula, and one country is in one tab but not the other, I get either N/A or 0 based on how I've constructed the formula.

Please help!
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
how have you constructed the formula
perhaps include an IFERROR(Formula, 0)
with a zero
so if an error on the lookup, ie NOT Found , it will replace with a zero
So you should get at least Cust1 or 2 if 1 of them is not in the table to lookup

IFERROR(Formula-cust1, 0) + IFERROR(Formula-cust2, 0)
 
Upvote 0
how have you constructed the formula
perhaps include an IFERROR(Formula, 0)
with a zero
so if an error on the lookup, ie NOT Found , it will replace with a zero
So you should get at least Cust1 or 2 if 1 of them is not in the table to lookup

IFERROR(Formula-cust1, 0) + IFERROR(Formula-cust2, 0)
Wonderful!!! Thank you so much!
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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