Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Is there a formula for...


Extracting comma seperated data from in one cell so that it will
populate in another? The data may be various lengths or be empty.

eg: 123,,2345,67894,1,,3

The file I am currently working with has 23 fields each of them varying
lengths (and they may not be populated to their max or are not populated
at all). Is there a formula I could use in the destination cells to
extract the required piece of data.

I have tried some formulas (MID), however they only seem to only work
for fixed lengths.

i'm really struggling to crack this one despite some helpful guidance.


--
guyvanzyl
------------------------------------------------------------------------
guyvanzyl's Profile: http://www.excelforum.com/member.php...o&userid=35927
View this thread: http://www.excelforum.com/showthread...hreadid=558186

  #2   Report Post  
Posted to microsoft.public.excel.misc
Dav Dav is offline
external usenet poster
 
Posts: 1
Default Is there a formula for...


If the data is already in the spreadsheet makes sure the columns to the
right of it are blank, then data_Text to columns delimited and select
comma

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=558186

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Is there a formula for...


Problem is my data is arranged in rows as it is not practical for me to
do it in columns, so that method does not work


--
guyvanzyl
------------------------------------------------------------------------
guyvanzyl's Profile: http://www.excelforum.com/member.php...o&userid=35927
View this thread: http://www.excelforum.com/showthread...hreadid=558186

  #4   Report Post  
Posted to microsoft.public.excel.misc
Dav Dav is offline
external usenet poster
 
Posts: 1
Default Is there a formula for...


If your data is in lets say cells b3, d3,e3 etc
and a typical cell is as in your example and you wish to have the split
data in cells e4, e5, e6 etc for all of column E

It assumes that the characters $ and £ do not appear in your data,
if they do you need to find unique characters that do not


in e4 put
=LEFT(B$3,SEARCH(",",B3)-1)
In e5and copy down
=MID(SUBSTITUTE(SUBSTITUTE($B$3,",","$",ROW(A1))," ,","£",ROW(A1)),SEARCH("$",SUBSTITUTE(SUBSTITUTE($ B$3,",","$",ROW(A1)),",","£",ROW(A1)))+1,SEARCH("£ ",SUBSTITUTE(SUBSTITUTE($B$3,",","$",ROW(A1)),",", "£",ROW(A1)))-SEARCH("$",SUBSTITUTE(SUBSTITUTE($B$3,",","$",ROW( A1)),",","£",ROW(A1)))-1)

in e26 your final column put
=MID(SUBSTITUTE($B$3,",","$",ROW(A23)),SEARCH("$", SUBSTITUTE($B$3,",","$",ROW(A23)))+1,LEN(B$3)-SEARCH("$",SUBSTITUTE($B$3,",","$",ROW(A23))))

Regards

Dav


--
Dav
------------------------------------------------------------------------
Dav's Profile: http://www.excelforum.com/member.php...o&userid=27107
View this thread: http://www.excelforum.com/showthread...hreadid=558186

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
Match then lookup Tenacity Excel Worksheet Functions 9 December 3rd 05 05:30 AM
Formula Problem - interrupted by #VALUE! in other cells!? Ted Excel Worksheet Functions 17 November 25th 05 05:18 PM
Formula checking multiple worksheets sonic-the-mouse Excel Worksheet Functions 2 June 5th 05 03:28 AM
Creating a check mark box MarthaSue Setting up and Configuration of Excel 18 April 28th 05 12:31 AM
Match / Vlookup within an Array formula Hari Prasadh Excel Discussion (Misc queries) 3 February 3rd 05 04:37 PM


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