+ Reply to Thread
Results 1 to 6 of 6

Pull values after specific word

  1. #1
    Forum Contributor
    Join Date
    12-11-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    517

    Pull values after specific word

    Hi, can someone please help with vba code where i pull date and account # from cell and put it in another cell.

    For example if in column C contains "DATE IS 10-10-2015, ACCOUNT# 123456789"
    I would like just the date in another column and account in another column. Dates and Account are not always in the same order. it can be a mixture. I think i would require something where if the words "DATE IS" is found in cell then pull the date and if the word "Account" is found then take the account # and put them in respective column A and B. Thanks for help

    Result should be
    Column A Column B
    10-10-2015 123456789

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Pull values after specific word

    Hi,

    Assuming the date strings are always 10 characters then in A1
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    and assuming the Account # is always 9 digits then in B1

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Pull values after specific word

    Maybe:

    Please Login or Register  to view this content.

  4. #4
    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: Pull values after specific word

    Enter formula in A1 and pull it to B1

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


    Data Range
    A
    B
    C
    1
    10-10-2015
    123456789
    DATE IS 10-10-2015, ACCOUNT# 123456789
    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

  5. #5
    Forum Contributor
    Join Date
    12-11-2009
    Location
    Toronto
    MS-Off Ver
    Excel 2010
    Posts
    517

    Re: Pull values after specific word

    Thanks Guys but i was looking for something more like this. So far its working ok

    Please Login or Register  to view this content.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Pull values after specific word

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ 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] Pull first word if one word , pull first if two words
    By makinmomb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2015, 04:22 PM
  2. Replies: 2
    Last Post: 06-10-2015, 12:12 AM
  3. Replies: 2
    Last Post: 06-09-2015, 11:20 PM
  4. [SOLVED] Combine two cell values to pull from specific Named Range
    By vamosj in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-13-2014, 06:08 PM
  5. VBA Trying to pull specific Word table cells into specific Excel cells
    By ez08mbba in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-16-2012, 01:11 PM
  6. Count Specific Text Values in a Word Table Formula
    By cpg3 in forum Word Programming / VBA / Macros
    Replies: 1
    Last Post: 02-02-2012, 09:37 PM
  7. Pull out specific values from numerous workbooks
    By jimmy1981 in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 12-21-2010, 04:19 AM

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