# Simple time calc

#### hsandeep

##### Well-known Member
Sheet1

 A B C 1 Result 2 9/23/14 10:00 AM 9/23/14 10:30 AM

<colgroup><col style="FONT-WEIGHT: bold; WIDTH: 30px"><col style="WIDTH: 115px"><col style="WIDTH: 115px"><col style="WIDTH: 64px"></colgroup><tbody>
</tbody>

C=1, If 'system's time>=A2 & <B2 else 0.
Formula needed for C2?
Thanks.

Excel tables to the web >> Excel Jeanie HTML 4

### Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.

#### pbornemeier

##### Well-known Member
A2 Your input as a date/time value
B2 =Now()
C2 =IF(B2>=A2,1,"")

B2 is system time
C2 will contain nothing if system time is less than system time

#### hsandeep

##### Well-known Member
A2 & B2 BOTH are INPUT as date/time value.
Output in C2 & to be copied down.

#### NeonRedSharpie

##### Well-known Member
A2 & B2 BOTH are INPUT as date/time value.
Output in C2 & to be copied down.

So...what's your concern with the response posted above?

#### hsandeep

##### Well-known Member
<b2 else="" 0.
Formula needed for C2?

C2=1, If 'system's time>=A2 & less than B2 else 0<b2< b2=""></b2<></b2>

#### NeonRedSharpie

##### Well-known Member
<b2 else="" 0.
Formula needed for c2?

C2=1, if 'system's time>=a2 & less than b2 else 0<b2< b2=""></b2<></b2>

Code:
``=if(and(now()>=a2, now()<=b2), 1, 0)``

#### hsandeep

##### Well-known Member
Thanks. It works.

Replies
8
Views
224
Replies
0
Views
1K
Replies
8
Views
225
Replies
0
Views
490
Replies
1
Views
137

1,191,696
Messages
5,988,149
Members
440,131
Latest member
EricMoz

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

### Which adblocker are you using?

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

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