how to do this lookup?

bigdan

Well-known Member
Joined
Oct 5, 2009
Messages
827
Office Version
  1. 2013
Platform
  1. Windows
Please see table below.

I'm trying to figure out how to do a lookup for these values?

For example if I wanted to know how many CPU's were sold by Dell, the answer below is 11. But what would be the way to do that lookup? I know how to do vlookups and sumifs but can't figure this one out.

Thanks!


WalmartTargetDellAmazon
Toothbrush1234
Toothpaste5678
CPU9101112
Monitor13141516

<tbody>
</tbody>
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
L

Legacy 436357

Guest
Maybe like this:

Excel Workbook
BCDEFGH
2WalmartTargetDellAmazonCPU
3Toothbrush1234Dell
4Toothpaste567811
5CPU9101112
6Monitor13141516
Sheet1
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
73,213
Office Version
  1. 365
Platform
  1. Windows
Another option


Excel 2013/2016
ABCDEFGH
1WalmartTargetDellAmazonCPUDell
2Toothbrush123411
3Toothpaste5678
4CPU9101112
5Monitor13141516
Cover
Cell Formulas
RangeFormula
G2=INDEX(B2:E5,MATCH(G1,A2:A5,0),MATCH(H1,B1:E1,0))
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
73,213
Office Version
  1. 365
Platform
  1. Windows
Glad we could help & thanks for the feedback
 
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,017
Messages
5,834,960
Members
430,330
Latest member
drAli77

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