Counting Duplicate Values

Buck2919

New Member
Joined
Jan 7, 2020
Messages
16
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
Hi,

I'm pulling togther a number of files and need to know if this is the first time something has been on an insurer statement.

I've created a merge column to concatenate key indicators.

I want to add a column to count how many times the contact appears - Where the number is 1 this would indicate the first time and i want to add a conditional column to identify these.

How do i calculate the contact column?

Thanks
Michael
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
here is an example

sourceresult
itemvalue itemCountvalue
item15item135
item26item216
item34item324
item13item133
item39item329
item15item135

Rich (BB code):
// Table1
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    Index = Table.AddIndexColumn(Source, "Index", 1, 1),
    Group = Table.Group(Index, {"item"}, {{"Count", each Table.RowCount(_), type number}, {"CAR", each _, type table}}),
    Expand = Table.ExpandTableColumn(Group, "CAR", {"value", "Index"}, {"value", "Index"}),
    Sort = Table.Sort(Expand,{{"Index", Order.Ascending}}),
    IndexOut = Table.RemoveColumns(Sort,{"Index"})
in
    IndexOut
you can expand all columns what you need
 
Upvote 0

Forum statistics

Threads
1,225,691
Messages
6,186,467
Members
453,358
Latest member
Boertjie321

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