Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default How to stop time format changing when I merge cell contents?

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default How to stop time format changing when I merge cell contents?

=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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 126
Default How to stop time format changing when I merge cell contents?

=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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 563
Default How to stop time format changing when I merge cell contents?

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
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
Changing contents of cell based on Cell Format HeatherJ Excel Worksheet Functions 3 December 22nd 09 03:06 PM
STOP auto format of cell contents Kevin Excel Discussion (Misc queries) 1 August 28th 07 05:31 PM
How do I stop excel from changing my ratios into time format? Qlmmb2000 Excel Discussion (Misc queries) 3 June 26th 06 05:18 PM
Cell contents with custom time format rounded after double-click HumblePie Excel Discussion (Misc queries) 2 August 6th 05 08:07 PM
Excel format changes as I merge into Word document How can I stop AngieDerbyshire Excel Discussion (Misc queries) 1 January 8th 05 12:19 AM


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