Duplicate values

shaggy31

Board Regular
Joined
May 6, 2009
Messages
64
Office Version
  1. 365
Platform
  1. Windows
Hi,

I need help regarding marking duplicate values in Excel. I know for Conditional formatting and highlighting duplicate values but I have one more condition so I don't know how to resolve it.

I have a table in which I keep data of devices that came into our service center. The data consists of income date, serial number, description, etc.
Now I would like to track and highlight the device (serial number) if it has come back to the center in the last six months (for example, we will see maybe it will be some different period but it doesn't matter for the question).

The table looks something like this:

Receive dateSerial No.ClientDescription...
1.1.2023
YYYYYYYYYYClient1sdfsdsd...
14.1.2023
XXXXXXXXXXClient2trettrgfd...
28.2.2023​
ZZZZZZZZZZClient3gfdgfdgfdg...
1.3.2023​
AAAAAAAAAAClient4ghfgh5hfg...
1.3.2023​
NNNNNNNNNClient2fgfdgbfdb...
14.5.2023​
PPPPPPPPPClient5fgfdgdgdg...
10.6.2023
YYYYYYYYYYClient1fgfdgfdgfdgfd...
7.7.2023
XXXXXXXXXXClient2fgfdgdgfdg...
...............

In this example, the Serial number XXXXXXXXX should be highlighted because it was received again in the last six months, but YYYYYYYY shouldn't be because it has past six months.

Best regards,
Shaggy
 
No, you didn't understand me... Data was inputted as Text from the start, but still Excel looks at only the first 15 characters.
The format of the data is o.k. (example: 123456789012345678901234 and 123456789012345678943210), but Excel compares the first 15 characters (bold) and says it is duplicate, but it isn't.
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Ahhh, I see what you mean; the COUNTIF function must be converting your text value back into a number; if your values are unique enough, you could ensure they remain as text by putting a wildcard in front of the cell reference, such as $B$2:$B$9,"*"&B2 instead of $B$2:$B$9,B2. Otherwise, avoid COUNTIF altogether with something like
Excel Formula:
=MATCH(1,($B$2:$B$9=B2)*($A$2:$A$9>=EDATE(A2,-6))*($A$2:$A$9<A2),0)
 
Upvote 0

Forum statistics

Threads
1,223,248
Messages
6,171,027
Members
452,374
Latest member
keccles

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