+ Reply to Thread
Results 1 to 7 of 7

COUNTIFS; Excluding Columns, And Counting Between Specific Date Range...

  1. #1
    Registered User
    Join Date
    10-19-2017
    Location
    Raleigh, NC
    MS-Off Ver
    2013
    Posts
    22

    COUNTIFS; Excluding Columns, And Counting Between Specific Date Range...

    Hey everyone. I have an excel question that is a little beyond my expertise, but I'm hoping to find some help and learn something new as well.

    I have a spreadsheet (attached) in which I am trying to total the appearance of certain values, the catch being, I don't want to include all columns within my specified range. My spreadsheet does have a header, I was able to use the header to my advantage (thanks to some wonderful help from this forum), and created a formula that was able to do this.

    =COUNTIFS(F17:AYF17,"CAN",F$14:AYF$14,"<>Week")

    However, I have run into another obstacle; rather than keeping a running total, I now need to keep a total between certain date range. I added two cells that specify my date range, but I'm not sure how to augment the current formula to only count between this range (if I'm able to do so).

    Any help is greatly appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: COUNTIFS; Excluding Columns, And Counting Between Specific Date Range...

    I'm not sure what the expected result of the formula in E17 (assuming that this is the one you are asking about) is but the syntax of the formula is incorrect.

    Strictly correcting syntax...

    This:
    =COUNTIFS(G17:BAL17,"*MOT*",G$15:BAL$15,">E3",G$15:BAL$15,"<D3")+COUNTIFS(G17:BAL17,">0",G$15:BAL$15,"<>Week")

    Should look like this:
    =COUNTIFS(G17:BAL17,"*MOT*",G$15:BAL$15,">"&E3,G$15:BAL$15,"<"&D3)+COUNTIFS(G17:BAL17,">0",G$15:BAL$15,"<>Week")

  3. #3
    Registered User
    Join Date
    10-19-2017
    Location
    Raleigh, NC
    MS-Off Ver
    2013
    Posts
    22

    Re: COUNTIFS; Excluding Columns, And Counting Between Specific Date Range...

    Thank you, that helps tremendously...my count is off though; for some reason the second part of that formula isn't working correctly...I want to add the total number of times "*MOT*" appears with any value above ">0"...it's not recognizing any figure above zero.

    Currently: this provides me with a count of 18, should be 19
    =COUNTIFS(G17:BAL17,"*MOT*",G$15:BAL$15,">"&$E$3,G$15:BAL$15,"<"&$D$3)+COUNTIFS(G17:BAL17,">0",G$15:BAL$15,">"&$E$3,G$15:BAL$15,"<"&$D$3)

  4. #4
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: COUNTIFS; Excluding Columns, And Counting Between Specific Date Range...

    If you want to include your start and end dates, you need to adjust the inequalities in your formulas to account for that.

    ">" should be ">="

    and

    "<" should be "<="

    That being said, I believe that this will suffice:

    =SUM(COUNTIFS(G17:BAL17,{"MOT*",">0"},G$15:BAL$15,">="&$E$3,G$15:BAL$15,"<="&$D$3))
    Last edited by 63falcondude; 10-31-2017 at 01:41 PM. Reason: Included shorter formula

  5. #5
    Registered User
    Join Date
    10-19-2017
    Location
    Raleigh, NC
    MS-Off Ver
    2013
    Posts
    22

    Re: COUNTIFS; Excluding Columns, And Counting Between Specific Date Range...

    Again, thanks a bunch...you rock!

  6. #6
    Forum Expert leelnich's Avatar
    Join Date
    03-20-2017
    Location
    Delaware, USA
    MS-Off Ver
    Office 2016
    Posts
    2,807

    Re: COUNTIFS; Excluding Columns, And Counting Between Specific Date Range...

    withdrawn- already answered
    Last edited by leelnich; 10-31-2017 at 02:14 PM.
    Clicking the Add Reputation star below helpful posts is a great way to show your appreciation.
    Please mark your threads as SOLVED upon conclusion (Thread Tools above Post # 1). - Lee

  7. #7
    Forum Expert 63falcondude's Avatar
    Join Date
    08-22-2016
    Location
    USA
    MS-Off Ver
    365
    Posts
    6,266

    Re: COUNTIFS; Excluding Columns, And Counting Between Specific Date Range...

    You're welcome.

    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. COUNTIFS; Excluding Columns, And Counting Between Specific Date Range...
    By Haslami in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-31-2017, 12:44 PM
  2. [SOLVED] COUNTIFS - Counting in order in one column, Counting only specific cells In another
    By kslattery in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-25-2017, 01:17 PM
  3. [SOLVED] Counting cells with specific text excluding if date in specific cells
    By FraserMc97 in forum Excel General
    Replies: 2
    Last Post: 04-07-2017, 06:19 AM
  4. Counting specific events within a date range
    By Rickard82 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-25-2016, 11:50 AM
  5. [SOLVED] Countifs by counting duplicates as one in given date range
    By Sekars in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-12-2016, 06:53 AM
  6. Counting Occurences W/in Specific Date Range
    By screamnyak in forum Excel General
    Replies: 2
    Last Post: 09-14-2009, 03:29 PM
  7. Counting in specific events in a date range
    By chamaile0n in forum Excel General
    Replies: 5
    Last Post: 08-18-2008, 04:00 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