Sumproduct/Match

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
593
Office Version
  1. 365
Platform
  1. Windows
I am having a brain block.

I have 4 columns with number and label. a1:a30 are numbers, b1:b30 are labels. C1:c30 are numbers, D1:D30 are labels All in random order.

I am trying to match the labels in column B to the label in Column D and then add the 2 numbers corresponding numbers in column A and C.


5 abc 5 cde
4 cde 4 xyz

so for the label CDE it would return a value of 9 or the sum of c1+a2


Thanks
James
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
Sorry...not working. Here's what I have:=SUMIF(D$1:D$2,B1,C$1:C$2)+A1

and I'm getting 5

[TABLE="width: 523"]
<colgroup><col><col><col><col span="2"></colgroup><tbody>[TR]
[TD]5[/TD]
[TD]abc[/TD]
[TD]5[/TD]
[TD]xyz[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]4[/TD]
[TD]xyz[/TD]
[TD]5[/TD]
[TD]wxy[/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 
Upvote 0
This is working.
Look at the formula.
D1:D2 is matched against B1
B1 is "abc". There is only one "abc" in your list.

You haven't copied the formula down the column either.
If you copy the formula down the column on the second row you get 9 which is correct.
This relates to the "xyz" code
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,816
Messages
6,181,141
Members
453,021
Latest member
Justyna P

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