Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Ray Ray is offline
external usenet poster
 
Posts: 267
Default Parse variable length strings

Hi -

I have a data-dump that's used as the source data for a variance
report. One of the fields contains a transaction date and the name of
the purchaser ... this entry is always formatted like this:
dd.mm.yyyy lastname,firstname

Of course, the first & last names are of variable lengths. Is it
possible to build a formula that would essentially strip off the date
and space (eg "05.15.2009 "), leaving me with the full name of the
purchaser?

My current solution utilizes the text-to-columns functionality, but
requires the user to add a column (in the correct location or risk
over-writing data) and then using text-to-columns ... I'd like it to
be an 'automatic' action when the data is refreshed (ie, re-pasted).

Any ideas?

Thanks, ray
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Parse variable length strings

Give this formula a try...

=TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",99)),99))

--
Rick (MVP - Excel)


"Ray" wrote in message
...
Hi -

I have a data-dump that's used as the source data for a variance
report. One of the fields contains a transaction date and the name of
the purchaser ... this entry is always formatted like this:
dd.mm.yyyy lastname,firstname

Of course, the first & last names are of variable lengths. Is it
possible to build a formula that would essentially strip off the date
and space (eg "05.15.2009 "), leaving me with the full name of the
purchaser?

My current solution utilizes the text-to-columns functionality, but
requires the user to add a column (in the correct location or risk
over-writing data) and then using text-to-columns ... I'd like it to
be an 'automatic' action when the data is refreshed (ie, re-pasted).

Any ideas?

Thanks, ray


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Parse variable length strings

this entry is always formatted like this:
dd.mm.yyyy lastname,firstname


Try this:

=MID(A1,13,255)

--
Biff
Microsoft Excel MVP


"Ray" wrote in message
...
Hi -

I have a data-dump that's used as the source data for a variance
report. One of the fields contains a transaction date and the name of
the purchaser ... this entry is always formatted like this:
dd.mm.yyyy lastname,firstname

Of course, the first & last names are of variable lengths. Is it
possible to build a formula that would essentially strip off the date
and space (eg "05.15.2009 "), leaving me with the full name of the
purchaser?

My current solution utilizes the text-to-columns functionality, but
requires the user to add a column (in the correct location or risk
over-writing data) and then using text-to-columns ... I'd like it to
be an 'automatic' action when the data is refreshed (ie, re-pasted).

Any ideas?

Thanks, ray



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,934
Default Parse variable length strings

Good point... the 'dd' part didn't register with me.

--
Rick (MVP - Excel)


"T. Valko" wrote in message
...
this entry is always formatted like this:
dd.mm.yyyy lastname,firstname


Try this:

=MID(A1,13,255)

--
Biff
Microsoft Excel MVP


"Ray" wrote in message
...
Hi -

I have a data-dump that's used as the source data for a variance
report. One of the fields contains a transaction date and the name of
the purchaser ... this entry is always formatted like this:
dd.mm.yyyy lastname,firstname

Of course, the first & last names are of variable lengths. Is it
possible to build a formula that would essentially strip off the date
and space (eg "05.15.2009 "), leaving me with the full name of the
purchaser?

My current solution utilizes the text-to-columns functionality, but
requires the user to add a column (in the correct location or risk
over-writing data) and then using text-to-columns ... I'd like it to
be an 'automatic' action when the data is refreshed (ie, re-pasted).

Any ideas?

Thanks, ray




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
clear all zero-length strings from spreadsheet? Matt D Francis Excel Discussion (Misc queries) 7 February 21st 07 04:33 PM
clear all zero-length strings from spreadsheet? Matt D Francis Excel Discussion (Misc queries) 0 February 21st 07 02:09 PM
clear all zero-length strings from spreadsheet? john Excel Discussion (Misc queries) 0 February 21st 07 01:58 PM
String parsing with variable lenght strings frosterrj Excel Worksheet Functions 10 March 31st 06 11:46 PM
Converting variable text strings to numeric Richgard53 Excel Discussion (Misc queries) 1 July 13th 05 06:22 AM


All times are GMT +1. The time now is 01:47 AM.

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"