SOLVED

Conditional formatting Date/Time in same cell

Copper Contributor

Hi all,

I have a sheet that pulls timestamp data from multiple sheets. I want to use conditional formatting to tell me if the timestamp is older than 30 minutes. The timestamp contains date and time information in the same cell with a format of "m/d/yyyy, h:mm:ss AM/PM" .

I cannot figure out what formula to use to find dates/times older than 30 minutes. Currently the sheet uses conditional formatting for unique entries but it has some errors.

I have attached a photo of the summary data. This is what it should look like when properly formatted.

Thanks for any help you can provide!

7 Replies

@Flambert86 , try this in the conditional formatting:

=NOW()-$H2>=TIME(0,30,0)

 

TheAntony_0-1595809940840.png

 

 

Thank you for the quick response. Unfortunately it did not work. Any other thoughts? I attached a new photo of the formula you suggested.

Thanks!

@Flambert86 , can you share a sample of the workbook without any confidential info?

@TheAntony 

 

Hi,

 

I have attached a copy of the summary sheet and 4 of the sheets that the summary draws data from. Thank you very much for your help!

@Flambert86 , The dates are not Excel dates, but rather text values. So the conditional format was failing. I noticed that the dates in sheets 1, 2, 3, and 4 are text values like this : "7/26/2020, 4:04:19 PM". Removing the comma between the date and time made Excel recognize them as dates. Perform a find and replace for ", " with " " and that should fix the issue. The conditional format will work after that.

You are correct. They are text that is being pasted into the numbered sheets from a data source. The summary page pulls that information from the other sheets so each cell in the summary is actually a link to another cell in a seperate sheet.

In order for this to work the way it needs to, finding and replacing the comma each time is not feasable.

Is there another way to get it to recognize this as a date/time format?
best response confirmed by Flambert86 (Copper Contributor)
Solution

@Flambert86 , replace the link in cell H2:

='1'!$A$17

 

with:

=DATEVALUE(SUBSTITUTE('1'!$A$17,",",""))

 

1 best response

Accepted Solutions
best response confirmed by Flambert86 (Copper Contributor)
Solution

@Flambert86 , replace the link in cell H2:

='1'!$A$17

 

with:

=DATEVALUE(SUBSTITUTE('1'!$A$17,",",""))

 

View solution in original post