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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

IML

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,743
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.
 

IML

MrExcel MVP
Joined
Feb 15, 2002
Messages
1,743
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")
 

Mark W.

MrExcel MVP
Joined
Feb 10, 2002
Messages
11,654
=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
 

Forum statistics

Threads
1,181,461
Messages
5,930,064
Members
436,718
Latest member
messa57fr

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
Top