even, odd time

Tom F

Active Member
Joined
Oct 19, 2002
Messages
263
Does anyone know of a useful technique to tell if a cell contains an even time or an odd time?

Many thanks,
Tom F
 

Excel Facts

Whats the difference between CONCAT and CONCATENATE?
The newer CONCAT function can reference a range of cells. =CONCATENATE(A1,A2,A3,A4,A5) becomes =CONCAT(A1:A5)
Is this determined by the hour or minute?

With a time in A1,
=CHOOSE((MOD(HOUR(A1),2)=0)+1,"odd hour","even hour")

should work based on the hour.
 
Upvote 0
On 2002-10-22 10:48, Tom F wrote:
This is based on the minute.

Tom F

adjust to

=CHOOSE((MOD(MINUTE(A1),2)=0)+1,"odd","even")
or the shorter
=IF(MOD(MINUTE(A1),2),"odd","even")
 
Upvote 0
=IF(MOD(MINUTE(A1),2),"odd","even")

Or, if you have the Analysis ToolPak installed...

=IF(ISEVEN(MINUTE(A1)),"even","odd")
This message was edited by Mark W. on 2002-10-22 11:54
 
Upvote 0

Forum statistics

Threads
1,215,059
Messages
6,122,918
Members
449,093
Latest member
dbomb1414

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