trying to sum values if values corresponding are the same

Eisaz

New Member
Joined
Nov 17, 2008
Messages
5
[FONT=Verdana, Arial, Helvetica]hiya, i have a small project and i can''t figure it out on myself. What i need to do is to create a formula which
will find the same values in column A and will sum the corresponding to them
values from columns B:E. I have tried SUMIF but if seems not to work in more than 1 columns.
this is a sort of result i want to get:
A B C D E F RESULT:
1 A1 1 5 2 3 A1 31
2 B5 2 6 3 3 A2 19
3 C1 3 7 4 3 B1 22
4 A1 4 8 5 3 B5 37
5 B5 5 9 6 3 C1 33
6 C2 6 1 6 3 C2 16
7 A2 7 2 7 3
8 B1 8 3 8 3
9 C1 9 4 0 3

I would appreciate any ideas how to do this. Thanks and regards,
[/FONT]
 
thanks for such a quick response,
tried this one and doesn't seem to work. maybe i'm doing something wrong, but it gives me circular reference error. also, don't know if that actually makes a difference but im using excel2007.
any ideas ?
 
Upvote 0
you would need to change the cell references to where your data is located. I just did a sample based on the example of gave. My data wasn't in cells A1 .... Sorry for the confusion
 
Upvote 0
confusion isn't your fault - i did get that that i need to change cells ref. :) is it possible that it gives me the error because the cells i'm taking the values from are actually =ref from another sheet ?
 
Upvote 0
confusion isn't your fault - i did get that that i need to change cells ref. :) is it possible that it gives me the error because the cells i'm taking the values from are actually =ref from another sheet ?
That shouldn't be a problem, nor Excel 2007. Here it is:

My formula in B1 is copied across to E1 and down to row 9. Formula in H1 copied down.

Excel Workbook
ABCDEFGHI
1A11523A131
2B52633A219
3C13743B122
4A14853B537
5B55963C133
6C26163C216
7A27273
8B18383
9C19403
10
SUMPRODUCT
 
Upvote 0
it works, thank you very much. i have one more question - to make it easier and more.. automated. Would it be possible, to have the values from column A inserted automaticaly in coumn G? meaning, if we have 2x A1 in column A, than it will insert A1 into column G with sum of all values of A1? i hope i make sense :) i will really appreciate your help, #thanks
 
Upvote 0
Would it be possible, to have the values from column A inserted automaticaly in coumn G?
One way would be to put a heading in column A then

1. Select column A by clicking its heading label.

2. Data|Filter|Advanced Filter...|Copy to another location|Copy to: G1|Unique records only|OK

You may then want to sort column G.

Excel Workbook
ABCDEFGH
1CodeCode
2A11523A131
3B52633B537
4C13743C133
5A14853C216
6B55963A219
7C26163B122
8A27273
9B18383
10C19403
11
SUMPRODUCT
 
Upvote 0

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