How to show that two timestamps are identical?

JenniferMurphy

Well-known Member
Joined
Jul 23, 2011
Messages
2,541
Office Version
  1. 365
Platform
  1. Windows
One column of a table contains timestamps (date + time). Here is an example:

R/CAB
18/04/18 08:10p8/04/18 08:10p
28/05/18 06:47p8/05/18 06:47p
38/06/18 07:35a8/06/18 07:35a
48/06/18 06:03p8/06/18 06:03p
58/06/18 06:03p=
68/07/18 06:55p8/07/18 06:55p
78/07/18 06:55p=
88/07/18 06:55p=
98/08/18 08:46a8/08/18 08:46a
108/09/18 09:30a8/09/18 09:30a

<tbody>
</tbody>


A5 is identical to A4 and both A7 & A8 are identical to A6. I would like to display the data in Col A as it is in Col B. Is that possible without changing the actual underlying values?

I would prefer not to have a second column just for the display, as above.
 
@JenniferMurphy

A simple way to prove it works... follow EXACTLY...

It works! Amazing.

I did it on this table using this procedure:
  • Select D4:D11
  • Enter the rule as "=D3=D4"
R/C
CD
408/27/18 10:1608/27/18 10:16
508/27/18 10:1708/27/18 10:17
608/27/18 10:17=
708/27/18 10:1808/27/18 10:18
808/27/18 10:1908/27/18 10:19
908/27/18 10:19=
1008/27/18 10:19=
1108/27/18 10:1608/27/18 10:16

<tbody>
</tbody>

But a couple of details about your procedure bothered me, so I redid it on another sheet like this:

  • Select D5:D11 (all but first row)
  • Enter the rule as "=D5=D4" (comparing up seems more natural to me)
This seems more logical to me and it appears to get the same result.

Is there anything about my procedure that could bite me?

I then copied the entire table to a new location below the old one. The rules were also copied and continued to work.

I then tried adding rows to the end of the table and the rules expanded to include those rows and continued to work.

So all appears to be joy and light. Maybe this will give me courage to try using conditional formatting again.

Thank you!!!
 
Upvote 0

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
These CFs are working great. So, again, my thanks to Yongle and everyone else who contributed.

After having worked with these for awhile, I have a question about the different ways to code a cell address. I understand that "A1" is a relative address while "$A$1" is an absolute address. But I am not sure I fully understand how this works in a CF rule.

Consider this table of dates.

R/CCD
6Sun 08/05/18 06:47pMon 08/06/18 12:02a
7Mon 08/06/18 07:35aMon 08/06/18 05:21p
8Mon 08/06/18 06:03pMon 08/06/18 07:45p
9Mon 08/06/18 06:03pMon 08/06/18 07:45p
10Tue 08/07/18 06:55pTue 08/07/18 03:33p
11Tue 08/07/18 06:55pTue 08/07/18 08:24p
12Tue 08/07/18 06:55pTue 08/07/18 08:24p
13Wed 08/08/18 08:46aTue 08/07/18 08:24p

<tbody>
</tbody>

If I apply the CF rule "=C6=C7" with Custom formatting of "= " to the range "$C$6:$C$13", I get:

R/CCD
6Sun 08/05/18 06:47pMon 08/06/18 12:02a
7Mon 08/06/18 07:35aMon 08/06/18 05:21p
8=Mon 08/06/18 07:45p
9Mon 08/06/18 06:03pMon 08/06/18 07:45p
10=Tue 08/07/18 03:33p
11=Tue 08/07/18 08:24p
12Tue 08/07/18 06:55pTue 08/07/18 08:24p
13Wed 08/08/18 08:46aTue 08/07/18 08:24p

<tbody>
</tbody>

If I apply a similar rule over the range "$C$6:$D$13", I get:

R/CCD
6Sun 08/05/18 06:47pMon 08/06/18 12:02a
7Mon 08/06/18 07:35aMon 08/06/18 05:21p
8==
9Mon 08/06/18 06:03pMon 08/06/18 07:45p
10=Tue 08/07/18 03:33p
11==
12Tue 08/07/18 06:55p=
13Wed 08/08/18 08:46aTue 08/07/18 08:24p

<tbody>
</tbody>

But I can get this same result with one rule by applying "=C6=C7" to the entire range "$C$6:$D$13".

My understanding of this is that this rule is "compare each cell in the range to the one below it". So the range could be as wide as is appropriate. I don't need a separate rule for each column. Right?

Next, I tried the rule "=$C$6=$C$7". I got no "=" signs. I interpret this as "for each cell in the range, compare C6 to C7, and since that result never changes, I will either get all ="s or none. Right?

But support I made the rule something like "=$C6=$C7"? Does this mean "for each cell in the range, compare its counterpart in Col C to the next cell in Col C? That would mean that I would get rows of all ='s or none. Right.

Is there some general way to think of all of the 16 combinations of relative and absolute cell designations for this simple formula?

Thanks
 
Upvote 0

Forum statistics

Threads
1,215,851
Messages
6,127,302
Members
449,374
Latest member
analystvar

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