convert minutes to a decimal

E. Jones

Board Regular
Joined
Oct 21, 2012
Messages
59
Hello all,

I have to calculate time in six minute increments, so if a task takes six minutes or less, it is ".1", if it takes more than six minutes but twelve minutes or less, it should display ".2" and so on with one hour being shown as "1.0". On my excel sheet I have a start time of say 10:00 AM, and a stop time of say 10:11 AM. Subtracting the time to get the elapsed time of :11 is already done, but, what I need is to now convert the :11 to display as .2.

The formula I have already tried to no avail is: if(and (C3>:06,C3<=:12), .1, "" ), which returns "The formula you entered contains an error...)

What is the proper way to input the formula to achieve the desired results? I believe I will have to nest several "if and" statements to account for all 10 possible decimals, which is fine, but I can't seem to get the first one correct.

As always, any and all help is appreciated!
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Format the cell as number then use

=CEILING(C3*24,0.1)

edit:- to clarify, format the cell with this formula as number, not C3.
 
Upvote 0
Solution
Format the cell as number then use

=CEILING(C3*24,0.1)

edit:- to clarify, format the cell with this formula as number, not C3.
Wow! I didn't know about that formula at all, thanks so much. I also checked this formula using various stop times, and it works perfectly. Thank you so much!
 
Upvote 0
You're welcome :)

The simple answers are often the most evasive.
 
Upvote 0

Forum statistics

Threads
1,213,543
Messages
6,114,236
Members
448,555
Latest member
RobertJones1986

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