+ Reply to Thread
Results 1 to 6 of 6

put data in its own column using formulas

  1. #1
    Forum Contributor
    Join Date
    09-19-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    140

    put data in its own column using formulas

    Hey all,

    I have a formula:
    Please Login or Register  to view this content.
    Basically, this will convert this:
    AVERNA,ROBERT C H/E
    to this:
    AVERNA,ROBERT C

    and if there is no middle initial, then it will leave this:
    Corn,Marlin
    like this:
    Corn,Marlin

    But you notice I have a string "NO" at the end. That's because I can't figure one piece of the puzzle out. I want to convert this:
    CATANESE,SALVATORE J & OLGA M
    or this:
    JIMENEZ,ALEJANDRO & HILDA M
    to this:
    CATANESE,OLGA M
    and this:
    JIMENEZ,HILDA M
    in their own column.

    I can't find any solution out there to do what I just specified above. If anyone could lead me in right track, I'd greatly appreciate.

    Thanks for response.

  2. #2
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: put data in its own column using formulas

    I'm sure there will be a more elegant way but by replacing "No" in your formula
    with
    SUBSTITUTE(A3,MID(A3,FIND(",",A3,1)+1,FIND("&",A3,1)-FIND(",",A3,1)),"")

    Combined gives
    Please Login or Register  to view this content.

    Hope this helps
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

  3. #3
    Forum Contributor
    Join Date
    09-19-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    140

    Re: put data in its own column using formulas

    Thanks for response. I will test it out.

  4. #4
    Forum Contributor
    Join Date
    09-19-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    140

    Re: put data in its own column using formulas

    Thanks for response. Do you know why when this:

    CATANESE,SALVATORE J & OLGA M

    converts to this

    CATANESE, OLGA M

    There is a space between the comma and the first name.

    Is there a quick solution to get it like this:
    CATANESE,OLGA M

    where there is no space between comma and first name

  5. #5
    Forum Contributor
    Join Date
    09-19-2010
    Location
    Philadelphia, PA
    MS-Off Ver
    Excel 2007
    Posts
    140

    Re: put data in its own column using formulas

    I seems this worked for me:
    Please Login or Register  to view this content.

  6. #6
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: put data in its own column using formulas

    A quick fix
    Please Login or Register  to view this content.

    There has to be a better way.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1