+ Reply to Thread
Results 1 to 6 of 6

How to Parse Values in One Cell into Two Cells

  1. #1
    Registered User
    Join Date
    05-16-2013
    Location
    Chiang Mai, Thailand
    MS-Off Ver
    Excel 2010
    Posts
    34

    How to Parse Values in One Cell into Two Cells

    Hello,

    I have a worksheet with City and State in One cell. I would like to extract the state into a separate cell for easier analysis. Is there a formula to do this?

    See attached worksheet.
    Attached Files Attached Files

  2. #2
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: How to Parse Values in One Cell into Two Cells

    Hi Lyndy256,

    you can use below formula in Cell B2, & then Copy down till end of your data


    =IF(ISERROR(FIND(" ",A2,1)),"",RIGHT(A2,LEN(A2)-FIND("#",SUBSTITUTE(A2," ","#",LEN(A2)-LEN(SUBSTITUTE(A2," ",""))))))
    Click on * below if you find this helpful

    Thanks,
    A

  3. #3
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,698

    Re: How to Parse Values in One Cell into Two Cells

    In B2 Cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    In C2 Cell
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Drag both the formula's down...


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  4. #4
    Registered User
    Join Date
    05-16-2013
    Location
    Chiang Mai, Thailand
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: How to Parse Values in One Cell into Two Cells

    Hi,

    It works great! The only thing is that the state abbreviation is still left in column A so I have to go back and delete that but this still helps tremendously.

    Thank you!

    Lyndy256

  5. #5
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: How to Parse Values in One Cell into Two Cells

    Hi Lyndy256,

    use code provided by sixthsense, in two column it will separate City in one column & state in another

    do not do manual work

  6. #6
    Registered User
    Join Date
    05-16-2013
    Location
    Chiang Mai, Thailand
    MS-Off Ver
    Excel 2010
    Posts
    34

    Re: How to Parse Values in One Cell into Two Cells

    Thanks, Sixthsense for the whole fix!

    Lyndy

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Parse multiple values in a cell into separate rows
    By bcullers in forum Excel Formulas & Functions
    Replies: 22
    Last Post: 01-25-2013, 03:03 PM
  2. [SOLVED] Parse out contents of cell to new cells
    By Elgreco in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 09-17-2012, 11:25 AM
  3. Replies: 6
    Last Post: 07-19-2012, 01:58 PM
  4. Parse one cell into 2 or 3 cells
    By SueWithQuestion in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-01-2010, 10:52 AM
  5. Parse data from one cell to multiple cells
    By cchoo13 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-11-2009, 01:40 PM

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