Remove multiple Nos. with 1 condition

RAJESH1960

Banned for repeated rules violations
Joined
Mar 26, 2020
Messages
2,313
Office Version
  1. 2019
Platform
  1. Windows
Hello guys
Need your help to enter formula - The invoice numbers in some of the rows are a repeat which I want to delete. I am trying to enter a formula to get 1 invoice number in the F column if the invoice number is a repeat then it should show blank. As the data has more than 800 vouchers, manually deleting them takes a lot of time. A formula will reduce the time to get the solution, after which I can sort the data and delete the blank cells. There is one condition to be added to the formula, If the customer name and invoice number are the same, then only one invoice number should show in the F column.
Seperate Multiple Invoice Nos..xlsx
ABCDEF
1TINInvoice numberGet 1 Invoice No.
21Customer 12192
32Customer 12192
43Customer 3107
54Customer 4108
65Customer 4108
76Customer 4108
87Customer 7102
98Customer 850
109Customer 850
1110Customer 10INC/2050
1211Customer 10INC/2050
1312Customer 23108
1413Customer 232192
1514Customer 25451891630
1615Customer 26108
1716Customer 26108
1817Customer 272050
1918Customer 281
2019Customer 281
2120Customer 281
Seperate Multiple Invoice Nos
Cells with Conditional Formatting
CellConditionCell FormatStop If True
E2:E21Expression=COUNTIFS(C$2:C$19979,C2,E$2:E$19979,E2)>1textNO
E2:E21Expression=COUNTIFS(D$2:D$1814,D2,E$2:E$1814,E2)>1textNO
 

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
I got it right. =IF(COUNTIFS(C$2:C3,C3,E$2:E3,E3)=1,E3,"").
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,755
Members
448,989
Latest member
mariah3

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