How to auto merge duplicate cells in a column?

Pancakey

New Member
Joined
Sep 27, 2023
Messages
22
Office Version
  1. 2021
Platform
  1. Windows
Hello,

I am curious to know if there is a way to auto merge cells with duplicate values within a column?
See below sample data.

NamesValues
Jack65
Arielle44
Arielle44
Tim30
Tim30
Tim30
Mary28
Anna50
Mary28
Mary28
Mary28
Liam68
Liam68
Ken45
 
An alternative with Power Query. No formula. Only the UI.

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Removed Duplicates" = Table.Distinct(Source)
in
    #"Removed Duplicates"

Book1
ABCDE
1NamesValuesNamesValues
2Jack65Jack65
3Arielle44Arielle44
4Arielle44Tim30
5Tim30Mary28
6Tim30Anna50
7Tim30Mary10
8Mary28Liam68
9Anna50Ken45
10Mary28
11Mary28
12Mary10
13Liam68
14Liam68
15Ken45
16340
Sheet1
Cell Formulas
RangeFormula
B16B16=SUM(TAKE(UNIQUE(A2:B15),,2))
 
Upvote 0

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand

Forum statistics

Threads
1,215,184
Messages
6,123,533
Members
449,106
Latest member
techog

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