Remove duplicates and retain one. Cross-linked cases

DeeExcel

New Member
Joined
Jan 6, 2020
Messages
9
Office Version
  1. 365
Platform
  1. Windows
Hi all

I ran out of google keywords to use and still couldn't find a reference how to achieve the results of a single count. It would be great if the community could shed some light to my darkness :)

What I'm trying to do is remove the duplicates + all other cross-linked cases and retain one for counting. It doesn't matter which of the cases is counted.

A sample of the table looks as below:

DateCase NoCross Linked Case No
03-Jan-20192019-12002019-1205
03-Jan-20192019-12002019-1206
04-Jan-20192019-12052019-1200
04-Jan-20192019-12052019-1206
04-Jan-20192019-12062019-1200
04-Jan-20192019-12062019-1205

Multiple rows with different Case Nos are created for let's say one interaction with the customer and then cross-linked with each other to denote that its coming from one interaction. But because of this structure, a simple use of remove duplicates didn't work for me, it retains 3 unique case no. instead of counting it as one.

I don't know if there's a way to find all the cross linked case no and perhaps assign a single unique number for all the rows? or any other way to achieve the desired single count.

Thanks all!

D
 
@Peter_SSs
This is why I say I am NOT signed up - here is mine
Insider.jpg
 
Upvote 0

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I'm glad to help you. Thanks for the feedback.
Just a small feedback for future readers --

For a reason that I am not aware of, I have to first sort the Case No. column to A-Z for the macro to give the desired results. Otherwise, I get more. :)

Aside from that, the macro worked beautifully.

Thanks again! I was able to continue with my work.
 
Upvote 0
FYI: Further information about the dynamic array functions, including UNIQUE in this thread from page 2. See also the link in post 16 of that thread.
Seems it is a lottery for who has and has not the new functions. :(
 
Upvote 0
Just a small feedback for future readers --
For a reason that I am not aware of, I have to first sort the Case No. column to A-Z for the macro to give the desired results. Otherwise, I get more. :)

Aside from that, the macro worked beautifully.

Thanks again! I was able to continue with my work.

It depends on which ones you want to keep.
In the following examples the macro takes the first number in the list as a base.
I guess the 2 results are correct, but in your analysis you will have to decide which ones you want to see first, maybe sort them by date :)

Book1
ABCDE
1CaseCrossResult
2175159175
3159175
Sheet


Book1
ABCDE
1CaseCrossResult
2159175159
3175159
Sheet
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,195
Members
453,021
Latest member
pingpong7117

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