Highlight duplicate values with conditions

messa57fr

New Member
Joined
Dec 1, 2022
Messages
6
Office Version
  1. 2019
Platform
  1. MacOS
Hi everyone,

Thanks for reading my post, I'm looking to highlight duplicate values within 24 hours from the previous duplicate value.

I'm using this but this is not what I want, I would like to replace NOW() with the timestamp of the previous duplicated value (if exist)
=AND(J2>=NOW()-1,COUNTIF(B:B,B2)>1)

My time stamp looks like that: 1/12/2022 08:05:47

Not sure if it's clear enough, but let me know. Thanks!
Sam
 

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi Flash,

I don't think there's should be NOW in the formula because I'm just looking at the time stamp of the previous duplicate value if it exists
This way I only have the oldest value valid by a cycle of 24 hours.
 
Upvote 0
I'm really sorry my explanation wasn't clear.
Here is a Screenshot to help out.

It's more complicated than I thought I believe.
 

Attachments

  • Screen Shot 2565-12-01 at 10.50.47.png
    Screen Shot 2565-12-01 at 10.50.47.png
    96 KB · Views: 25
Upvote 0
Yes it should be TRUE, it's just the actual formula that doesn't work
 
Upvote 0
Here is exactly how it should work, again so sorry for the confusion.
Thanks!
 

Attachments

  • Screen Shot 2565-12-01 at 11.40.01.png
    Screen Shot 2565-12-01 at 11.40.01.png
    132.6 KB · Views: 17
Upvote 0
See if this would work for you. Notice that the ranges end one row below the last data.

22 12 01.xlsm
BJK
1
2b3/12/2022 22:05:00TRUE
3a2/12/2022 10:05:00TRUE
4a1/12/2022 22:03:00FALSE
5a1/12/2022 08:05:00FALSE
6c1/12/2022 08:05:00TRUE
7b1/12/2022 08:00:00TRUE
8a1/12/2022 08:00:00TRUE
9
Dupe in 24hr
Cell Formulas
RangeFormula
K2:K8K2=J2-IFERROR(AGGREGATE(14,6,J3:J$9/((B3:B$9=B2)*(K3:K$9)),1),0)>1
 
Upvote 0
Solution

Forum statistics

Threads
1,223,892
Messages
6,175,236
Members
452,621
Latest member
Laura_PinksBTHFT

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