I am trying to enter just raw hours and minutes into excel. I enter say 1:00 with the cell formatting h:mm, the formula bar still shows 1:00:00 AM. I don't want the AM or PM. Thanks for your help in advance.
Use a custom format hh:mm
Format menu -> Cells -> Number -> Custom
Hope that helps.
RoyUK
--------
If you are pleased with a member's answer then use the Star icon to rate it, if you are pleased enough to part with cash consider a donation to Children in Need
For Excel Tips & Solutions, free examples and tutorials why not check out my downloads
New members please read & follow the Forum Rules
Remember to mark your questions Solved and rate the answer(s)
the fact it shows am/pm is that it matches your system time which is not in your case set to 24 hour clock you need to change the time in regional settings to HH:mm:ss its probably hh:mm:ss tt at the moment
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and a dabbler in Cisco
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
I want to be able to be able add multiple times in terms of hours and minutes. For example, I want to add 1h 25m, 12h 5m to arrive at 13h 30m or 13:30. I tried actually doing it as it is showing (in the formula bar) right now and it works. This seems counter-intuitive because if i add 1:25 am and 12:05 am I would get a time like 2:30pm or something else wierd, but excel doesn't do that. Nevertheless, its doing what I want even though logically I think it shouldn't.
Actually I take that back, if I add 24:05 to 1:25, excel converts 24:05 to "24:05:00 PM" and the values will not add together to get 25:30 or 25 hours 30min
If you sum the times and custom format the result cell with this format
[h]:mm
then that will display hours over 24
Does for me:
All the cells are formatted as [h]:mm--A-- ----B----- 1 24:05 2 1:25 3 25:30 A3: =A1+A2
Microsoft MVP - Excel
Entia non sunt multiplicanda sine necessitate
I have all cells involved in the summation in h:mm format.
I enter in cell B2 "1:25" formula bar shows "1:25:00 AM"
I enter in cell B3 "24:05" formula bar shows "1/1/1900 12:05:00 AM"
I enter in cell B4 "=SUM(B3:B4)" formula bar shows "=SUM(B3:B4)"
I highlight all cells and use custom h:mm format. Something very weird is happening when i enter cell B3's values, excel is automatically converting it to a date and time.
ok I have to use [h]:mm not h:mm in order to get it to work. What is the difference between using the braces versus not?
Thank you guys for your help. Much appreciated.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks