Merging cells based on the merging in another column and SUM them up

diurpaneus

New Member
Joined
Jun 2, 2023
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hi all,

I found this lovely community while googling for a solution to an issue I have. I want to kindly ask for your help with it.

I have this huge dataset, with 8000+ rows. It is basically an exported *.xlsx file from a database. For each client there is a specific ID and next to it there is a column with how many times that client was logged in. The database crates a separate row for each date - so after sorting according to Client_ID i had all client IDs grouped by number. Afterwards I found a VBA that enabled me the merge the cells with the same client ID - as in from Scenario 1 I am now in Scenario 2.

Now I am stuck - I want now to merge the cells on the colum Times_logged, based on the merging in column Client_ID AND to sum up the values. I found VBAs that merge cells based on the merging in other columns on this forum, but without summing the values up.


Could someone please help me out with some advice?

Thanks a lot in advance!!
 

Attachments

  • Scenario_1.png
    Scenario_1.png
    7.5 KB · Views: 9
  • Scenario_2.png
    Scenario_2.png
    5.8 KB · Views: 9

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Pivot Table ?
Book3
ABCDEF
1ClientTimes Log
2329875Row LabelsSum of Times Log
3329871329876
4329920329920
5329931329936
6329935329989
73299853300127
8329984330024
9330011330044
10330012330070
113300124330112
12330024Grand Total58
13330044
14330040
15330070
16330111
17330111
Sheet1
 
Upvote 0

Forum statistics

Threads
1,215,097
Messages
6,123,076
Members
449,094
Latest member
mystic19

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