Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Junior Member
 
Posts: 2
Default Extract Date from text

Hello
I have a cell that reads:

Week Ending:June 02, 2012

and I need to extract the date a June 02 (format 'mmm d') into another cell.

Can anyone tell me how?

Thanks for the help
Sabine
  #2   Report Post  
Senior Member
 
Posts: 663
Default

Quote:
Originally Posted by sabineb View Post
Hello
I have a cell that reads:

Week Ending:June 02, 2012

and I need to extract the date a June 02 (format 'mmm d') into another cell.

Can anyone tell me how?

Thanks for the help
Sabine
Hi Sabine,

The formula below will extract the month and day from the text string, however you will not be able to use the result in calculations as it's not a true date format.

Still working on fixing that, but I'm sure someone more clued up on this than I will be along to improve this.

=MID(A1,FIND(":",A1)+1,FIND(",",A1)-FIND(":",A1)-1)

(the above formula presumes your text string is in cell A1, amend as necessary)
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,045
Default Extract Date from text

On Sat, 9 Jun 2012 20:06:36 +0000, sabineb wrote:


Hello
I have a cell that reads:

Week Ending:June 02, 2012

and I need to extract the date a June 02 (format 'mmm d') into another
cell.

Can anyone tell me how?

Thanks for the help
Sabine


To extract that number as a"real" date, where you can format the cell however you want:

=--TRIM(MID(A1,FIND(":",A1)+1,20))

To do the same, but return a text string (not a "real" date) of mmm d format, use:

=TEXT(--TRIM(MID(A1,FIND(":",A1)+1,20)),"mmm d")

  #4   Report Post  
Junior Member
 
Posts: 2
Thumbs up

To extract that number as a"real" date, where you can format the cell however you want:

=--TRIM(MID(A1,FIND(":",A1)+1,20))






Thanks so much this one did the trick

Sabine
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
how to Extract the date or text from the whole column Arun.fpg Excel Discussion (Misc queries) 2 April 24th 09 03:46 AM
extract date from text Woodi2 Excel Worksheet Functions 19 December 1st 08 11:19 PM
Extract Date (04/05/06) into Text (040506) Who I Am Excel Programming 6 June 14th 06 07:40 AM
How do I extract a date as text not the 1900 reference number Adam Excel Discussion (Misc queries) 3 March 23rd 05 05:04 PM
EXTRACT TEXT FROM A DATE Ronbo Excel Worksheet Functions 5 February 1st 05 07:39 AM


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