+ Reply to Thread
Results 1 to 4 of 4

Using Multiple Criteria With Countif or Countifs Formula

  1. #1
    Registered User
    Join Date
    11-29-2017
    Location
    Alberta
    MS-Off Ver
    Office 365
    Posts
    32

    Using Multiple Criteria With Countif or Countifs Formula

    Good day,

    I've never used Countif or Countifs in formulas before. I have a spreadsheet with a date column (m/d/yyyy) and another column with a city name.

    I want to count the number of times a location occurs between a range of two dates like 5/1/2015 and 4/30/2016.

    I figured out how to count the number of cells within that date range: =COUNTIFS(G2:G249, ">=5/1/2015",G2:G249, "<=4/30/2016"). However, I'm not sure how to put the two together. Maybe it should be a different formula all together.

    Any help would be appreciated.
    Thanks.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Using Multiple Criteria With Countif or Countifs Formula

    No, this looks right, but if you need to also count the city name.

    =COUNTIFS(G2:G249,">=5/1/2015",G2:G249,"<=4/30/2016",F2:F249,"Dallas")

    Not sure what column you are using for the city name, so in this example it's F
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    11-29-2017
    Location
    Alberta
    MS-Off Ver
    Office 365
    Posts
    32

    Re: Using Multiple Criteria With Countif or Countifs Formula

    Hi Jeff,

    Thanks that worked great.

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Using Multiple Criteria With Countif or Countifs Formula

    You are very welcome and thanks for the feedback!

+ 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. Help Required on VBA COUNTIFS Formula using multiple Criteria
    By Ayubalia1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-30-2018, 05:22 PM
  2. [SOLVED] Excel Formula with SUM+COUNTIFS and NOT EQUAL TO multiple criteria's
    By mchilapur in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-10-2018, 06:28 AM
  3. Countifs formula with multiple criteria against a single range
    By GymnasticHippo in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-07-2017, 09:54 PM
  4. [SOLVED] COUNTIFS formula for multiple criteria referencing a formatted table
    By jholiday78 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 08-31-2015, 05:15 PM
  5. [SOLVED] Struggling to build count/countif/countifs formula with various comparative criteria!
    By dropanddrive03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2014, 03:04 AM
  6. Formula countifs with multiple criteria
    By jpecor2 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-09-2013, 08:00 PM
  7. COUNTIFS formula multiple criteria
    By rjc1971 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-18-2013, 09:56 PM

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