+ Reply to Thread
Results 1 to 7 of 7

display information based on two cirteria

  1. #1
    Forum Contributor
    Join Date
    08-22-2016
    Location
    london
    MS-Off Ver
    2013
    Posts
    121

    display information based on two cirteria

    hi


    i am trying to pull data from a table based on two criterias, below is a smaple from the table

    A | B | C
    ID | Vehicle No. | Status
    1 | 1 | DUD
    2 | 3 | DUD
    3 | 11 | Good
    4 | 15 | DUD
    5 | 21 | Good


    i would like to be able to pull all the Vehicle No's. Data from this table and display it in another table, based on the Status, ie when it is DUD, is there a way to do this without having to manaully reference the vehicle number, ive lloked at vlookup and index/match and if/and function but cant quite work it out.
    Last edited by kobiashi; 02-20-2018 at 04:05 PM.

  2. #2
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: display information based on two cirteria

    Please Login or Register  to view this content.
    Edit: This is an array formula:...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Attached Files Attached Files
    Last edited by protonLeah; 02-20-2018 at 07:33 PM.
    Ben Van Johnson

  3. #3
    Forum Contributor
    Join Date
    08-22-2016
    Location
    london
    MS-Off Ver
    2013
    Posts
    121

    Re: display information based on two cirteria

    hi thanks for the help, but i couldnt get the formula to work, just came up with #VALUE!, i have attached a example sheet, maybe that might help
    Attached Files Attached Files

  4. #4
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: display information based on two cirteria

    The workbook I posted is from your closed thread.

    The named ranges are:
    Criteria =Sheet2!$F$1
    Status =Sheet1!$D$1:$D$16
    Vehicle_Number =Sheet1!$A$1:$A$16

    Edit:This is an array formula...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    Last edited by protonLeah; 02-20-2018 at 07:32 PM.

  5. #5
    Forum Contributor
    Join Date
    08-22-2016
    Location
    london
    MS-Off Ver
    2013
    Posts
    121

    Re: display information based on two cirteria

    I've managed to get it to work on the workbook example I uploaded, but ive tried to use it on another workobbk, and it doesnt work, is this because there are merged cells, or other rows above the ROW reference?

    i ve uploaded a larger workbook, i was trying to use it on, the reference table is on "Tables" tab, and formula needs to go into "KPI" tab in the yellow area
    Attached Files Attached Files

  6. #6
    Forum Guru
    Join Date
    03-02-2006
    Location
    Los Angeles, Ca
    MS-Off Ver
    WinXP/MSO2007;Win10/MSO2016
    Posts
    12,598

    Re: display information based on two cirteria

    Please Login or Register  to view this content.
    Modified named ranges to dynamic ranges:
    Vehicle_Number =Tables!$J$1:INDEX(Tables!$J:$J,COUNTA(Tables!$J:$J))
    Status =Tables!$M$1:INDEX(Tables!$M:$M,COUNTA(Tables!$M:$M))
    Last edited by protonLeah; 02-20-2018 at 08:50 PM.

  7. #7
    Forum Contributor
    Join Date
    08-22-2016
    Location
    london
    MS-Off Ver
    2013
    Posts
    121

    Re: display information based on two cirteria

    Awesome, thank you works perfectly!!!

+ 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. VBA to populate to specific cells based on cirteria
    By huard in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-08-2014, 07:41 AM
  2. Most Occuring Item based off other cell equal cirteria
    By keiserj in forum Excel General
    Replies: 12
    Last Post: 07-01-2014, 09:14 AM
  3. How to display information based on date?
    By bryceowen in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-11-2008, 04:13 PM
  4. [SOLVED] HOW DO I HAVE A CELL DISPLAY INFORMATION BASED ON 2 OTHER CELLS
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-06-2005, 07:05 PM
  5. [SOLVED] HOW DO I HAVE A CELL DISPLAY INFORMATION BASED ON 2 OTHER CELLS
    By CC in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 06:05 PM
  6. HOW DO I HAVE A CELL DISPLAY INFORMATION BASED ON 2 OTHER CELLS
    By CC in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 10:05 AM
  7. [SOLVED] HOW DO I HAVE A CELL DISPLAY INFORMATION BASED ON 2 OTHER CELLS
    By Peo Sjoblom in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2005, 04:05 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