+ Reply to Thread
Results 1 to 12 of 12

need to lookup txt in table within a cell reference

  1. #1
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    85

    need to lookup txt in table within a cell reference

    Hi,

    Need to look up a certain values in table

    A
    1 apple
    2 Pear
    3 Grapes
    4 Strawberries

    and search for this words within a certain cell reference


    H
    2 I love apples.

    If the word appears then return value "apple".

    any ideas on how I can do this

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

    Re: need to lookup txt in table within a cell reference

    To see this in context, it would help if you attached a sample Excel workbook.

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Do not try to use the Paperclip icon, as it doesn't work on this forum.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    85

    Re: need to lookup txt in table within a cell reference

    ok I've attached a file.

    My formula starts in BE2

    I want to look up the values in my table. BJ3:BJ25

    and search these values in my cell H2. If the table value appears within Cell H2 then return that value.
    Attached Images Attached Images

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

    Re: need to lookup txt in table within a cell reference

    A picture of a worksheet is no good for working on - please attach a sample Excel workbook, as requested.

    Pete

  5. #5
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    85

    Re: need to lookup txt in table within a cell reference

    as requested....

    Formula needs to be in F2
    Attached Files Attached Files

  6. #6
    Spammer
    Join Date
    01-08-2015
    Location
    Cali, Colombia
    MS-Off Ver
    365
    Posts
    302

    Re: need to lookup txt in table within a cell reference

    Hi, kris01!

    You could try this formula:
    =LOOKUP(8^5,SEARCH(I$3:I$7,D2),I$3:I$7)

    Blessings!

  7. #7
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    85

    Re: need to lookup txt in table within a cell reference

    Brilliant. Worked perfectly.

    How do I remove the #N/a ?

  8. #8
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    85

    Re: need to lookup txt in table within a cell reference

    What does the 8^5 function mean?

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: need to lookup txt in table within a cell reference

    Try this:

    =IFNA(LOOKUP(8^5,SEARCH(I$3:I$7,D2),I$3:I$7),"")

    The 8^5 (8 to the power of 5, in other words 8 x 8 x 8 x 8 x 8) is just a very large number. You could use 99999999999999 if you wanted to.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  10. #10
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    85

    Re: need to lookup txt in table within a cell reference

    What does it tell excel to do in this instance?

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,427

    Re: need to lookup txt in table within a cell reference

    If you use Evaluate Formula on the Formulas ribbon you will see what the formula is doing. Essentially, the search returns a number in an array, so the LOOKUP needs to match a number with whatever is found there.

    In this case, this will work just as well:

    =LOOKUP(1,SEARCH(I$3:I$7,D2),I$3:I$7)

  12. #12
    Registered User
    Join Date
    05-22-2019
    Location
    london
    MS-Off Ver
    Office 365
    Posts
    85

    Re: need to lookup txt in table within a cell reference

    perfect. Thank you

+ 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. Lookup/Nested IF Statement using a Cross Reference Table
    By cphameuitybk in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-15-2018, 03:37 PM
  2. [SOLVED] lookup and return data from one table to another based on a cell reference.
    By Destiny1990 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-13-2018, 07:50 PM
  3. [SOLVED] Help with cross reference table - sum / lookup values
    By HeyInKy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-16-2015, 05:11 PM
  4. Relative reference table lookup and adjustment
    By jherbert81 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-14-2014, 08:02 PM
  5. [SOLVED] How to lookup tax rate from a reference table?
    By icarrington in forum Excel General
    Replies: 4
    Last Post: 08-23-2012, 04:43 AM
  6. Replies: 3
    Last Post: 03-15-2006, 10:35 AM
  7. Lookup /Reference Table
    By emel24 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-28-2005, 05:48 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