+ Reply to Thread
Results 1 to 5 of 5

Search and return text that matches a reference

  1. #1
    Registered User
    Join Date
    07-19-2014
    Location
    northern ireland
    MS-Off Ver
    2007
    Posts
    9

    Search and return text that matches a reference

    Hi, hoping someone can help me with a small query, it does not seem to complex but I am a novice when it comes to using spreadsheets. I will try and make the details as clear as possible.....

    **AMENDED**

    IN WORKSHEET(1) CELL (B1) I WILL BE ENTERING A LETTER ANY LETTER, I THEN WANT TO LOOK THIS LETTER UP IN WORKSHEET(2) IN
    A COLUMN AND WHEN THIS SAME LETTER IS FOUND I WANT TO RETURN THE TEXT IN THE ADJACENT CELL IN WORKSHEET(2) TO CELL (A1) IN WORKSHEET(1).

    WORKSHEET(1) CELL (B1) HAS THE LETTER Z;
    LOOK FOR THIS LETTER Z IN WORKSHEET(2) COLUMN B1:B5 AND FIND THE LETTER Z SAY IN B1 IN WORKSHEET(2);
    THEN RETURN THE TEXT IN CELL (A1) IN WORKSHEET(2);
    PLACE TEXT FROM WORKSHEET(2) (A1) IN WORKSHEET(1) CELL (A1).

    HOPE THIS IS CLEARER.....

    THANKS FOR ANY ASISTANCE.
    Last edited by JSTR250; 12-24-2015 at 05:31 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-13-2010
    Location
    Sunderland, England
    MS-Off Ver
    Excel 2007 (Home) / 2003 (Work)
    Posts
    740

    Re: Search and return text that matches a reference

    I don't think your question is very clear, but I'd guess...

    =INDEX(Sheet2!A:A,MATCH(B1,Sheet2!B:B,0),1)

    ?

  3. #3
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Search and return text that matches a reference

    It sounds like you want to put Z in sheet1!A1, have a formula look for Z in column B of sheet2, then replace Z in sheet1!A1 with the appropriate value from sheet2. That can not be done as placing a value in a cell that has a formula will erase the formula and placing a formula in a cell that has a value will erase that value. You could use a formula where the lookup value, "z", is hard coded like:
    Please Login or Register  to view this content.
    Here is a sample file:Book1.xlsx
    Let me know if you have any questions.
    Last edited by JeteMc; 12-23-2015 at 10:29 AM. Reason: Added file
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,532

    Re: Search and return text that matches a reference

    Just happened to look back here and see the amendment to your post. I tested brokenbiscuits' formula and it does what you want.

  5. #5
    Registered User
    Join Date
    07-19-2014
    Location
    northern ireland
    MS-Off Ver
    2007
    Posts
    9

    Re: Search and return text that matches a reference

    Thanks Brokenbiscuits for your help, sorry my post was not as clear as it could have been.

    Once again thanks and Merry Xmas....
    Cheers

+ 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: 2
    Last Post: 09-12-2015, 11:02 AM
  2. [SOLVED] Return value when part of a cell matches a word in a reference column
    By crazyb78 in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 07-29-2015, 05:28 AM
  3. [SOLVED] 2 matches, search and return column values
    By madnezzsg in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2015, 04:10 PM
  4. Search a table with multiple search inputs and return all matches
    By JDI in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-16-2014, 12:23 PM
  5. Search named range for multiple matches to critera and return date & values
    By a.mack123 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2011, 10:07 AM
  6. Search and return address for all matches
    By ElmerS in forum Excel General
    Replies: 13
    Last Post: 02-14-2010, 06:11 PM
  7. Search using a value that can return multiple matches
    By fg4432 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-07-2007, 10:56 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