Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ims
 
Posts: n/a
Default Question on Format in Hour & Minute

Dear all,

2 questions please.

I have got a spreadsheet to calculate time in hours and minutes

A B C
15:00 20:15 5:15

1. When I input "15" in Cell A1, how to format to make it display "15:00"
?

2. Cell C1=B1-A1, similarly, how should B1 & C1 be formatted?

Thanks
IMS



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Arvi Laanemets
 
Posts: n/a
Default Question on Format in Hour & Minute

Hi


"ims" wrote in message
...
Dear all,

2 questions please.

I have got a spreadsheet to calculate time in hours and minutes

A B C
15:00 20:15 5:15

1. When I input "15" in Cell A1, how to format to make it display
"15:00"


You can't!. Either enter 15:0, or use another column with formulas to
convert it to time [=TIME(A1,0,0)], or use worksheet's Change event to
rewrite any entry made into column A.


?

2. Cell C1=B1-A1, similarly, how should B1 & C1 be formatted?


For cell B1, look above. Format the cell C1 in any valid time format.

P.S. In case you have time intervals with midnight rollover, use formula
C1=B1-A1+(B1<A1)



--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default Question on Format in Hour & Minute

Not strictly accurate, as you CAN do it IF you are happy to use macros
and IF the values for time always go in column A and IF the values are
always entered incorrectly - but personally, I would look to get people
to enter the values in the right format, or to have functions later on
that translated what had been entered into the value you wanted (so the
input cell asks for minute and will accept whole numbers only, then the
formula converts the decimal number into the correct fraction for time)

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
ims
 
Posts: n/a
Default Question on Format in Hour & Minute

Understood.....thank you all



egroups.com...
Not strictly accurate, as you CAN do it IF you are happy to use macros
and IF the values for time always go in column A and IF the values are
always entered incorrectly - but personally, I would look to get people
to enter the values in the right format, or to have functions later on
that translated what had been entered into the value you wanted (so the
input cell asks for minute and will accept whole numbers only, then the
formula converts the decimal number into the correct fraction for time)




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
Custom Format for hours and minutes Paul D. Simon Excel Discussion (Misc queries) 4 September 16th 05 11:12 PM
convert time from 60 minute hour to 100 minute hour Jboerding Excel Discussion (Misc queries) 2 July 6th 05 11:30 PM
Format Question Please WILLIAM DAVIS Excel Discussion (Misc queries) 2 January 7th 05 01:45 AM
Trailing Space / Format Question hagen Excel Discussion (Misc queries) 4 December 27th 04 11:01 PM
format question when open csv file Jeff Excel Discussion (Misc queries) 1 December 1st 04 06:53 PM


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