"If Formula" for elasped time

Parra

Well-known Member
Joined
Feb 21, 2002
Messages
752
I want to do an if formula for elasped time. If 20 minutes have passed I want "1" to appear 40 minutes "2", 60 minutes "3" and so on.

I have the elasped time thing done. But I can't seem to get the if function to work, can someone please help. Thanks.
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Use =TRUNC(A1/20) where A1 contains your elapsed time as minutes. If A1 contains a time value (e.g., 0:20) use =TRUNC(A1*72). An IF function isn't necessary.
This message was edited by Mark W. on 2002-03-21 08:53
 
Upvote 0
You did not state if cell contained
number or time.

with number
=INT(A48/20)*1

with time
=INT(MINUTE(A50)/20)*1
 
Upvote 0
with time
=INT(MINUTE(A50)/20)*1

What if the elapsed time value is 1:40 (1 hour and 40 minutes)? Or 60 minutes which Excel will represent as 1:00?

What does the "*1" do?
This message was edited by Mark W. on 2002-03-21 09:21
 
Upvote 0
OK

revise to

numbers =INT(A48/20)

times =INT(MINUTE(A50)+HOUR(A50)*60)/20
 
Upvote 0

Forum statistics

Threads
1,213,496
Messages
6,113,993
Members
448,539
Latest member
alex78

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