Attached is a sample worksheet.
The Status column contains a small number of possible values. I want to only count records whose Status value is either "Yes" or "No", and I only want to count until the sum of the "Yes" and "No" records equals the number specified in cell F2.
In other words, in this sample worksheet, the Number Yes result should be 4, and the Number No result should be 2 (and then the counting would stop because 6 records have been counted).
What is the best formula to do this?
Bookmarks