+ Reply to Thread
Results 1 to 4 of 4

COUNTIF Troubles

  1. #1
    Registered User
    Join Date
    08-25-2005
    Posts
    39

    COUNTIF Troubles

    Hello,
    I am trying to make a count if function. I did a survey and I have a bunch of 1s 2s 3s 4s and 5s in a certain boxes and I am trying to count them. The problem is the boxes are not all in a row so I have to select each individually.
    When I try to do the function I get a VALUE error.
    This is what I have so far.
    =COUNTIF((B5,B18,B31,E5,E18,E31,H5,H18,H31),1)
    What can I do to fix this?
    Thanks for the help.

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885
    Can you not use:

    =COUNTIF(B5:H31,1)

    ?

    If there are no other instances of the number 1 in that range of cells, you should be fine.

  3. #3
    Registered User
    Join Date
    08-25-2005
    Posts
    39
    That is the problem though.
    They are all different questions so I can only use the specific cells. Is that possible?

  4. #4
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211
    Quote Originally Posted by scottnoddin77
    Hello,
    I am trying to make a count if function. I did a survey and I have a bunch of 1s 2s 3s 4s and 5s in a certain boxes and I am trying to count them. The problem is the boxes are not all in a row so I have to select each individually.
    When I try to do the function I get a VALUE error.
    This is what I have so far.
    =COUNTIF((B5,B18,B31,E5,E18,E31,H5,H18,H31),1)
    What can I do to fix this?
    Thanks for the help.
    Try this:

    =SUMPRODUCT((MOD(ROW(B5:B31),13)=5)*(MOD(COLUMN(B5:H5),3)=2)*(B5:H31=1))

+ 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