Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default How to parse a string with a date?

Hi,

Thanks for the help in advance.

I have several cells with the date located at the end. However there
are spaces at the end of the string of variable unknown length usually
anywhere from 5-15 spaces. For example the string in quotes are

"I need your help 12 JUN 2006 "
"Thanks for your help 12 JUN 2006 "

Someone earlier suggested using

=Datevalue((Right((Cell#),11)))

However this only works if the spaces were not there.

Thank you.

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Toppers
 
Posts: n/a
Default How to parse a string with a date?


=DATEVALUE(RIGHT(TRIM(A1),11))

" wrote:

Hi,

Thanks for the help in advance.

I have several cells with the date located at the end. However there
are spaces at the end of the string of variable unknown length usually
anywhere from 5-15 spaces. For example the string in quotes are

"I need your help 12 JUN 2006 "
"Thanks for your help 12 JUN 2006 "

Someone earlier suggested using

=Datevalue((Right((Cell#),11)))

However this only works if the spaces were not there.

Thank you.


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
Date format issue CindyLF1 New Users to Excel 3 June 12th 06 06:18 PM
count between start date and end date flow23 Excel Discussion (Misc queries) 5 May 10th 06 01:22 PM
Q: parse string JIM.H. Excel Discussion (Misc queries) 3 October 22nd 05 01:45 AM
Lookup the month in a date string 01/03/05 Una Excel Worksheet Functions 1 March 30th 05 09:45 AM
How to convert string to a date galsaba Excel Worksheet Functions 3 March 4th 05 05:20 PM


All times are GMT +1. The time now is 11:14 PM.

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"