Remove Multiple Duplicates

kumara_faith

Well-known Member
Joined
Aug 19, 2006
Messages
922
Office Version
  1. 365
Hi,

I have the following table:

Book2
BCDEFGH
3Table 1Table 2
4Receipt NoInvoice 1Invoice 2Receipt NoInvoice 1Invoice 2
5ABC123JH11457KN44578ABC123JH11457KN44578
6ABC123JH11457KN44578ABC123JH11458KN44579
7ABC123JH11458KN44579NNB456GF11457RE77895
8NNB456GF11457RE77895NNB456KL44789RE44778
9NNB456GF11457RE77895
10NNB456KL44789RE44778
Sheet1


Table 1 has the raw data. Each receipt number has two type of invoices. However, there seems to be duplicates in invoice numbers. Example for receipt number ABC 123, invoice number JH11457 and invoice number KN44578 is repeated twice.

The correct end results is as per Table 2

I am not sure how to formularize this as I cant use a normal unique formula as the receipt number can be repeated twice since there can be different invoices for the same receipt number as per Table 2.

Is there a way to use formula to derive Table 2? Appreciate all the help.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
How about
Excel Formula:
=UNIQUE(B5:D10)
Or you could use the remove duplicates function on the data tab.
 
Upvote 0
Solution
Hi Fluff,

Thank you and that worked. Didn't realize I can use the unique function that way on multiple columns. Appreciate your time and patience ?. Have a great day.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,214,832
Messages
6,121,854
Members
449,051
Latest member
excelquestion515

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