Results 1 to 7 of 7

Count until a condition is met

Threaded View

  1. #1
    Forum Contributor
    Join Date
    01-25-2010
    Location
    Virginia
    MS-Off Ver
    Excel 2013
    Posts
    104

    Count until a condition is met

    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?
    Attached Files Attached Files
    Last edited by SueWithQuestion; 02-23-2011 at 08:26 AM.

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