+ Reply to Thread
Results 1 to 11 of 11

COUNTIF - 3 Criterian not pulling through the correct result

  1. #1
    Registered User
    Join Date
    02-05-2019
    Location
    Yorkshire, England
    MS-Off Ver
    2013
    Posts
    7

    COUNTIF - 3 Criterian not pulling through the correct result

    Hi,

    I am trying to count the following:

    Column Q = January
    Column R = 2019
    Column F = Contains ANY data

    The formula I have at the minute is below.

    =COUNTIFS(Data!Q2:Q1004,"January",Data!R2:R1004,"2019",Data!F2:F1004,"*")

    The correct result should be 18, however the above is pulling 0 and I can't see where I've gone wrong.

    Thank you!!!

    Caz
    Last edited by AliGW; 02-28-2019 at 05:08 AM. Reason: Solved

  2. #2
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: COUNTIF - 3 Criterian not pulling through the correct result

    Hi,
    Check if January is TEXT or date formated as "mmmm"?

    Try:
    =COUNTIFS(Data!Q2:Q1004,"January",Data!R2:R1004,2019,Data!F2:F1004,<>"")
    Quang PT

  3. #3
    Registered User
    Join Date
    02-05-2019
    Location
    Yorkshire, England
    MS-Off Ver
    2013
    Posts
    7

    Re: COUNTIF - 3 Criterian not pulling through the correct result

    Hi,
    I can't get this to work. The cell is formatted as Text, and when I add the <>"" and remove "" from 2019, I get the error which says there is an issue with the formula. Even if I change the cell showing January to date, "mmmm" it doesn't work.
    Thanks
    Last edited by AliGW; 02-28-2019 at 04:33 AM.

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,785

    Re: COUNTIF - 3 Criterian not pulling through the correct result

    If it's text, it needs the quote marks round it ("2019").

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter. It's OK to quote if you are responding to a post out of sequence, but limit quoted content to a few relevant lines that makes clear to whom and what you are responding. Thanks!

    For normal conversational replies, try using the QUICK REPLY box below.
    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.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Registered User
    Join Date
    02-05-2019
    Location
    Yorkshire, England
    MS-Off Ver
    2013
    Posts
    7

    Re: COUNTIF - 3 Criterian not pulling through the correct result

    I also tried "2019"; that didn't work either.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,785

    Re: COUNTIF - 3 Criterian not pulling through the correct result

    Will you please attach a sample Excel workbook?

    Unfortunately the attachment icon doesn't work at the moment, so to attach an Excel file you have to do the following: just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

  7. #7
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: COUNTIF - 3 Criterian not pulling through the correct result

    short Answer
    =COUNTIFS(Data!Q2:Q1004,"January",Data!R2:R1004,2019,Data!F2:F1004,"<>""")

    but if it fails, You would be easier attaching a small sample

  8. #8
    Registered User
    Join Date
    02-05-2019
    Location
    Yorkshire, England
    MS-Off Ver
    2013
    Posts
    7

    Re: COUNTIF - 3 Criterian not pulling through the correct result

    Please see attached. The second formula works to count the number of January's, but not the number of none blanks in column F as well.
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: COUNTIF - 3 Criterian not pulling through the correct result

    =COUNTIFS(Data!Q2:Q1004,"January",Data!R2:R1004,"2019",Data!F2:F1004,">0")

    column F is formatted as numbers in each instance so >0 should work
    Last edited by davsth; 02-28-2019 at 05:07 AM.

  10. #10
    Registered User
    Join Date
    02-05-2019
    Location
    Yorkshire, England
    MS-Off Ver
    2013
    Posts
    7

    Re: COUNTIF - 3 Criterian not pulling through the correct result

    That worked perfectly! Something so simple!
    Thank you!

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,785

    Re: COUNTIF - 3 Criterian not pulling through the correct result

    Please note:

    To mark a thread as solved, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

    I've done it for you this time.

+ 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. [SOLVED] Formula for Predictions League - 3 points correct score or 1 point correct result
    By daveyboy1681 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 08-17-2016, 04:09 PM
  2. Replies: 7
    Last Post: 11-27-2015, 11:12 AM
  3. [SOLVED] Pulling the second correct result from Vlookup.
    By timmtamm in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-29-2015, 04:30 PM
  4. Replies: 15
    Last Post: 11-25-2014, 08:14 AM
  5. Replies: 1
    Last Post: 09-17-2012, 09:35 AM
  6. CountIf with "Between" criterian
    By rmccafferty in forum Excel General
    Replies: 2
    Last Post: 06-11-2012, 02:42 PM
  7. COUNTIF - Two Criterian
    By ic31420 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-01-2011, 11:45 AM

Tags for this Thread

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