+ Reply to Thread
Results 1 to 9 of 9

Need help with counting formula

Hybrid View

  1. #1
    Registered User
    Join Date
    05-24-2019
    Location
    USA
    MS-Off Ver
    MS Office Professional Plus
    Posts
    34

    Need help with counting formula

    Hi all, here's my question:

    I have a bunch of cells that say
    PASS
    PASS
    PASS
    FAIL
    PASS
    PASS

    etc etc.

    Here's what I need. If there's more than two "FAIL"s in all of the cells, I need my final cell to say "NOT READY." If there are less than two FAILS, I want my final cell to say "READY"

    I think it's pretty simple but my brain is completely fried. What's the formula for this? Thank you!
    Last edited by AliGW; 07-11-2019 at 05:16 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,518

    Re: Need help with counting formula

    Administrative Note:

    We don't expect you to use words such as urgent or immediate in your thread titles. Please remember that those who help here do so voluntarily and of their own goodwill. They live in many different time zones and many will be out at work right now if they are not asleep on the other side of the globe. This is not a paid 'service': members will help when they are ready and able to do so, and not 'on demand'. Please do not try to put pressure of time on anyone here: if you get the help you need today, that's fine, but you really should not count on it.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,518

    Re: Need help with counting formula

    Try this:

    =IF(COUNTIF(Range,"Fail")>2,"Not ","")&"Ready"

  4. #4
    Registered User
    Join Date
    05-24-2019
    Location
    USA
    MS-Off Ver
    MS Office Professional Plus
    Posts
    34

    Re: Need help with counting formula

    Thanks, its a great start. The range is several different cells. For example, =IF(COUNTIF(H21:H40,P21:P40,L43:L62),"FAIL")>2,"Not Ready","Ready") is not working.

    Also, when all the other cells are blank, I want it to be also blank, not "Ready".

    How do I fix this?

    Sorry about the first title.
    Last edited by bigscientist; 07-11-2019 at 05:52 PM.

  5. #5
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Need help with counting formula

    Please post a sample file which will make creating the solution much easier.

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    HTH
    Regards, Jeff

  6. #6
    Registered User
    Join Date
    05-24-2019
    Location
    USA
    MS-Off Ver
    MS Office Professional Plus
    Posts
    34

    Re: Need help with counting formula

    Attached is an example what I'm trying to achieve.

    I want Cell D24 to say FAIL if 3 or more results say fail.
    I want it to say Not Ready if the cells are blank.
    And I want it to say Pass if 2 or less say fail.

    Hope that makes sense.
    Attached Files Attached Files

  7. #7
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Need help with counting formula

    How about in D24 copied over to N and X...

    =IF(COUNTA(C2:C21,F2:F21,I2:I21)=0,"Not Ready",LOOKUP(COUNTIF(C2:I21,"FAIL"),{0,3},{"Pass","Fail"}))
    Last edited by jeffreybrown; 07-11-2019 at 06:21 PM.

  8. #8
    Registered User
    Join Date
    05-24-2019
    Location
    USA
    MS-Off Ver
    MS Office Professional Plus
    Posts
    34

    Re: Need help with counting formula

    Works thanks!!!!!

  9. #9
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,327

    Re: Need help with counting formula

    You are very welcome and thanks for the feedback.

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 08-30-2018, 11:13 PM
  2. Counting formula returning incorrect value apposed to manually counting
    By jackblack2 in forum Excel Formulas & Functions
    Replies: 17
    Last Post: 03-04-2018, 02:15 PM
  3. [SOLVED] Help with counting formula
    By gandyling in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-02-2013, 05:01 AM
  4. Counting formula
    By Lithiar in forum Excel General
    Replies: 5
    Last Post: 11-21-2012, 11:59 AM
  5. [SOLVED] Need formula for counting
    By sstravs in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-25-2012, 11:54 AM
  6. Replies: 6
    Last Post: 02-04-2012, 06:57 PM
  7. help with a formula for counting
    By wwoody in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-04-2006, 04:00 AM

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