+ Reply to Thread
Results 1 to 5 of 5

COUNTIF or COUNTIFS syntax issue

  1. #1
    Registered User
    Join Date
    03-16-2012
    Location
    Ukiah, California
    MS-Off Ver
    Excel 2010
    Posts
    3

    COUNTIF or COUNTIFS syntax issue

    I am trying to get a total for the number of times a specific number is entered in two separate columns.

    This is the formula I used to get the total for the number of times a specific number is entered in a single column, which worked just fine:

    =COUNTIFS(C5:C61,"5")


    This is a sample of the formula I've been trying to use but can't seem to find just the right syntax to make it work:

    =COUNTIFS(C$5:C$61,G$5:G$19,"6")

    I tried using a single quote before and after the 6, that didn't work. I deleted the quotes altogether but that didn't help.
    I tried =COUNTIFS(C$5:C$61,"6",G5:G19,"6").
    I tried =COUNTIFS(C$5:C$61,"6",G$5:G$19,"6").

    Can anyone please help?

    Thank you.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: COUNTIF or COUNTIFS syntax issue

    Hi Howe,

    Welcome to the forum.

    Number should not be surrounded by quotes if that is a NUMBER not TEXT.

    Try:-

    =COUNTIFS(C$5:C$61,6,G$5:G$19,6).

    Regards,
    DILIPandey

    <click on below 'star' if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Forum Expert
    Join Date
    12-03-2009
    Location
    Florence, Italy
    MS-Off Ver
    Excel 2019
    Posts
    1,796

    Re: COUNTIF or COUNTIFS syntax issue

    Hi everyone,

    other possibilities


    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    Regards
    -----------------------------------------------------

    At Excelforum, you can say "Thank you!" by clicking the star icon ("Add Reputation") below the post.

    Please, mark your thread [SOLVED] if you received your answer.

  4. #4
    Registered User
    Join Date
    03-16-2012
    Location
    Ukiah, California
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: COUNTIF or COUNTIFS syntax issue

    This problem has been SOLVED. Thanks!

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: COUNTIF or COUNTIFS syntax issue

    You are welcome k Howe

    cheers

    Regards,
    DILIPandey

    <click on below 'star' if this helps>

+ 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