+ Reply to Thread
Results 1 to 5 of 5

Find text in another worksheet and bring value from two cells to right of text.

  1. #1
    Forum Contributor
    Join Date
    03-09-2012
    Location
    Isle of Man
    MS-Off Ver
    Excel 2010
    Posts
    118

    Find text in another worksheet and bring value from two cells to right of text.

    I am looking for a formula that will search a worksheet for text. When it finds the text the value in the cell 2 columns to right of the text will be result of the formula.

    It's kind of like a VLOOKUP up the text won't always be in the same column so I can't use an array as it wouldn't be consistent.

    I have tried this:


    =INDEX(John Smith!A1:U425,SUMPRODUCT(--(John Smith!A1:U425=Accounts Reporting 2015!A139)*ROW(John Smith!A1:U425)),SUMPRODUCT(--(John Smith!A1:U425=Accounts Reporting 2015!A139)*COLUMN(John Smith!A1:U425))+3)

    John Smith the tab where the text will be and Accounts Reporting 2015 is where I want the value to appear. This isn't working though as I keeping getting an update values prompt which I don't understand. The workbook isn't linked to any other workbooks or external data. When I click cancel on the update values prompt I get a #NAME? error.

  2. #2
    Forum Contributor
    Join Date
    03-09-2012
    Location
    Isle of Man
    MS-Off Ver
    Excel 2010
    Posts
    118

    Re: Find text in another worksheet and bring value from two cells to right of text.

    Sorry 3 columns to the right not two.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Find text in another worksheet and bring value from two cells to right of text.

    As you have a space in the sheet name, you will need to enclose it within apostrophes, like this:

    =INDEX('John Smith'!A1:U425, ...

    and the same for all the other occurrences.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    03-09-2012
    Location
    Isle of Man
    MS-Off Ver
    Excel 2010
    Posts
    118

    Re: Find text in another worksheet and bring value from two cells to right of text.

    Pete,

    I have been pulling my hair out for ages.

    That has solved it. Thank you so much.

    Dec

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: Find text in another worksheet and bring value from two cells to right of text.

    Glad to be able to help, Dec.

    As well as marking the thread as SOLVED., you might also like to know that you can directly thank those who have helped you by clicking on the small "star" icon located in the lower left corner of a post that you have found to be helpful (not just in this thread - for any post that has helped you). This also adds to the reputation of the poster (the small green bars in the poster's profile).

    Pete

+ 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. Replies: 1
    Last Post: 12-10-2013, 05:23 PM
  2. Replies: 5
    Last Post: 08-21-2013, 10:45 AM
  3. Replies: 3
    Last Post: 12-18-2012, 07:19 PM
  4. Replies: 11
    Last Post: 12-10-2012, 10:40 AM
  5. [SOLVED] Set reference, find it, find where text matches, bring across value
    By gwsampso in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 10-28-2012, 10:59 PM
  6. find cells containing text and copy to another worksheet
    By Totosha in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-23-2010, 12:50 PM
  7. Replies: 12
    Last Post: 01-14-2008, 03:01 PM
  8. [SOLVED] Find a non-blank cell and bring back text a in same row
    By Rod in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 03-24-2005, 06:06 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