# even, odd time

#### Tom F

##### Active Member
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
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.

#### Tom F

##### Active Member
This is based on the minute.

Tom F

#### IML

##### MrExcel MVP
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
=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

Replies
3
Views
146
Replies
1
Views
184
Replies
9
Views
172
Replies
5
Views
128
Replies
12
Views
249

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

### 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