+ Reply to Thread
Results 1 to 12 of 12

Help please! Countif for specific cells in a row

  1. #1
    Registered User
    Join Date
    07-05-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    6

    Help please! Countif for specific cells in a row

    7 cells in a row, but not adjacent, how do I do a CountIf function for the 7 specific cells, keeps returning VALUE#

  2. #2
    Registered User
    Join Date
    07-05-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Help please! Countif for specific cells in a row

    =COUNTIF((C3,E3,G3,I3,K3,M3,O3,Q3,S3,U3,W3),0)

    That's what I've tried

  3. #3
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Help please! Countif for specific cells in a row

    Could you share the formula that you are currently using and giving you the error?
    Sincerely
    S?ren Larsen

    "Give a man a fish, and you'll feed him for a day. Give a man a fishing rod, and he'll steal your yacht!"

  4. #4
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Help please! Countif for specific cells in a row

    What do you want to count? And what's the criteria?

  5. #5
    Registered User
    Join Date
    07-05-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Help please! Countif for specific cells in a row

    Second post is the formula I am trying to use. Just trying to count the number of times 0 is found in 11 values in a row (not adjacent).


  6. #6
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Help please! Countif for specific cells in a row

    Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    It doesn't count empty cells as zeros. Can you use this? Otherwise you might need to provide a sample workbook...

  7. #7
    Registered User
    Join Date
    07-05-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Help please! Countif for specific cells in a row

    Thanks, but no. The cells have data inbetween them.


    1 45 0 0 0 90 1 36 1 90 6 90 13 90 9 0 0 90 9 0 0

    That's an example row. I want to check for 0's in every other cell. I can't work out how it's done though

  8. #8
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Help please! Countif for specific cells in a row

    Which number is the first to be checked? 1 or 45?

  9. #9
    Registered User
    Join Date
    07-05-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Help please! Countif for specific cells in a row

    Starts with 45, and then I want to check the 10 of the next 20 cells in the row. How, I don't know. I've no idea why Excel won't allow it, seems a very simple function to check 11 specific cells for a data value, I am sure it's very easy, I just don't know the formula!

  10. #10
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Help please! Countif for specific cells in a row

    Try this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    If you want to use "simple" formulas, then you could use 11 =IF() formulas that return 1 or 0, and then add them together.

  11. #11
    Registered User
    Join Date
    07-05-2012
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    6

    Re: Help please! Countif for specific cells in a row

    Genius. God knows how that works, but brilliant.

    Thanks ever so much.

  12. #12
    Valued Forum Contributor
    Join Date
    03-16-2012
    Location
    Aarhus, Denmark
    MS-Off Ver
    Excel 2007
    Posts
    992

    Re: Help please! Countif for specific cells in a row

    Try use the formula evaluate function; you find it under "Formulas" (ribbon). It'll show you what happens. Remember to mark your thread as solved...

+ Reply to Thread

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