Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default separate into two columns

I need to take information in a spreadsheet (mailing list) and separate the
title columns into two columns because the title is too long.
Deputy Manager - Investment Fund - Vice President - Clients Relations &
Media & Communications
Want it to be:
Title 1 = Deputy Manager - Investment Fund - Vice President
Title 2 = Clients Relations & Media & Communications
Is there a formula that will move words into another column if the line
exceeds say 30 or 40 characters. Also can it do it without truncating a word.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default separate into two columns

=IF(LEN(A1)35,TRIM(LEFT(A1,FIND("-",A1,35)-1)),A1)

and

=IF(LEN(A1)35,TRIM(MID(A1,FIND("-",A1,35)+1,99)),"")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"gwbdirect" wrote in message
...
I need to take information in a spreadsheet (mailing list) and separate the
title columns into two columns because the title is too long.
Deputy Manager - Investment Fund - Vice President - Clients Relations &
Media & Communications
Want it to be:
Title 1 = Deputy Manager - Investment Fund - Vice President
Title 2 = Clients Relations & Media & Communications
Is there a formula that will move words into another column if the line
exceeds say 30 or 40 characters. Also can it do it without truncating a
word.



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default separate into two columns

Hi Bob,
Thanks for the formula,
I tried it and if a cell is blank I get a 0. How can I add to the formula so
this doesn't happen and also some of the cells I get a value error
example: SVP & Chief Officer, Wealth Management #VALUE!


"Bob Phillips" wrote:

=IF(LEN(A1)35,TRIM(LEFT(A1,FIND("-",A1,35)-1)),A1)

and

=IF(LEN(A1)35,TRIM(MID(A1,FIND("-",A1,35)+1,99)),"")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"gwbdirect" wrote in message
...
I need to take information in a spreadsheet (mailing list) and separate the
title columns into two columns because the title is too long.
Deputy Manager - Investment Fund - Vice President - Clients Relations &
Media & Communications
Want it to be:
Title 1 = Deputy Manager - Investment Fund - Vice President
Title 2 = Clients Relations & Media & Communications
Is there a formula that will move words into another column if the line
exceeds say 30 or 40 characters. Also can it do it without truncating a
word.




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default separate into two columns

=IF(A1="","",IF(AND(LEN(A1)35,ISNUMBER(FIND("-",A1))),TRIM(LEFT(A1,FIND("-",A1,35)-1)),A1))

and

=IF(AND(LEN(A1)35,ISNUMBER(FIND("-",A1))),TRIM(MID(A1,FIND("-",A1,35)+1,99)),"")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"gwbdirect" wrote in message
...
Hi Bob,
Thanks for the formula,
I tried it and if a cell is blank I get a 0. How can I add to the formula
so
this doesn't happen and also some of the cells I get a value error
example: SVP & Chief Officer, Wealth Management #VALUE!


"Bob Phillips" wrote:

=IF(LEN(A1)35,TRIM(LEFT(A1,FIND("-",A1,35)-1)),A1)

and

=IF(LEN(A1)35,TRIM(MID(A1,FIND("-",A1,35)+1,99)),"")

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"gwbdirect" wrote in message
...
I need to take information in a spreadsheet (mailing list) and separate
the
title columns into two columns because the title is too long.
Deputy Manager - Investment Fund - Vice President - Clients Relations &
Media & Communications
Want it to be:
Title 1 = Deputy Manager - Investment Fund - Vice President
Title 2 = Clients Relations & Media & Communications
Is there a formula that will move words into another column if the line
exceeds say 30 or 40 characters. Also can it do it without truncating a
word.






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
Separate data into two columns Cheri Excel Discussion (Misc queries) 5 October 3rd 06 01:20 AM
I wish to separate city, state, and zip into 3 separate columns Bob Woolbert Excel Worksheet Functions 1 July 11th 06 05:29 PM
Copy columns values into separate columns Mike_can Excel Discussion (Misc queries) 7 May 27th 06 12:32 AM
swapping data from 2 separate columns Johnny D Excel Discussion (Misc queries) 1 February 15th 06 11:40 PM
Separate names into 2 columns? Ltat42a Excel Discussion (Misc queries) 8 December 11th 05 09:06 PM


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