SUMIF based on the criteria appearing in multiple Columns

ToxicDeath

New Member
Joined
Oct 2, 2014
Messages
2
Hello, tried to have a look but not sure if this has been posted before.

I have a worksheet with a lot of personal values based on seperate investments and I am trying to total each investment without having to manipulate the data, the issue is that some people have 12 funds and they are not in the same order, so it looks a bit like below;

Fund 1 Value 1 Fund 2 Value 2 Fund 3 Value 3
A 2 B 2 C 2
C 2 A 2 B 2
B 2
A 2 C 2

I can do anything with the headers and just need the data as follows

A 6
B 6
C 6

Any help would be greatly appreciated

Andrew
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Let's assume that A1:F5 contains the table, I2 contains A, I3 contains B, and I4 contains C. Try...

J2, copied down:

=SUMIF($A$2:$E$5,I2,$B$2:$F$5)

Adjust the ranges, accordingly.

Hope this helps!
 
Upvote 0
Re: SUMIF based on the criteria appearing in multiple Columns *SOLVED*

Let's assume that A1:F5 contains the table, I2 contains A, I3 contains B, and I4 contains C. Try...

J2, copied down:

=SUMIF($A$2:$E$5,I2,$B$2:$F$5)

Adjust the ranges, accordingly.

Hope this helps!

Thanks for this, it was the starting at columb B on the Range that was causing me an issue, chhers
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,939
Members
449,094
Latest member
teemeren

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