#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 65
Default Urgent Help

Hi All,
I have data in column A as follows

iut data
wexpro, data
cas - factory
pondy-sales
coffee:beverages fact

I want my output in B column as follows
A B
iut data iut
wexpro, data wexpro
cas - factory cas
pondy-sales pondy
coffee:beverages fact coffee

TIA
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Urgent Help

First of all, highlight column A and apply Find & Replace (CTRL-H)
three times as follows:

Find What: <hyphen
Replace with <space<hyphen
Replace All

CTRL-H
Find What: <colon
Replace with <space<colon
Replace All

CTRL-H
Find What: <comma
Replace with <space<comma
Replace All

Then you can apply Data | Text-to-Columns using <space as the
delimiter and choosing to skip any columns beyond the first one and to
write the data to B1 on the final panel.

Hope this helps.

Pete

On Apr 28, 4:59*pm, kiran wrote:
Hi All,
I have data in column A as follows

iut data
wexpro, data
cas - factory
pondy-sales
coffee:beverages fact

I want my output in B column as follows
* *A * * * * * * * * * * * * * * * * * B
iut data * * * * * * * * * * * * * * iut
wexpro, data * * * * * * * * * * wexpro
cas - factory * * * * * * * * * * *cas
pondy-sales * * * * * * * * * * * pondy
coffee:beverages fact * * * * coffee

TIA


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 39
Default Urgent Help

The following equation works but there is a probably an easier way with the
code or character set or a macro. But this equation does work and I have
added a semi-colon to the set of characters to search for, other characters
may be added.

=MID(A2,1,(MIN(IF(TYPE(FIND(" ",A2,1))=16,100,FIND("
",A2,1)),IF(TYPE(FIND(",",A2,1))=16,100,FIND(",",A 2,1)),IF(TYPE(FIND("-",A2,1))=16,100,FIND("-",A2,1)),IF(TYPE(FIND(":",A2,1))=16,100,FIND(":",A 2,1)),IF(TYPE(FIND(";",A2,1))=16,100,FIND(";",A2,1 )))-1))

"Pete_UK" wrote:

First of all, highlight column A and apply Find & Replace (CTRL-H)
three times as follows:

Find What: <hyphen
Replace with <space<hyphen
Replace All

CTRL-H
Find What: <colon
Replace with <space<colon
Replace All

CTRL-H
Find What: <comma
Replace with <space<comma
Replace All

Then you can apply Data | Text-to-Columns using <space as the
delimiter and choosing to skip any columns beyond the first one and to
write the data to B1 on the final panel.

Hope this helps.

Pete

On Apr 28, 4:59 pm, kiran wrote:
Hi All,
I have data in column A as follows

iut data
wexpro, data
cas - factory
pondy-sales
coffee:beverages fact

I want my output in B column as follows
A B
iut data iut
wexpro, data wexpro
cas - factory cas
pondy-sales pondy
coffee:beverages fact coffee

TIA



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
urgent help helphelp Excel Discussion (Misc queries) 1 May 15th 07 11:30 AM
#ARG! - urgent Neo Excel Discussion (Misc queries) 6 October 26th 06 11:42 PM
urgent help b166er Excel Discussion (Misc queries) 2 June 22nd 06 04:30 PM
Urgent-Urgent VBA LOOP Jeff Excel Discussion (Misc queries) 0 October 6th 05 05:46 PM
not urgent Gary's Student Excel Worksheet Functions 7 May 11th 05 10:38 PM


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