+ Reply to Thread
Results 1 to 3 of 3

How can a find the row number of a row meeting specified criteria?

  1. #1
    Registered User
    Join Date
    02-17-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2007
    Posts
    25

    How can a find the row number of a row meeting specified criteria?

    I want to find the row number of a row that meets specified criteria, but I need it to match three different variables in columns B, C, D.

    There are mutliple rows, could be any number of such. The cells could have different values like 0, 0, 1; 1,1, 0; 1, 0, 1. and so on. I have the values I want set up in a different temp variables sheet. These came from an index forumal referencing another sheet. I tried using a sumproduct and then using the row formula, but I realized that only gave me the row of the sheet I was in, not the sheet I was referencing in sumproduct.

    So is there a way to get the row number of a row containing the right combnation of 1's and 0's?

    Thanks for any help.

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

    Re: How can a find the row number of a row meeting specified criteria?

    Try:

    =MATCH(1,INDEX((range1=criteria1)*(range2=criteria2)*(range3=criteria3),0),0)

    and it assumes that the ranges start at row 1... this finds the vertical position within the ranges... so if you want row number and your ranges don't start at row 1, you will need to add number of rows to offset to the formula.
    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
    02-17-2012
    Location
    charlotte, nc
    MS-Off Ver
    Excel 2007
    Posts
    25

    Re: How can a find the row number of a row meeting specified criteria?

    That worked wonderfully! Thanks so much.

+ 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