+ Reply to Thread
Results 1 to 5 of 5

vlookup to check multiple rows

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    02-20-2014
    Location
    Ireland
    MS-Off Ver
    Excel 2013
    Posts
    108

    vlookup to check multiple rows

    Hi All,

    I have a summary list of orders received, the complete order has a unique number, but in that order there could be 50 items

    these separate 50 items are listed on another sheet, each of the 50 items is listed with the same unique number beside it

    Example:

    Order00114-50 is listed on the summary sheet, and on the other sheet, the sub details are listed as so in column A and B

    Order00114-50 - Screws - Yes
    Order00114-50 - Washers - No
    Order00114-50 - Bolts - Yes

    Beside each item I have column "C" titled "inspected" with a "Yes" or a "No"

    I need a formula that will look to see if all orders have "Yes" in column C, and then return the result to my summary sheet

    So the formula needs to find all instances of the unique code, this quantity varies with orders, and return a "Yes" or "No" value to my summary sheet, the example above should return a "No" as all items have not been inspected

    Hope that makes sense, thanks in advance for any replies

    Simon

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: vlookup to check multiple rows

    It would make more sense if you made up a sample workbook and attached it to your post.

  3. #3
    Forum Contributor
    Join Date
    06-26-2013
    Location
    LAX
    MS-Off Ver
    Excel 2007,Excel 2010
    Posts
    363

    Re: vlookup to check multiple rows

    Hi Simon,

    See attached file helps.Mostly self explanatory. simon_example.xlsx

    Elayaz

  4. #4
    Registered User
    Join Date
    09-27-2015
    Location
    Rhode Island, USA
    MS-Off Ver
    2013
    Posts
    35

    Re: vlookup to check multiple rows

    Simon,

    It's not a vlookup function - I think a combination of if, offset and countif functions will do it for you.

    Try this function on your 1st sheet (that has the unique Order number) and place this in column B (next to the Order IDs).

    =IF(COUNTIF(OFFSET(Sheet2!$A$1,MATCH(Sheet1!$A2,Sheet2!$A:$A,0)-1,2,COUNTIF(Sheet2!$A:$A,Sheet1!$A2)),"No")>0,"No","Yes")

    See attached excel just for clarity.

    The only caveat is - you have to make sure that the Inspected column is a drop down so that you can only have a Yes or No option without spaces ("no "). Otherwise the function isn't going to work - it could be fixed by adding a wildcard * in the countif function, i.e. instead of "No" do "No*", or "*no*".

    So revised it'd look like this:

    =IF(COUNTIF(OFFSET(Sheet2!$A$1,MATCH(Sheet1!$A2,Sheet2!$A:$A,0)-1,2,COUNTIF(Sheet2!$A:$A,Sheet1!$A2)),"*No*")>0,"No","Yes")


    Thanks,
    Hilmy
    Last edited by Mr_HiB; 09-27-2015 at 12:07 PM.

  5. #5
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: vlookup to check multiple rows

    My guess was more like this, my reason for suggesting a sample workbook was that this could be open to interpretation in several ways.
    Attached Files Attached Files

+ 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. Check for multiple vlookup return values
    By mgblair in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-24-2015, 06:03 PM
  2. Vlookup or Index Match to check value across multiple sheets
    By HB07 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-03-2015, 03:57 AM
  3. [SOLVED] HELP: Vlookup using multiple criteria to check values
    By jasonj427 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-15-2014, 09:00 PM
  4. [SOLVED] How can I use Vlookup to check multiple task fulfilment?
    By Baloo in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 06-10-2013, 04:21 PM
  5. Multiple Row Match (VLOOKUP Extended) to find Multiple Rows
    By Niper in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-24-2011, 10:58 AM
  6. Multiple ccolums/rows to get data from multiple columns/rows (vlookup)
    By Ramzes in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-18-2010, 05:35 AM
  7. use of vlookup in case of multiple column check
    By Bharat Saboo in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-31-2005, 12:15 PM

Tags for this Thread

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