Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RJS RJS is offline
external usenet poster
 
Posts: 2
Default Joining dates and text in formula

Hi,

I have a simple formula which is joins 2 dates. To demonstrate

Cell D17 = 1/1/07
Cell E17 = 8/1/07

When I join them using the formula "=D17&" to "&E17" the date formats
aren't retained and I get the answer "39083 to 39090". The cell has
date format set.

How do I get the cell to return "1st Jan 07 to 8th Jan 07"?

Thanks

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Joining dates and text in formula

Use the text function:

=TEXT(D17,"d mmm yy") & " to " & TEXT(E17,"d mmm yy")


but notice no "st" or "rd", etc.
--
Gary's Student
gsnu200703


"RJS" wrote:

Hi,

I have a simple formula which is joins 2 dates. To demonstrate

Cell D17 = 1/1/07
Cell E17 = 8/1/07

When I join them using the formula "=D17&" to "&E17" the date formats
aren't retained and I get the answer "39083 to 39090". The cell has
date format set.

How do I get the cell to return "1st Jan 07 to 8th Jan 07"?

Thanks


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
RJS RJS is offline
external usenet poster
 
Posts: 2
Default Joining dates and text in formula

Thanks v. much.


Gary''s Student wrote:

Use the text function:

=TEXT(D17,"d mmm yy") & " to " & TEXT(E17,"d mmm yy")


but notice no "st" or "rd", etc.
--
Gary's Student
gsnu200703


"RJS" wrote:

Hi,

I have a simple formula which is joins 2 dates. To demonstrate

Cell D17 = 1/1/07
Cell E17 = 8/1/07

When I join them using the formula "=D17&" to "&E17" the date formats
aren't retained and I get the answer "39083 to 39090". The cell has
date format set.

How do I get the cell to return "1st Jan 07 to 8th Jan 07"?

Thanks



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
Default Joining dates and text in formula

Just a late note here.

If you did want the "st" or "rd" eyc. you could employ a user defined function
to provide those.

Post back if interested.


Gord Dibben MS Excel MVP

On 1 Feb 2007 01:48:36 -0800, "RJS" wrote:

Thanks v. much.


Gary''s Student wrote:

Use the text function:

=TEXT(D17,"d mmm yy") & " to " & TEXT(E17,"d mmm yy")


but notice no "st" or "rd", etc.
--
Gary's Student
gsnu200703


"RJS" wrote:

Hi,

I have a simple formula which is joins 2 dates. To demonstrate

Cell D17 = 1/1/07
Cell E17 = 8/1/07

When I join them using the formula "=D17&" to "&E17" the date formats
aren't retained and I get the answer "39083 to 39090". The cell has
date format set.

How do I get the cell to return "1st Jan 07 to 8th Jan 07"?

Thanks



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
Format text 'dates' to real dates Jacy Excel Worksheet Functions 4 July 24th 06 02:10 AM
Converting numbers stored as dates to text in Excel David from Furdale Excel Discussion (Misc queries) 1 July 17th 06 06:34 PM
COUNTIF formula multiple text exclusions [email protected] Excel Discussion (Misc queries) 4 June 1st 06 09:58 PM
Text Colour Within Formula JB2010 Excel Discussion (Misc queries) 4 February 6th 06 04:22 PM
dates and text Sloth Excel Discussion (Misc queries) 0 November 18th 05 04:16 PM


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