Ok, so maybe I need a vlookup or maybe I need a different fuction.
Here is the story:
I have a data set of about 9,000 rows. In that data, there are groups of similar information, and all similar data to is grouped in adjacent rows. Some are sets of 2, some of 7, and some are incomplete sets.
My interest is in the groups of 7. So I coded the 7 elements as 1-7.
I want excel to crawl over the data, and in instances where there is a complete set of 7, I want excel to look at a particular column for metrics and tell me the Maximum metric of the 7 rows. To do that I used this formula:
=IF(D166=1,IF(D171=7,MAX(H166:H171),""))
MY QUESTION CONCERNS: Once I know the maximum, I want excel to find in which of the 7 adjacent rows the maximum occurs, and return the unique identifier in that row. But I don't know how to limit a vlookup function to an area within one column. How can this be done?
Does anyone have a better idea of how to solve this problem?
Here is the story:
I have a data set of about 9,000 rows. In that data, there are groups of similar information, and all similar data to is grouped in adjacent rows. Some are sets of 2, some of 7, and some are incomplete sets.
My interest is in the groups of 7. So I coded the 7 elements as 1-7.
I want excel to crawl over the data, and in instances where there is a complete set of 7, I want excel to look at a particular column for metrics and tell me the Maximum metric of the 7 rows. To do that I used this formula:
=IF(D166=1,IF(D171=7,MAX(H166:H171),""))
MY QUESTION CONCERNS: Once I know the maximum, I want excel to find in which of the 7 adjacent rows the maximum occurs, and return the unique identifier in that row. But I don't know how to limit a vlookup function to an area within one column. How can this be done?
Does anyone have a better idea of how to solve this problem?