LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2
Default Formula help please

I am trying to put together an auto-calulation for a timesheet.

The data will be entered as a 4 digit number eg: 0830 for 08:30am 1700 for
5:00pm etc...

what I have so far is:

a1) 0830
b1) 1700

c1) =(b1-a1)/100 in this case the answer is 8.7

but it is 8.5 hours

using 0800 and 1730 i get 9.3

should be 9.5 hours

How can I make excel give me these figures? is there any way of taking only
the digits right of the decimal place, then using a formula something like
d1) = c1(right of decimal)
e1) =if(d1=3,5,if(d1=7,5,if(d1=85,75,0)))
f1) =c1(left of decimal) (decimal) (e1) ie: 9.5
f20) =sum(f1:f19) for total hours.



TIA

Al
 
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



All times are GMT +1. The time now is 03:39 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"