+ Reply to Thread
Results 1 to 4 of 4

Find word and insert formula in cell to right

  1. #1
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Find word and insert formula in cell to right

    I want to find "Running Time" in column A. The words can appear within other words in a cell in column A, so cell Ai for example could be "The Running Time 123456789". I want the macro to recognize that it has found this term in this cell in column A and then in column B row i insert a formula to return the 9 characters to the right of the word Running Time, so cell Bi would be 123456789. I then want the macro to copy this cell.

    Thanks in advance.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Find word and insert formula in cell to right

    =IF(ISERROR(FIND("The Running Time",A1)),"",RIGHT(A1,9))
    Elegant Simplicity............. Not Always

  3. #3
    Valued Forum Contributor
    Join Date
    03-03-2009
    Location
    UK
    MS-Off Ver
    MS365 Subscription Excel for Mac
    Posts
    1,017

    Re: Find word and insert formula in cell to right

    Thanks for the formula Andy, that works when I know where the words The Running Time will be. The issue however is that I need a macro to find those words first as they could be in any row in column A. Can you or anyone else write a macro for that part of my problem? Thanks again.

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: Find word and insert formula in cell to right

    If you paste the function down through column B it will extract the numbers for you..

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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