Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Ian Williams/Eazygig
 
Posts: n/a
Default entering numbers to display a time format

I am trying to add time format to a cell to show just hh:mm if a single
number is typed in ie 14 to show as 14:00 or 14.23 to show as 14:23.

the current format hh:mm seems to default to date and time when a number is
typed in cell such as 14 will show 00:00:00 in the cell and the fomula bar
shows dd:mm:yyyy hh:mm:ss.

would finally like to find a formula which will calculate a timespan between
two cells displaying a time value.. ie start and finish times in seperate
cells then night and day totals to be shown in their respective cells for a
bespoke wages/ time sheet .

ie ;start time D4 =( 23:45 ) finish time E4 =(10:00 ) Night hours F4 (
6.25) Day hours G4 =(4.00)

anyone help me??
  #2   Report Post  
Bob Phillips
 
Posts: n/a
Default

For the first part, see http://www.cpearson.com/excel/DateTimeEntry.htm

For the second, use

=(MOD(B1-A1,1)-(B1-"06:00"))*24 for the night hours

=(B1-"06:00")*24 for the day hours

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Ian Williams/Eazygig" <Ian
wrote in message ...
I am trying to add time format to a cell to show just hh:mm if a single
number is typed in ie 14 to show as 14:00 or 14.23 to show as 14:23.

the current format hh:mm seems to default to date and time when a number

is
typed in cell such as 14 will show 00:00:00 in the cell and the fomula bar
shows dd:mm:yyyy hh:mm:ss.

would finally like to find a formula which will calculate a timespan

between
two cells displaying a time value.. ie start and finish times in seperate
cells then night and day totals to be shown in their respective cells for

a
bespoke wages/ time sheet .

ie ;start time D4 =( 23:45 ) finish time E4 =(10:00 ) Night hours F4 (
6.25) Day hours G4 =(4.00)

anyone help me??



Reply
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
Format numbers in chart datatable MB Charts and Charting in Excel 3 May 29th 05 03:37 PM
Mail Merge - format of numbers Rita Halporn Excel Discussion (Misc queries) 4 December 26th 04 01:19 AM
How do I format column containing date and time to only show the . ColoradoKid Excel Discussion (Misc queries) 5 December 18th 04 05:25 PM
Time Format Auto Entry AM and PM BulaMan Excel Discussion (Misc queries) 1 December 15th 04 09:30 AM
Help Q: Entering 7 p time format, does not convert to 19:00 Frank Kabel Excel Discussion (Misc queries) 0 December 7th 04 07:20 AM


All times are GMT +1. The time now is 03:13 AM.

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

About Us

"It's about Microsoft Excel"