+ Reply to Thread
Results 1 to 4 of 4

COUNTIF question

Hybrid View

  1. #1
    Registered User
    Join Date
    09-12-2007
    Posts
    29

    COUNTIF question

    in this, what seems simple, formula I need to find a different way to write it as the seperator ":" acts like all the column inbetween rather than just the 2 columns.

    here is code

    =COUNTIF((A:A):(C:C):(E:E),"1")
    if i have a "1" in cells A1 and B1 the count returns "2" as opposed to the expected "1"

    is there another way to write this or a different seperator?

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    I think you need to add three COUNTIFS.

  3. #3
    Registered User
    Join Date
    09-12-2007
    Posts
    29
    yeah thats what i guessed so came up with

    =COUNTIF(($A:$A),Q1)+COUNTIF(($C:$C),Q1)+COUNTIF(($E:$E),Q1)

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    You don't need the parens around the ranges:

    =COUNTIF($A:$A, Q1) + COUNTIF($C:$C, Q1) + COUNTIF($E:$E, Q1)

+ 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