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

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
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,214,952
Messages
6,122,454
Members
449,083
Latest member
Ava19

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