Combining transactions

kevmono

New Member
Joined
Feb 9, 2019
Messages
7
Good evening,

There are occasions when I am presented with line level detail and need to sum related lines into a single transaction. At the moment I sort and subtotal related lines and copy detail from the cells above into subtotal lines.
This be as follows:

Date Unique Reference Line Number Value

xx XXX 1 10
xx XXX 2 25

xx XXX total 35

On the above, I would like to show one row showing detail held in total line only. If there is one row return one row only etc.

Can anybody help with how to show all the detail in a single row.

Thanks for reading.

Kevin
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
try PowerQuery aka Get&Transform

Column1Column2Column3Column1Sum
xx XXX
1​
10​
xx XXX
35​
xx XXX
2​
25​

Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Grouped Rows" = Table.Group(Source, {"Column1"}, {{"Sum", each List.Sum([Column3]), type number}})
in
    #"Grouped Rows"[/SIZE]
 
Upvote 0
Thank you, I will try when I return home. This looks a lot more simple than my convoluted solution.
 
Upvote 0

Forum statistics

Threads
1,214,516
Messages
6,119,978
Members
448,934
Latest member
audette89

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