Extract duplicate value from table

kparthy

New Member
Joined
Aug 23, 2018
Messages
2
Hi,
I am new to excel formulas. I need a help.
I need to extract duplicated value from column 1 & Column 2 and write it in ascending order in Column Duplicate. One criteria to consider is if a cell in column 3 is empty then no need to consider that row.

Attached the sample file in this https://we.tl/t-hV5DSwMoAJ

Thanks
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Try PowerQuery

Code:
[SIZE=1]let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    #"Changed Type" = Table.TransformColumnTypes(Source,{{"COLUMN 1", Int64.Type}, {"COLUMN 2", Int64.Type}, {"COLUMN 3", Int64.Type}}),
    #"Filtered Rows" = Table.SelectRows(#"Changed Type", each ([COLUMN 3] <> null)),
    #"Removed Columns" = Table.ToColumns(Table.RemoveColumns(#"Filtered Rows",{"COLUMN 3"})),
    #"Converted to Table" = Table.FromList(#"Removed Columns", Splitter.SplitByNothing(), null, null, ExtraValues.Error),
    #"Expanded Column1" = Table.ExpandListColumn(#"Converted to Table", "Column1"),
    #"Kept Duplicates" = let columnNames = {"Column1"}, addCount = Table.Group(#"Expanded Column1", columnNames, {{"Count", Table.RowCount, type number}}), selectDuplicates = Table.SelectRows(addCount, each [Count] > 1), removeCount = Table.RemoveColumns(selectDuplicates, "Count") in Table.Join(#"Expanded Column1", columnNames, removeCount, columnNames, JoinKind.Inner),
    #"Sorted Rows" = Table.Sort(#"Kept Duplicates",{{"Column1", Order.Ascending}}),
    #"Removed Duplicates" = Table.Distinct(#"Sorted Rows")
in
    #"Removed Duplicates"[/SIZE]

example file
 
Last edited:
Upvote 0
Thanks for your reply. I don't have this power query.
Is there any formulas in normal excel to meet this requirement.
 
Upvote 0
PowerQuery free add-in from MS site for Excel 2010/2013
PowerQuery (Get&Transform) built-in - Excel 2016 and higher
---
I don't know formula
 
Upvote 0

Forum statistics

Threads
1,214,905
Messages
6,122,174
Members
449,071
Latest member
cdnMech

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