Sumproduct/Match

JTL9161

Well-known Member
Joined
Aug 29, 2012
Messages
565
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

Create a chart in one keystroke
Select the data and press Alt+F1 to insert a default chart. You can change the default chart to any chart type
Sorry...not working. Here's what I have:=SUMIF(D$1:D$2,B1,C$1:C$2)+A1

and I'm getting 5

5abc5xyz5
4xyz5wxy

<colgroup><col><col><col><col span="2"></colgroup><tbody>
</tbody>
 
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,213,507
Messages
6,114,029
Members
448,543
Latest member
MartinLarkin

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