+ Reply to Thread
Results 1 to 7 of 7

Return Single Row of Values That Meet Two Criteria

  1. #1
    Registered User
    Join Date
    12-09-2009
    Location
    Palatine, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    30

    Return Single Row of Values That Meet Two Criteria

    Hello,

    I have been working at this issue for around a day now, and I cannot figure out a way to return a single column of data, if 2 criteria are met.

    I have created an example sheet, with data in columns W, X, and Y, as the actual sheet I'm working with has the data contained in these columns. This example is not very extensive, but the list that I'm searching through sometimes goes up to around 9000 lines.

    W = Date that I need to match
    X = Count of returns
    Y = Number I need to return

    For example, on the Raw Data sheet, row 2, if the criteria was that the request was completed on 3/5/2011, but was returned 1 time(or greater), then the number in Y would be returned.

    The part I cannot figure out is that I need to make a list of all the numbers in column Y that meet this criteria. (Error Rate 4 8 has an example)

    Any guidance is appreciated in advance!

    -SMB
    Attached Files Attached Files
    Last edited by SMB; 05-18-2011 at 01:49 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Return Single Row of Values That Meet Two Criteria

    I don't understand the results... where do these:

    Number 1
    Number 2
    Number 3
    Number 4
    Number 5

    come from as results for 03/05/2011?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    12-09-2009
    Location
    Palatine, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Return Single Row of Values That Meet Two Criteria

    Yes, that was just a filler for the numbers in column Y to simulate what I am hoping to come out with. The numbers that would be in column B to replace those would be 100,103,108,111,and 120.

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Return Single Row of Values That Meet Two Criteria

    Not sure about how much actual data you have and how many times the formula is used, but we can try this for now:

    In B3 enter formula:

    Please Login or Register  to view this content.
    Adjust the ranges to suit your data

    confirmed with CTRL+SHIFT+ENTER
    not just ENTER and copy down as far as you think you need to get all data and across as far as needed.


    If this proves to be too slow... we can try other method with helper columns....

  5. #5
    Registered User
    Join Date
    12-09-2009
    Location
    Palatine, Illinois
    MS-Off Ver
    Excel 2007
    Posts
    30

    Re: Return Single Row of Values That Meet Two Criteria

    Hi there, that seems to do the trick. It doesn't seem slow, although I've still got to try it out w/ around 9000 lines. Thanks for all of your help!

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Return Single Row of Values That Meet Two Criteria

    Quote Originally Posted by SMB View Post
    ... although I've still got to try it out w/ around 9000 lines
    That is the challenge!

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Return Single Row of Values That Meet Two Criteria

    If it proves to be inefficient then try the following....

    In Raw Data!Z2 enter:

    Please Login or Register  to view this content.
    copied down all the rows.

    in the Error sheet, B3 enter:

    Please Login or Register  to view this content.
    copied down as far as you need and across the columns...


    This should be much more efficient.
    Last edited by NBVC; 05-18-2011 at 02:18 PM. Reason: Simplified formulas a bit.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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