+ Reply to Thread
Results 1 to 3 of 3

Lookup and Return

  1. #1
    Registered User
    Join Date
    04-24-2013
    Location
    Cola SC
    MS-Off Ver
    Excel 2010
    Posts
    73

    Lookup and Return

    Afternoon, I am having a difficult time that seems should be easy. I have 2 spreadsheets. Sheet One has data I am looking up to see if it can be found on sheet 2 ; with that, I would like the formula to return the text Yes or No. But , when I am doing this, I am catching that it is not accounting for all the data. Example: it will say no - I will look up that IP as a double check, and I will find that IP address on Sheet two. (so okay , maybe it is the IP Address ,,, lets look up th host name )
    So I did that; same result.

    How do I get a formula or statement to bring back whether or not the data was provided on sheet 2? (without lying)

    Sincerely, Hns

  2. #2
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS 365 Family 64-bit 2411
    Posts
    26,673

    Re: Lookup and Return

    Suppose you have a value in cell A1 of Sheet One. You want to see if that is in column B of sheet 2.

    =IF(ISERROR(MATCH(A1,'sheet 2'!B:B,0)),"No","Yes")

    If that doesn't work please attach a file with sample data. The paper clip icon does not work for attachments. To attach a file, under the text box where you type your reply click the Go Advanced button. On the next screen scroll down and click on Manage Attachments, which will show a pop-up window to Select and Upload a file. Then close the window.
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  3. #3
    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: Lookup and Return

    Hi

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


    is the generally recognised way of identofying a match. It returns the row number of the item being looked up in the sheet being looked at.
    #N/A wil mean no match.

    To get a yes or no wrap it in an IF test

    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.

+ 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] Lookup: Lookup employee id and return value in cell x basued on most recent start date
    By jekeith in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-21-2018, 12:56 PM
  2. [SOLVED] IF logical test pass return with 1st LOOKUP if true, if false then return with 2nd VLOOKUP
    By powerzasty in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2017, 03:55 PM
  3. Replies: 4
    Last Post: 05-19-2015, 08:42 PM
  4. Replies: 2
    Last Post: 05-07-2015, 04:38 PM
  5. Lookup a blank cell in a Lookup table and return a figure.
    By jonnops in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2014, 07:33 AM
  6. Replies: 4
    Last Post: 03-13-2013, 12:38 PM
  7. Replies: 1
    Last Post: 11-07-2012, 01:57 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