F5F Stay Refreshed Software General Software Thinking about changing how long I spend on a task into a percentage

Thinking about changing how long I spend on a task into a percentage

Thinking about changing how long I spend on a task into a percentage

Pages (3): 1 2 3 Next
B
Barney_420
Member
72
05-21-2026, 09:15 PM
#1
I have a list of numbers in an HH:mm format like 2:15, 3:00, or 1:45. To change 2:15 into a percent (which is about 2.25 hours), I used this formula. =hour(mod(F5,1)) + int(F5)*24 + minute(F5)/60 It works okay for times that aren't full hours like 1:0 or 2:0. But it fails when there are zeros in the time part, like 2:0 because the function gets confused. The error message says the MOD parameter needs numbers but F5 is text, so it can't be turned into a number. I need some help with this.
B
Barney_420
05-21-2026, 09:15 PM #1

I have a list of numbers in an HH:mm format like 2:15, 3:00, or 1:45. To change 2:15 into a percent (which is about 2.25 hours), I used this formula. =hour(mod(F5,1)) + int(F5)*24 + minute(F5)/60 It works okay for times that aren't full hours like 1:0 or 2:0. But it fails when there are zeros in the time part, like 2:0 because the function gets confused. The error message says the MOD parameter needs numbers but F5 is text, so it can't be turned into a number. I need some help with this.

J
JonathanDigger
Junior Member
40
05-21-2026, 09:22 PM
#2
I'd make sure to work in minutes instead of hours, so I can just add them up. Like this: (Hour from cell F5 times sixty) plus the minute from cell F5. But what is that percentage talking about? If 100% means one hundred percent, how do we figure out which number goes there?
J
JonathanDigger
05-21-2026, 09:22 PM #2

I'd make sure to work in minutes instead of hours, so I can just add them up. Like this: (Hour from cell F5 times sixty) plus the minute from cell F5. But what is that percentage talking about? If 100% means one hundred percent, how do we figure out which number goes there?

B
Bloodbath538
Member
127
05-22-2026, 10:34 PM
#3
I think you are talking about Decimal time. There are a few ways to do it. My favorite for Excel is: =TEXT(A1*24,"0.00"). You can also wrap that in TIME or TIMEVALUE to turn it into parts of a day and use those kinds of things.
B
Bloodbath538
05-22-2026, 10:34 PM #3

I think you are talking about Decimal time. There are a few ways to do it. My favorite for Excel is: =TEXT(A1*24,"0.00"). You can also wrap that in TIME or TIMEVALUE to turn it into parts of a day and use those kinds of things.

K
Killerman1834
Posting Freak
885
05-28-2026, 07:26 AM
#4
Oh yeah, you mean like hours and minutes instead of just percentages. Yeah, thanks! I'm going to try it out.
K
Killerman1834
05-28-2026, 07:26 AM #4

Oh yeah, you mean like hours and minutes instead of just percentages. Yeah, thanks! I'm going to try it out.

X
xAirAki_
Junior Member
23
05-28-2026, 09:00 AM
#5
Add one hour to cell A1, then add a part of that hour (the minutes divided by 60) plus a tiny bit more of the minute value.
X
xAirAki_
05-28-2026, 09:00 AM #5

Add one hour to cell A1, then add a part of that hour (the minutes divided by 60) plus a tiny bit more of the minute value.

K
kirbyyoyo
Junior Member
3
05-28-2026, 05:24 PM
#6
Checked with OpenOffice Calc, it works well for everything: =HOUR(A1)+MINUTE(A1)/60 A1 is my date cell used as an example. For instance, 8:00 becomes 8.00 and 9:45 becomes 9.75.
K
kirbyyoyo
05-28-2026, 05:24 PM #6

Checked with OpenOffice Calc, it works well for everything: =HOUR(A1)+MINUTE(A1)/60 A1 is my date cell used as an example. For instance, 8:00 becomes 8.00 and 9:45 becomes 9.75.

D
Dogvahkiin
Junior Member
34
05-30-2026, 06:16 AM
#7
Thanks to both of you for your replies. Sizzling: your idea makes the following happen. F5 takes 30 minutes (half an hour), which equals .5. Eximo: your suggestion leads to this next example where it takes 45 minutes (forty-five) and results in .5. I'm not sure what's happening here. Is the :45 minutes being turned into a half-hour? The other issue is that when I add these numbers, I end up getting 45.5 hours instead of the right result.
D
Dogvahkiin
05-30-2026, 06:16 AM #7

Thanks to both of you for your replies. Sizzling: your idea makes the following happen. F5 takes 30 minutes (half an hour), which equals .5. Eximo: your suggestion leads to this next example where it takes 45 minutes (forty-five) and results in .5. I'm not sure what's happening here. Is the :45 minutes being turned into a half-hour? The other issue is that when I add these numbers, I end up getting 45.5 hours instead of the right result.

H
hyperandroid
Junior Member
40
05-31-2026, 01:06 AM
#8
You have to take apart the minutes and split them apart on their own. A thirty-minute mark gives you half, while a forty-five-minute mark gives you three-quarters.
H
hyperandroid
05-31-2026, 01:06 AM #8

You have to take apart the minutes and split them apart on their own. A thirty-minute mark gives you half, while a forty-five-minute mark gives you three-quarters.

R
RigbyPT
Member
99
06-15-2026, 01:32 PM
#9
I am getting the wrong error message when I enter hour values like 1.0 or 2.0. My whole hours don't work with everything except numbers, like 1:0 or 3:0. It gives me this exact response: #VALUE! The function MOD needs number inputs, but '2:0' is actually text and can't be turned into a number.
R
RigbyPT
06-15-2026, 01:32 PM #9

I am getting the wrong error message when I enter hour values like 1.0 or 2.0. My whole hours don't work with everything except numbers, like 1:0 or 3:0. It gives me this exact response: #VALUE! The function MOD needs number inputs, but '2:0' is actually text and can't be turned into a number.

M
MooMoo2011
Senior Member
690
06-15-2026, 10:17 PM
#10
Do you put your cells in the right way? The Time part has to look like HH:MM, and the Decimal part needs to have exactly two numbers after the dot.
M
MooMoo2011
06-15-2026, 10:17 PM #10

Do you put your cells in the right way? The Time part has to look like HH:MM, and the Decimal part needs to have exactly two numbers after the dot.

Pages (3): 1 2 3 Next