Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Merge two cells with dates to create a date range

Hello, I would like to Merge to cells with dates to create a date range example

A B c
dstartdate denddate Date Range

8/25/2008 9/21/2008 8/25/09-9/21/08

If I use the formula =A2&"-"&B2 I have to put a (') in front of each date in
column A and B otherwise it comes out as unformatted numbers and I can't use
the format to date to fix it.


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Merge two cells with dates to create a date range

=TEXT(A2,"m/dd/yy")&"-"&TEXT(B2,"m/dd/yy")
but please don't merge cells.
Concatenating the contents is fine, but merging cells causes countless
problems (as the archives of the group will show).
--
David Biddulph

"Need Letters in the Columns"
wrote in message
...
Hello, I would like to Merge to cells with dates to create a date range
example

A B c
dstartdate denddate Date Range

8/25/2008 9/21/2008 8/25/09-9/21/08

If I use the formula =A2&"-"&B2 I have to put a (') in front of each date
in
column A and B otherwise it comes out as unformatted numbers and I can't
use
the format to date to fix it.




  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Merge two cells with dates to create a date range

Thank you if worked perfect.

"David Biddulph" wrote:

=TEXT(A2,"m/dd/yy")&"-"&TEXT(B2,"m/dd/yy")
but please don't merge cells.
Concatenating the contents is fine, but merging cells causes countless
problems (as the archives of the group will show).
--
David Biddulph

"Need Letters in the Columns"
wrote in message
...
Hello, I would like to Merge to cells with dates to create a date range
example

A B c
dstartdate denddate Date Range

8/25/2008 9/21/2008 8/25/09-9/21/08

If I use the formula =A2&"-"&B2 I have to put a (') in front of each date
in
column A and B otherwise it comes out as unformatted numbers and I can't
use
the format to date to fix it.





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Merge two cells with dates to create a date range

Try it this way:

=TEXT(A2,"m/dd/yy")&"-"&TEXT(B2,"m/dd/yy")

then copy it down.

Hope ths helps.

Pete

On Jan 27, 8:51*pm, Need Letters in the Columns
wrote:
Hello, I would like to Merge to cells with dates to create a date range example

A * * * * * * * * *B * * * * * * *c
dstartdate * * *denddate * Date Range

8/25/2008 * * * 9/21/2008 *8/25/09-9/21/08

If I use the formula =A2&"-"&B2 I have to put a (') in front of each date in
column A and B otherwise it comes out as unformatted numbers and I can't use
the format to date to fix it.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Merge two cells with dates to create a date range

Thank you it worked perfect.

"Pete_UK" wrote:

Try it this way:

=TEXT(A2,"m/dd/yy")&"-"&TEXT(B2,"m/dd/yy")

then copy it down.

Hope ths helps.

Pete

On Jan 27, 8:51 pm, Need Letters in the Columns
wrote:
Hello, I would like to Merge to cells with dates to create a date range example

A B c
dstartdate denddate Date Range

8/25/2008 9/21/2008 8/25/09-9/21/08

If I use the formula =A2&"-"&B2 I have to put a (') in front of each date in
column A and B otherwise it comes out as unformatted numbers and I can't use
the format to date to fix it.





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Merge two cells with dates to create a date range

You're welcome - thanks for taking the trouble to feed back.

Pete

On Jan 28, 2:35*pm, Need Letters in the Columns
wrote:
Thank you it worked perfect.


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,805
Default Merge two cells with dates to create a date range

Use
=text(A1,"mm/dd/yyyy") & "-" & text (B1,"mm/dd/yyyy")

Text() will convert the dates to text and then concatenate
"Need Letters in the Columns" wrote:

Hello, I would like to Merge to cells with dates to create a date range example

A B c
dstartdate denddate Date Range

8/25/2008 9/21/2008 8/25/09-9/21/08

If I use the formula =A2&"-"&B2 I have to put a (') in front of each date in
column A and B otherwise it comes out as unformatted numbers and I can't use
the format to date to fix it.


  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Merge two cells with dates to create a date range


Thank you it worked perfect.
"Sheeloo" wrote:

Use
=text(A1,"mm/dd/yyyy") & "-" & text (B1,"mm/dd/yyyy")

Text() will convert the dates to text and then concatenate
"Need Letters in the Columns" wrote:

Hello, I would like to Merge to cells with dates to create a date range example

A B c
dstartdate denddate Date Range

8/25/2008 9/21/2008 8/25/09-9/21/08

If I use the formula =A2&"-"&B2 I have to put a (') in front of each date in
column A and B otherwise it comes out as unformatted numbers and I can't use
the format to date to fix it.


  #9   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Merge two cells with dates to create a date range

=TEXT(A2,"mm/dd/yy")&" - "&TEXT(B2,"mm/dd/yy")


Gord Dibben MS Excel MVP

On Tue, 27 Jan 2009 12:51:02 -0800, Need Letters in the Columns
wrote:

Hello, I would like to Merge to cells with dates to create a date range example

A B c
dstartdate denddate Date Range

8/25/2008 9/21/2008 8/25/09-9/21/08

If I use the formula =A2&"-"&B2 I have to put a (') in front of each date in
column A and B otherwise it comes out as unformatted numbers and I can't use
the format to date to fix it.


  #10   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 7
Default Merge two cells with dates to create a date range

Thank you it worked perfect.

"Gord Dibben" wrote:

=TEXT(A2,"mm/dd/yy")&" - "&TEXT(B2,"mm/dd/yy")


Gord Dibben MS Excel MVP

On Tue, 27 Jan 2009 12:51:02 -0800, Need Letters in the Columns
wrote:

Hello, I would like to Merge to cells with dates to create a date range example

A B c
dstartdate denddate Date Range

8/25/2008 9/21/2008 8/25/09-9/21/08

If I use the formula =A2&"-"&B2 I have to put a (') in front of each date in
column A and B otherwise it comes out as unformatted numbers and I can't use
the format to date to fix it.





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
Identifying unique dates in a range of cells containing dates... cdavidson Excel Discussion (Misc queries) 4 October 13th 06 03:30 PM
Identifying unique dates within a range of cells containing dates cdavidson Excel Discussion (Misc queries) 0 October 12th 06 08:19 PM
return a date from range, date is between dates in two other cells NN Excel Discussion (Misc queries) 1 September 28th 06 10:05 PM
Create Excel Grouping according to Merge Cells Grouping Data Excel Worksheet Functions 0 July 25th 06 12:44 PM
How to count dates within a certain range in a column with mutiple date range entries Krisjhn Excel Worksheet Functions 2 September 1st 05 01:59 PM


All times are GMT +1. The time now is 08:13 PM.

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"