LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Hours to minutes jcs

A couple of simplifications for your formulae:

In =SUM(G3-F3)*24*60 your SUM function is doing nothing.
Try =(G3-F3)*24*60

In
=IF(H3=0,0,IF(H3<175,(((175-H3)*2)/1440),IF(H3175,((H3-175)/1440),IF(H3=175,0))))
you've got quite a few surplus parentheses
Try
=IF(H3=0,0,IF(H3<175,(175-H3)*2/1440,IF(H3175,(H3-175)/1440,IF(H3=175,0))))
--
David Biddulph

"nlp239" wrote:

Thanks EVERYONE. I tried individual suggestions but couldn't get it to
work - probably because of my own inexperience.
Re-read the explanations and combined your suggestions and it works
great.

Here's what I came up with:

Cell H3 the following: =SUM(G3-F3)*24*60
Cell I3 the following: =IF(H3=0,0,IF(H3<175,(((175-H3)*2)/
1440),IF(H3175,((H3-175)/1440),IF(H3=175,0))))

Thanks again YOUR time and suggestions have helped me a great deal.


On Oct 21, 12:24 am, ShaneDevenshire
wrote:
So the question is what's going on? 175 is the number of minutes that you
see but Excel is storing this as a percentage of the day 175/(60*24) or
175/1440 which is something like 0.121527777777778 even though you don't see
it. Therefore when you write your formula you would need to test with the
decimal number not whole number. Rather than do that its easier to convert
the decimal to actual minutes by multiplying by 1440.

Hope this helps.

--
Thanks,
Shane Devenshire



"nlp239" wrote:
I'm calculating the following:


Start time in hh:mm (F3)
End time in hh:mm (F4)
Total time (F5) this cell is been custom formatted with [m] to convert
to minutes and then calculate penalties.


If F5 is under 175 (minutes) I need to find the difference and
multiply x 2
If over 175 I need to find the difference
If 175 there are no penalties.


I'm using the following formula
=IF(H3=0,0,IF(H3<175,((175-H3)*2),IF(H3175,(H3-175),IF(H3=175,0))))


Why do I get 349.6458333 for a value of 255 in F5


Thanks- Hide quoted text -


- Show quoted text -


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Converting total minutes into hours and minutes in Excel colette Excel Worksheet Functions 11 December 26th 07 07:24 PM
converting Days Hours & minutes into just minutes in excel Six Sigma Blackbelt Excel Discussion (Misc queries) 5 April 28th 06 09:45 PM
how to change a decimal number (minutes) into hours and minutes? Erwin Excel Discussion (Misc queries) 2 November 5th 05 04:22 PM
add hours & minutes to other hours & minutes to receive total hou. Wes Excel Worksheet Functions 2 March 1st 05 11:33 PM
add column of minutes, show total in hours & minutes glider pilot Excel Worksheet Functions 1 December 30th 04 10:27 PM


All times are GMT +1. The time now is 02:48 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"