Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying to merge to time cells, (both set to English (United States),
Time Type 13:30) both cells display correctly where I entered them (9:00 and 9:45) but when I merge the cell contents using the function =A4&" - "&B4 I get the result 0.375 - 0.406 instead of 9:00 - 9:45 as expected. The destination cell has the same time settings as the two original cells. How do I stop the times converting to decimals and get them to display the way I want them too? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=TEXT(A4,"hh:mm") & " - " & TEXT(B4,"hh:mm")
Gord Dibben MS Excel MVP On Tue, 6 Apr 2010 11:02:20 -0700, CatKween wrote: I am trying to merge to time cells, (both set to English (United States), Time Type 13:30) both cells display correctly where I entered them (9:00 and 9:45) but when I merge the cell contents using the function =A4&" - "&B4 I get the result 0.375 - 0.406 instead of 9:00 - 9:45 as expected. The destination cell has the same time settings as the two original cells. How do I stop the times converting to decimals and get them to display the way I want them too? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=TEXT(A4,"hh:mm") & " - " & TEXT(B4,"hh:mm")
-- Hope this helps. If it does, please click the Yes button. Thanks in advance for your feedback. Gary Brown "CatKween" wrote: I am trying to merge to time cells, (both set to English (United States), Time Type 13:30) both cells display correctly where I entered them (9:00 and 9:45) but when I merge the cell contents using the function =A4&" - "&B4 I get the result 0.375 - 0.406 instead of 9:00 - 9:45 as expected. The destination cell has the same time settings as the two original cells. How do I stop the times converting to decimals and get them to display the way I want them too? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Gordon has given you the correct answer (as always).
Here is the reason for it: Excel stores dates as serial numbers and times as factions of a 24-hr day (is there any other type <gr?) So A1&"-"&B1 will display: number "-" number rather than time "-" time best wishes -- Bernard Liengme Microsoft Excel MVP http://people.stfx.ca/bliengme "CatKween" wrote in message ... I am trying to merge to time cells, (both set to English (United States), Time Type 13:30) both cells display correctly where I entered them (9:00 and 9:45) but when I merge the cell contents using the function =A4&" - "&B4 I get the result 0.375 - 0.406 instead of 9:00 - 9:45 as expected. The destination cell has the same time settings as the two original cells. How do I stop the times converting to decimals and get them to display the way I want them too? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Changing contents of cell based on Cell Format | Excel Worksheet Functions | |||
STOP auto format of cell contents | Excel Discussion (Misc queries) | |||
How do I stop excel from changing my ratios into time format? | Excel Discussion (Misc queries) | |||
Cell contents with custom time format rounded after double-click | Excel Discussion (Misc queries) | |||
Excel format changes as I merge into Word document How can I stop | Excel Discussion (Misc queries) |