Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Retaining date formatting in referencing cell

Hello,

I have a formula in cell D4 that contains a reference to cell C2 which
contains a date. Cell C2 is formatted to display its information as a date.
How do I retain the date formatting of the information contained in cell C2
when it is displayed in cell D4?

The date that is in cell C2 is: 11/1/2006
And the formula that is in cell D4 is: = "'" & C2 & "'"

Cell D4 displays like this: '39022'
But I want cell D4 to display like this: '11/1/2006'

Thank you.

Sincerely,

Corey Foote
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,718
Default Retaining date formatting in referencing cell

Try this:

=TEXT(C2,"'m/d/yyyy'")


"Corey Foote" wrote:

Hello,

I have a formula in cell D4 that contains a reference to cell C2 which
contains a date. Cell C2 is formatted to display its information as a date.
How do I retain the date formatting of the information contained in cell C2
when it is displayed in cell D4?

The date that is in cell C2 is: 11/1/2006
And the formula that is in cell D4 is: = "'" & C2 & "'"

Cell D4 displays like this: '39022'
But I want cell D4 to display like this: '11/1/2006'

Thank you.

Sincerely,

Corey Foote

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
Referencing Cell Next To Today's Date Cell Docktondad Excel Discussion (Misc queries) 5 May 16th 07 11:25 PM
Cell Referencing problem when copying conditional formatting Sarah (OGI) Excel Discussion (Misc queries) 0 April 19th 07 05:54 PM
Retaining Manual Formatting in Pivot Tables Neostand Excel Discussion (Misc queries) 5 September 21st 06 01:03 AM
retaining cell data once entered hoyt New Users to Excel 1 June 28th 06 07:10 PM
Paste Link - retaining formatting Suzanne Marie Excel Discussion (Misc queries) 1 August 18th 05 03:02 AM


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