Tom Regensburger
New Member
- Joined
- Oct 3, 2005
- Messages
- 10
I'm looking to count the number of rows from the top of a range to the row that is occupied by the nth occurrence of a piece of data.
Example:
I would like to know on which row the 2nd occurrence of Greg occurs.
Row # Entry
1 Greg
2 Diane
3 John
4 Greg
The data that I am working with is approximately 250 rows and the entry "Greg" could easily occur 15 or 20 times.
I've concluded that I can accomplish this by creating some dynamic ranges and using the OFFSET and ROWS functions.
However, it seems to me that there should be an easier way and I'm hoping that someone might be able to offer some guidance.
Thanks.
Example:
I would like to know on which row the 2nd occurrence of Greg occurs.
Row # Entry
1 Greg
2 Diane
3 John
4 Greg
The data that I am working with is approximately 250 rows and the entry "Greg" could easily occur 15 or 20 times.
I've concluded that I can accomplish this by creating some dynamic ranges and using the OFFSET and ROWS functions.
However, it seems to me that there should be an easier way and I'm hoping that someone might be able to offer some guidance.
Thanks.