+ Reply to Thread
Results 1 to 7 of 7

Extract Word from String

  1. #1
    Registered User
    Join Date
    03-21-2013
    Location
    San Francisco, CA, USA
    MS-Off Ver
    Excel 2013
    Posts
    4

    Smile Extract Word from String

    My smartphone expense app exports tags all into one column in Excel. I want to automatically extract these tags into three different columns to see where I spend my money, if the purchase is necessary, and the form of payment, all to be analyzed. How do I do this from the data in the "Tags" column?

    I realized that I can't do a simply MID and FIND for strings.

    Question.jpg

  2. #2
    Registered User
    Join Date
    09-04-2012
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    9

    Re: Extract Word from String

    If what your looking for is to simply split the tags into columns, why don't you just use the text to columns button and split it by commas.

  3. #3
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Extract Word from String

    If you want to keep the inital row use code as is, if you want to replace the initial row with the 1st part of the split change all the numbers 2 to number 1
    Please Login or Register  to view this content.


  4. #4
    Valued Forum Contributor
    Join Date
    05-14-2009
    Location
    gold coast
    MS-Off Ver
    Excel 2007
    Posts
    843

    Re: Extract Word from String

    LMAO took 5 min to write code that excel aready has a built-in function for. HAHAHAHAHA

    The Built in idear is ALOT better

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,633

    Re: Extract Word from String

    This is to start with.

    Add other necessity/payment method to Case statement if needed.
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    03-21-2013
    Location
    San Francisco, CA, USA
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Extract Word from String

    Wow.. thanks jindon! That worked perfectly. Now I'm gonna try to tinker around with it for a bit. Awesome job!

  7. #7
    Registered User
    Join Date
    03-21-2013
    Location
    San Francisco, CA, USA
    MS-Off Ver
    Excel 2013
    Posts
    4

    Re: Extract Word from String

    The Test to Columns didn't work because the order of the "Tags" are random and there are not always three words in the "Tags" column.

+ 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