Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default Question using dates in a statement

I am currently trying to write a statement that uses two dates from another
worksheet (same workbook) as a title for the first worksheet. However, when
I insert the cells into the statement, the date values do not appear.

My statement looks like:
="Date Range: " & DataRange!A2 & " to " & DataRange!B2

The output looks like:
Date Range: 39075 to 39081

Is there a way to convert the numeric values into dates in this statement?
Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Question using dates in a statement

Use the TEXT() function to format the dates.
--
Gary's Student


"Wink20TCU" wrote:

I am currently trying to write a statement that uses two dates from another
worksheet (same workbook) as a title for the first worksheet. However, when
I insert the cells into the statement, the date values do not appear.

My statement looks like:
="Date Range: " & DataRange!A2 & " to " & DataRange!B2

The output looks like:
Date Range: 39075 to 39081

Is there a way to convert the numeric values into dates in this statement?
Thanks.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Question using dates in a statement

="Date Range: " & text(datarange!a2,"mm/dd/yyyy") & ....

Use the format you like.



Wink20TCU wrote:

I am currently trying to write a statement that uses two dates from another
worksheet (same workbook) as a title for the first worksheet. However, when
I insert the cells into the statement, the date values do not appear.

My statement looks like:
="Date Range: " & DataRange!A2 & " to " & DataRange!B2

The output looks like:
Date Range: 39075 to 39081

Is there a way to convert the numeric values into dates in this statement?
Thanks.


--

Dave Peterson
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
Dates Formatting Question - What if you do not know month and/or d elfmajesty Excel Discussion (Misc queries) 4 October 12th 06 08:37 PM
Dates with Holidays question HJ Excel Discussion (Misc queries) 1 March 31st 06 03:08 AM
need to convert list of dates to count no. of dates by week neowok Excel Worksheet Functions 13 January 30th 06 03:54 PM
IF Statement Question 0 values & blank cells joshmd9909 Excel Worksheet Functions 6 October 10th 05 01:14 PM
If Statement Question carl Excel Worksheet Functions 1 March 11th 05 04:55 AM


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