Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Joe Joe is offline
external usenet poster
 
Posts: 476
Default Format Date along with Text

Cell A1 contains the date: December 31, 2008
I want cell A2 to display "Dec Before"
I tried =A1&" Before" which returned: 39813 Before
I tried =(MONTH(A1))&" Before" which returned: 12 Before
I can format the date as Dec just fine until I add the &" Before" to it.
When I add the &" Before" in the formula it forces the Dec to read as 12. How
do I force the 12 back to read Dec?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 37
Default Format Date along with Text

In A2, try Custom formats
For example, the format mmmm "before" will yield December before

"Joe" wrote:

Cell A1 contains the date: December 31, 2008
I want cell A2 to display "Dec Before"
I tried =A1&" Before" which returned: 39813 Before
I tried =(MONTH(A1))&" Before" which returned: 12 Before
I can format the date as Dec just fine until I add the &" Before" to it.
When I add the &" Before" in the formula it forces the Dec to read as 12. How
do I force the 12 back to read Dec?

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Format Date along with Text

One way:

=TEXT(A1,"mmm B\efor\e")

In article ,
Joe wrote:

Cell A1 contains the date: December 31, 2008
I want cell A2 to display "Dec Before"
I tried =A1&" Before" which returned: 39813 Before
I tried =(MONTH(A1))&" Before" which returned: 12 Before
I can format the date as Dec just fine until I add the &" Before" to it.
When I add the &" Before" in the formula it forces the Dec to read as 12. How
do I force the 12 back to read Dec?

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,624
Default Format Date along with Text

And if you just want to *display* Dec Before,

A2: =A1

Format A2 with Format/Cell/Number/Custom mmm B\efor\e


In article ,
JE McGimpsey wrote:

One way:

=TEXT(A1,"mmm B\efor\e")

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
Change Date Format to Specific Text Format When Copying [email protected] Excel Discussion (Misc queries) 4 December 23rd 08 03:43 PM
Convert date from text format to date format Anita Excel Discussion (Misc queries) 3 June 4th 07 11:57 AM
Convert date + time text format to date format Paul Ho Excel Worksheet Functions 2 May 22nd 07 05:47 PM
Concatenating a Text and a Date without losing orginal Date Format Hi_no_Tori Excel Discussion (Misc queries) 5 September 17th 06 06:35 PM
Help: How do I convert a text date into a real date format japorms Excel Worksheet Functions 4 August 2nd 06 06:36 PM


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