Data required to be compiled and added up, maybe INDEX?

Scott Woody

New Member
Joined
Feb 7, 2019
Messages
2
Hi there! Sorry I'm not very good at Excel and have been struggling on this for a while - I've tried so many methods and tried hard to search for an answer..

Basically I'm creating a document to help me to do my job better and I am very limited to what I can do.

The report I require the data from is like follows
[TABLE="width: 500"]
<tbody>[TR]
[TD]11111
[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]11112
[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]11111[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]11114[/TD]
[TD]6[/TD]
[/TR]
[TR]
[TD]11111[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]11111
[/TD]
[TD]1[/TD]
[/TR]
</tbody>[/TABLE]

I'm looking to basically paste this report into a pre-made workbook every week and it will update my user sheet, I require it to add up all the values for each row.

e.g. 11111 is 10

Thank you in advance for any help and apologies if I have not explained it well enough!
 

Excel Facts

Enter current date or time
Ctrl+: enters current time. Ctrl+; enters current date. Use Ctrl+: Ctrl+; Enter for current date & time.
How about PowerQuery (Get&Transform)?

Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"Column1"}, {{"Sum", each List.Sum([Column2]), type number}})
in
    #"Grouped Rows"[/SIZE]

[Table="width:, class:head"]
[tr=bgcolor:#FFFFFF][td=bgcolor:#5B9BD5]Column1[/td][td=bgcolor:#5B9BD5]Column2[/td][td][/td][td=bgcolor:#70AD47]Column1[/td][td=bgcolor:#70AD47]Sum[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
11111​
[/td][td=bgcolor:#DDEBF7]
4​
[/td][td][/td][td=bgcolor:#E2EFDA]
11111​
[/td][td=bgcolor:#E2EFDA]
10​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
11112​
[/td][td]
1​
[/td][td][/td][td]
11112​
[/td][td]
1​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
11111​
[/td][td=bgcolor:#DDEBF7]
2​
[/td][td][/td][td=bgcolor:#E2EFDA]
11114​
[/td][td=bgcolor:#E2EFDA]
6​
[/td][/tr]

[tr=bgcolor:#FFFFFF][td]
11114​
[/td][td]
6​
[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td=bgcolor:#DDEBF7]
11111​
[/td][td=bgcolor:#DDEBF7]
3​
[/td][td][/td][td][/td][td][/td][/tr]

[tr=bgcolor:#FFFFFF][td]
11111​
[/td][td]
1​
[/td][td][/td][td][/td][td][/td][/tr]
[/table]
 
Upvote 0
Welcome to the forum.

There are many ways to achieve this. One would be a PivotTable. Another would be formulas. One set uses the new dynamic arrays and spilling functions in Excel365. The other uses function SUMIFS, but you will have to type in each of the possible Identity terms to make it work, as in G2 through G4 here.

[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]
Book1
ABCDEFGH
1IdentityValueIdentitysum of ValueIdentitysum of Value
211111411111101111110
3111121111121111121
4111112111146111146
5111146
6111113
7111111
Sheet10
Cell Formulas
RangeFormula
D2=UNIQUE(A2:A7)
E2=SUMIFS(B2:B7,A2:A7,D2#)
H2=SUMIFS($B$2:$B$7,$A$2:$A$7,G2)
H3=SUMIFS($B$2:$B$7,$A$2:$A$7,G3)
H4=SUMIFS($B$2:$B$7,$A$2:$A$7,G4)
[/FONT]
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,287
Members
452,631
Latest member
a_potato

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