Complex match / lookup calculation, is this possible?

eduzs

Well-known Member
Joined
Jul 6, 2014
Messages
704
Office Version
  1. 2019
  2. 2010
Platform
  1. Windows
I have a sheet like that:

FOODWATERTOOLSFOODBOOKSBOOKSWATER
CL11015
CL3
CL13045
CL2

There's repetition in columns A rows, and in columns B-H. row 1.
I need to consolidate thist something like that:
FOODWATERTOOLSBOOKS
CL1formula? =10+15+30+45=100
CL2
CL3

Which formula can I use to totalize in the table above??
* Columns and rows are not fixed position, may repeat n times (lookup? match? sumifs?)
The result will consolidate the values from the 1st table in the second table, that does not have repetition of FOOD/WATER/TOOLS/BOOKS or CL1...CL3
Thanks
 
Last edited:

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Try:
Book1
ABCDEFGH
1FOODWATERTOOLSFOODBOOKSBOOKSWATER
2CL11015
3CL31212
4CL13045
5CL2105
6
7FOODWATERTOOLSBOOKS
8CL1100000
9CL201500
10CL300024
Sheet3
Cell Formulas
RangeFormula
B8:E10B8=SUMPRODUCT(($A$2:$A$5=$A8)*($B$1:$H$1=B$7)*$B$2:$H$5)
 
Upvote 0
You're welcome. Thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,722
Members
449,465
Latest member
TAKLAM

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