+ Reply to Thread
Results 1 to 5 of 5

Extracting the nth word in Excel Document

  1. #1
    Registered User
    Join Date
    03-05-2019
    Location
    Minneapolis, MN
    MS-Off Ver
    MS Office 2010
    Posts
    25

    Extracting the nth word in Excel Document

    Does anyone know of a simple formula to extract the nth word of a cell?

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Extracting the nth word in Excel Document

    Try this, with text in A1 and n in A2
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Extracting the nth word in Excel Document

    Try this
    With text string in cell A1
    Enter formula in B1
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    In this case formula will return 3rd word in the string
    v A B
    1 This is just a test just
    By changing 300 number to 100 will return 1st word, If you change to 400 it will return 4th word
    Last edited by AlKey; 03-21-2019 at 03:23 PM.
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    03-05-2019
    Location
    Minneapolis, MN
    MS-Off Ver
    MS Office 2010
    Posts
    25

    Re: Extracting the nth word in Excel Document

    Please Login or Register  to view this content.

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Extracting the nth word in Excel Document

    You could insert the macro into your “Personal.xlsb” macro book but that is stored on your computer so will not follow you if you are on a different computer. It also requires you enter the name of the workbook like this
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    each time.

    Alternately, you can create a template with that code in it and load that template each time you plan on designing a workbook with a need for that.
    I think you’d be better off using the formula approach.

+ 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. Extracting the nth word in Excel Document
    By cabinet12 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-05-2019, 06:59 PM
  2. Extracting data from Word document to populate Excel spreadsheet
    By Jegley in forum Word Programming / VBA / Macros
    Replies: 16
    Last Post: 03-15-2017, 08:50 AM
  3. Mail merge of Excel data to Excel document, not using a Word document
    By Howie D in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-23-2015, 07:35 AM
  4. Add text to Existing Word Document if it Doesn't exist create Word Document
    By unstable81 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-10-2013, 12:15 AM
  5. Replies: 0
    Last Post: 06-15-2011, 02:22 PM
  6. Extracting data from Word document (Survey)
    By BartDeHertogh in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-21-2010, 10:34 AM
  7. [SOLVED] How do I convert a word document into a Excel document
    By gwiltz2 in forum Excel General
    Replies: 1
    Last Post: 10-22-2005, 03:05 PM

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