• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Count rows between repeating values

In the example spreadsheet in column A is an ID# and in column B is the relationship. In row 2 there is the employee column B and their ID# in column A. In rows 3-5, they are related to the employee in row 2. What I am trying to do is in column C to have the ID# repeat until Employee is found again (Row6). Once Employee is found again then the new ID# will be put in row 6.

In the uploaded file I have the Example and the Desired Result.

Thanks!
 

Attachments

  • Book7.xlsx
    9.9 KB · Views: 6
Thank for both replies. Chihiro's formula delivered the desired result. I had almost the same formula but used TRUE after INDEX. That was what threw me off.

Again, thanks to both of you.
 
Back
Top