#1   Report Post  
Posted to microsoft.public.excel.misc
jason2444
 
Posts: n/a
Default sorting data with ;

have a file in one column each cell has something like this V8; 5.4;
GAS;FI;MFI;S;3;
need to write a formula in another cell to get V8; 5.4; GAS how do I get it
to grab everything to the left of the 3rd ;
  #2   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default sorting data with ;


to the left:


=MID(A1,1,FIND(";",MID(A1,FIND(";",MID(A1,FIND(";" ,A1),99))+1,99))+FIND(";",MID(A1,FIND(";",A1)+1,99 ))+FIND(";",A1)+1)

to the right:


=MID(A1,FIND(";",MID(A1,FIND(";",MID(A1,FIND(";",A 1),99))+1,99))+FIND(";",MID(A1,FIND(";",A1)+1,99)) +FIND(";",A1)+3,99)


or you could select the column and do Data, Text to Columns, delimited
on ; and then join the relavant cells together

--

jason2444 Wrote:
have a file in one column each cell has something like this V8; 5.4;
GAS;FI;MFI;S;3;
need to write a formula in another cell to get V8; 5.4; GAS how do I
get it
to grab everything to the left of the 3rd ;



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=532067

  #3   Report Post  
Posted to microsoft.public.excel.misc
jason2444
 
Posts: n/a
Default sorting data with ;

I need it to only grab everything to the left of the specified ; without
setting a number of characters to grab after the ;
because I will need different amount of characters per line
V8; 5.7; GAS;CARB;4BBL;N;J; V8; 5.7; GAS
V8; 5.7; Diesel;CARB;4BBL;N;J; V8; 5.7; Die

can this be done?

"Bryan Hessey" wrote:


to the left:


=MID(A1,1,FIND(";",MID(A1,FIND(";",MID(A1,FIND(";" ,A1),99))+1,99))+FIND(";",MID(A1,FIND(";",A1)+1,99 ))+FIND(";",A1)+1)

to the right:


=MID(A1,FIND(";",MID(A1,FIND(";",MID(A1,FIND(";",A 1),99))+1,99))+FIND(";",MID(A1,FIND(";",A1)+1,99)) +FIND(";",A1)+3,99)


or you could select the column and do Data, Text to Columns, delimited
on ; and then join the relavant cells together

--

jason2444 Wrote:
have a file in one column each cell has something like this V8; 5.4;
GAS;FI;MFI;S;3;
need to write a formula in another cell to get V8; 5.4; GAS how do I
get it
to grab everything to the left of the 3rd ;



--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=532067


  #4   Report Post  
Posted to microsoft.public.excel.misc
Bryan Hessey
 
Posts: n/a
Default sorting data with ;


In the column that you wish the result to be, (say column D)

in cell D1 post the formula shown for 'to the left' - ie:

=MID(A1,1,FIND(";",MID(A1,FIND(";",MID(A1,FIND(";"
,A1),99))+1,99))+FIND(";",MID(A1,FIND(";",A1)+1,99 ))+FIND(";",A1)+1)

and formula-drag this to the end of your data

this should provide what you want.

--


jason2444 Wrote:
I need it to only grab everything to the left of the specified ;
without
setting a number of characters to grab after the ;
because I will need different amount of characters per line
V8; 5.7; GAS;CARB;4BBL;N;J; V8; 5.7; GAS
V8; 5.7; Diesel;CARB;4BBL;N;J; V8; 5.7; Die

can this be done?

"Bryan Hessey" wrote:


to the left:



=MID(A1,1,FIND(";",MID(A1,FIND(";",MID(A1,FIND(";" ,A1),99))+1,99))+FIND(";",MID(A1,FIND(";",A1)+1,99 ))+FIND(";",A1)+1)

to the right:



=MID(A1,FIND(";",MID(A1,FIND(";",MID(A1,FIND(";",A 1),99))+1,99))+FIND(";",MID(A1,FIND(";",A1)+1,99)) +FIND(";",A1)+3,99)


or you could select the column and do Data, Text to Columns,

delimited
on ; and then join the relavant cells together

--

jason2444 Wrote:
have a file in one column each cell has something like this V8;

5.4;
GAS;FI;MFI;S;3;
need to write a formula in another cell to get V8; 5.4; GAS how do

I
get it
to grab everything to the left of the 3rd ;



--
Bryan Hessey

------------------------------------------------------------------------
Bryan Hessey's Profile:

http://www.excelforum.com/member.php...o&userid=21059
View this thread:

http://www.excelforum.com/showthread...hreadid=532067




--
Bryan Hessey
------------------------------------------------------------------------
Bryan Hessey's Profile: http://www.excelforum.com/member.php...o&userid=21059
View this thread: http://www.excelforum.com/showthread...hreadid=532067

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
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
sorting data and automatic graphs timc Charts and Charting in Excel 3 January 27th 06 08:37 PM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
Automatically sorting data leehutch Excel Discussion (Misc queries) 4 August 22nd 05 06:36 AM
how do you prevent data from changing values when sorting linked . Cassie Excel Discussion (Misc queries) 0 March 4th 05 10:45 AM


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