+ Reply to Thread
Results 1 to 6 of 6

COUNTIFS with more than and less than parameters

  1. #1
    Registered User
    Join Date
    01-24-2019
    Location
    London, England
    MS-Off Ver
    365
    Posts
    18

    COUNTIFS with more than and less than parameters

    Hello everyone

    I'm trying to use the COUNTIFS function to count items where the second parameter looks for a number between two values. No matter what syntax I use, it doesn't seem to work. Could someone please help?

    My latest attempt is this:

    =COUNTIFS(A2:A200,"Paid",D2:D200,">0","<25"

    I'm attempting to get a count for those cells between A2 and A200 that are shown as "Paid" along with any cells between D2 and D200 where the amount is more than £0 and less than £25. The spreadsheet that the COUNTIFS function is looking at has the D2:D200 section formatted as £ (so I'm looking at e.g £5, £10 etc). Will I need to put the £ sign in the COUNTIFS function too?

    Many thanks for your help.
    Jon

  2. #2
    Forum Expert dosydos's Avatar
    Join Date
    12-09-2015
    Location
    Massachusetts
    MS-Off Ver
    365(PC) V:2308
    Posts
    1,472

    Re: COUNTIFS with more than and less than parameters

    =COUNTIFS(A2:A200,"Paid",D2:D200,">0",D2:D200,"<25")

    you just forgot to add the 3rd criteria range is all.
    <----- If you are happy with your solution please click on the "* Add Reputation" as a way to say thank you.

  3. #3
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: COUNTIFS with more than and less than parameters

    You need to repeat your criteria range for each criteria.

    =COUNTIFS(A2:A200,"Paid",D2:D200,">0",D2:D200,"<25")
    Dave

  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,819

    Re: COUNTIFS with more than and less than parameters

    Try this:

    =COUNTIFS(A2:A200,"Paid",D2:D200,">0", d2:D200,"<25")
    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
    01-24-2019
    Location
    London, England
    MS-Off Ver
    365
    Posts
    18

    Re: COUNTIFS with more than and less than parameters

    Thanks to all of you! I knew it would be a simple solution, but I just couldn't see the wood for the trees!

  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,819

    Re: COUNTIFS with more than and less than parameters

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this 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)

Similar Threads

  1. [SOLVED] Countifs+Countifs only when certain criteria met
    By coach.32 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-05-2019, 08:34 AM
  2. Replies: 6
    Last Post: 03-19-2019, 09:14 PM
  3. [SOLVED] Sumproduct to replace countifs as countifs don't work on external source reference
    By KrishnaSagar in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-02-2017, 02:33 AM
  4. How can I run CountIfs + CountIfs without double counting?
    By hiitsjessie in forum Excel General
    Replies: 1
    Last Post: 02-06-2017, 04:49 PM
  5. COUNTIFS OR COUNTIFS needs to work
    By joshbellfi in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-23-2013, 10:55 AM
  6. COUNTIFS OR...multiple countifs without duplication in the numbers
    By HooligaD in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-21-2012, 09:53 AM
  7. Replies: 0
    Last Post: 12-16-2011, 09:01 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