I'm trying to calculate a formula that will allow me to view additional time on site if it exceeds 2 hours. Please use the examples I've provided.Time Formula Examples.xlsx
I'm trying to calculate a formula that will allow me to view additional time on site if it exceeds 2 hours. Please use the examples I've provided.Time Formula Examples.xlsx
Is column C in hours?
Spread the love, add to the Rep
"None of us are as smart as all of us."
you need to use
=D2-C2
so that you get a time and not #################
=IF(E2<=F2,"","value of what")
what value are you wanting to return
also you need to enter 2hours into F2 - you can change theformat of the cell to display as required
but you need to be in times AND not numbers
Wayne
if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here
If you have a solution to your thread - Please mark your thread solved do the following: >
Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.
ETAF -
The value of additional time on site. So if E2 is greater than F2, I would like to see by how much. In the example, the value should be 2 hours additional.
this should do it
=IF(E4<=F4,"",E4-F4)
but you need the formats correct
try using HH:MM:SS
Hi GoGoe...
Is this what you were trying to achieve..?
Check the attached file...
Regards,
Vikas Gautam
Excel-buzz.blogspot.com
Excel is not a matter of Experience, its a matter of Application.
Say Thanks, Click * Add Reputation
Time Formula Examples.xlsx
None of these seem to be working for me. Please see the newly attached sheet with more information.
whats wrong with row 5 in your last example ?
Nothing, that's what it should look like, but I can't get the formulas to work and return a time in cell G5. I keep getting #####.
its your formatting
they all have to be in time format
and cant be in numbers
you are taken times away
Dates are just numbers
1 day - 1
and the time is a fraction of a day
so 6 hours is a 1/4 of a day 0.25
12 hours 1/2 a day 0.5
so in E5
=D5-C5
and you can format as Hours
HH:MM
in F5 you need the time as a decimalfor 2 hours
OR
format the cell as time
OR you can do as
Vikas_Gautam has done and multiplied by 24
and also used ABS to do that the sign - or +ve does not matter
whats wrong with Vikas_Gautam solution ?
with the calculation I put - to show the difference
E?-F?
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks