Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Text to column where to put result

I am using text to column.
Have name-name2
They are separated by a "dash". Want them in two separate columns.
What do I put in the destination cell?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 132
Default Text to column where to put result

Assume that your data is in a1 cell like the below.

A1 cell
name-name2

Copy and paste the below formula in B1 cell
=IF(A1="","",TRIM(LEFT(A1,FIND("-",A1)-1)))

Copy and paste the below formula in C1 cell
=IF(A1="","",TRIM(MID(A1,FIND("-",A1)+1,255)))
--
Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Going Crazy with excel" wrote:

I am using text to column.
Have name-name2
They are separated by a "dash". Want them in two separate columns.
What do I put in the destination cell?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 694
Default Text to column where to put result

Hi
Assuming your data is starting at A1, if you select B1, it will be transferred
to column B and C.
If you leave it at A1 then it will be in column A and B.
If you don't like the result, you can undo and start over.
HTH
John
"Going Crazy with excel" wrote
in message ...
I am using text to column.
Have name-name2
They are separated by a "dash". Want them in two separate columns.
What do I put in the destination cell?


  #4   Report Post  
Senior Member
 
Location: Hyderabad
Posts: 237
Thumbs up

Quote:
Originally Posted by Going Crazy with excel[_2_] View Post
I am using text to column.
Have name-name2
They are separated by a "dash". Want them in two separate columns.
What do I put in the destination cell?
assuming the data exist in Column A, follow below steps

step 1: select the entire column A
step 2: choose data on menu bar
step 3: choose text to columns
step 4: choose delimited
step 5: give "-" (hyphen) in other
step 6: click on next and then finish

now the data is splited into two columns.

all the best
__________________
Thanks
Bala
  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Text to column where to put result

I think you are on the right track MS-Exl-Learner, but it didn't work.
Got a "value" error.
Originally tried the text to column tab, but that would not recognize the
"dash" -, instead of the space. Yup that would be too easy.
Guess the formula, is the only way to go. Just need to tweek it. Any ideas?
Again, my cell looks like this:
ralph-cramdon


"Ms-Exl-Learner" wrote:

Assume that your data is in a1 cell like the below.

A1 cell
name-name2

Copy and paste the below formula in B1 cell
=IF(A1="","",TRIM(LEFT(A1,FIND("-",A1)-1)))

Copy and paste the below formula in C1 cell
=IF(A1="","",TRIM(MID(A1,FIND("-",A1)+1,255)))
--
Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------


"Going Crazy with excel" wrote:

I am using text to column.
Have name-name2
They are separated by a "dash". Want them in two separate columns.
What do I put in the destination cell?



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 703
Default Text to column where to put result

Look at the TextToColumns function again.
In Delemiter section check 'Other' and enter the dash. Follow the
guide, and see what happens.

Regards,
Per

On 22 Maj, 01:37, Going Crazy with excel
wrote:
I think you are on the right track MS-Exl-Learner, but it didn't work.
Got a "value" error.
Originally tried the text to column tab, but that would not recognize the
"dash" -, instead of the space. *Yup that would be too easy.
Guess the formula, is the only way to go. *Just need to tweek it. *Any ideas?
Again, my cell looks like this:
ralph-cramdon



"Ms-Exl-Learner" wrote:
Assume that your data is in a1 cell like the below.


A1 cell
name-name2


Copy and paste the below formula in B1 cell
=IF(A1="","",TRIM(LEFT(A1,FIND("-",A1)-1)))


Copy and paste the below formula in C1 cell
=IF(A1="","",TRIM(MID(A1,FIND("-",A1)+1,255)))
--
Remember to Click Yes, if this post helps!


--------------------
(Ms-Exl-Learner)
--------------------


"Going Crazy with excel" wrote:


I am using text to column.
Have name-name2
They are separated by a "dash". *Want them in two separate columns.
What do I put in the destination cell?- Skjul tekst i anførselstegn -


- Vis tekst i anførselstegn -


  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 16
Default Text to column where to put result

Per Jessen, I did try that. Will not separte one name from the other for
whatever reason. Of course, that would be to simple. That's the reason I am
contemplating going back with a formula, just can't find the right one.

"Per Jessen" wrote:

Look at the TextToColumns function again.
In Delemiter section check 'Other' and enter the dash. Follow the
guide, and see what happens.

Regards,
Per

On 22 Maj, 01:37, Going Crazy with excel
wrote:
I think you are on the right track MS-Exl-Learner, but it didn't work.
Got a "value" error.
Originally tried the text to column tab, but that would not recognize the
"dash" -, instead of the space. Yup that would be too easy.
Guess the formula, is the only way to go. Just need to tweek it. Any ideas?
Again, my cell looks like this:
ralph-cramdon



"Ms-Exl-Learner" wrote:
Assume that your data is in a1 cell like the below.


A1 cell
name-name2


Copy and paste the below formula in B1 cell
=IF(A1="","",TRIM(LEFT(A1,FIND("-",A1)-1)))


Copy and paste the below formula in C1 cell
=IF(A1="","",TRIM(MID(A1,FIND("-",A1)+1,255)))
--
Remember to Click Yes, if this post helps!


--------------------
(Ms-Exl-Learner)
--------------------


"Going Crazy with excel" wrote:


I am using text to column.
Have name-name2
They are separated by a "dash". Want them in two separate columns.
What do I put in the destination cell?- Skjul tekst i anførselstegn -


- Vis tekst i anførselstegn -


.

  #8   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Text to column where to put result

Perhaps you've got the wrong sort of dash character. Copy from your data to
your formula or to your Data/ Text to Columns dialogue.
--
David Biddulph


"Going Crazy with excel"
wrote in message ...
Per Jessen, I did try that. Will not separte one name from the other for
whatever reason. Of course, that would be to simple. That's the reason I
am
contemplating going back with a formula, just can't find the right one.

"Per Jessen" wrote:

Look at the TextToColumns function again.
In Delemiter section check 'Other' and enter the dash. Follow the
guide, and see what happens.

Regards,
Per

On 22 Maj, 01:37, Going Crazy with excel
wrote:
I think you are on the right track MS-Exl-Learner, but it didn't work.
Got a "value" error.
Originally tried the text to column tab, but that would not recognize
the
"dash" -, instead of the space. Yup that would be too easy.
Guess the formula, is the only way to go. Just need to tweek it. Any
ideas?
Again, my cell looks like this:
ralph-cramdon



"Ms-Exl-Learner" wrote:
Assume that your data is in a1 cell like the below.

A1 cell
name-name2

Copy and paste the below formula in B1 cell
=IF(A1="","",TRIM(LEFT(A1,FIND("-",A1)-1)))

Copy and paste the below formula in C1 cell
=IF(A1="","",TRIM(MID(A1,FIND("-",A1)+1,255)))
--
Remember to Click Yes, if this post helps!

--------------------
(Ms-Exl-Learner)
--------------------

"Going Crazy with excel" wrote:

I am using text to column.
Have name-name2
They are separated by a "dash". Want them in two separate columns.
What do I put in the destination cell?- Skjul tekst i
anførselstegn -

- Vis tekst i anførselstegn -


.


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
Determine a result of one column based on conditions in two column tel703 Excel Discussion (Misc queries) 1 March 25th 10 05:01 PM
finding the largest value for a name in a column and then returningthe result from a different column [email protected] Excel Worksheet Functions 1 April 14th 08 10:08 AM
If column = value sum another column and place result in cell S Himmelrich Excel Discussion (Misc queries) 1 February 12th 08 06:00 PM
add numbers in a column and transfer result to another column planecents Excel Worksheet Functions 3 March 2nd 07 06:05 PM
Formula to lookup Multiple Column Text and then Count Result ShelbyMan Excel Worksheet Functions 2 August 22nd 05 01:43 AM


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