"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

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
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,484
Messages
6,113,923
Members
448,533
Latest member
thietbibeboiwasaco

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