+ Reply to Thread
Results 1 to 9 of 9

3 deep countifs.

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    US
    MS-Off Ver
    Office 2010, amd 365
    Posts
    30

    3 deep countifs.

    Okay I'm stumped. I have been using 2 deep countifs, and a new project requires 3 deep countifs. No problem right... wrong. I have tried several different methods, and each one will work fine 2 deep, but at 3 deep its stops working. I have tried using Named addresses, and specific address.

    =COUNTIFS(Listing!B8:B34,"Jan",Listing!E8:E34,"LODD",Listing!H8:H34,"Fire")
    =COUNTIFS(letter_Month,'Stat Sheet'!A10,Injury_or_LODD,"LODD",Service,"Fire")

    I am including the file. I am hoping that some of you are not starting the Christmas travel season as of yet.

    Thanks
    Kent
    Attached Files Attached Files

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,728

    Re: 3 deep countifs.

    It would help if you tell us where the formulas are (sheet and cell).

    Pete

  3. #3
    Registered User
    Join Date
    04-09-2013
    Location
    US
    MS-Off Ver
    Office 2010, amd 365
    Posts
    30

    Re: 3 deep countifs.

    They are on the Stat Sheet.

    The Formulas listed were for Column B under the Month table for Fire.

    Thanks for the quick reply


    kent

  4. #4
    Registered User
    Join Date
    12-19-2016
    Location
    India
    MS-Off Ver
    Office 2007
    Posts
    7

    Re: 3 deep countifs.

    Hi,

    Use Sumproduct to find the desire result also use number of month instead of Name

    =SUMPRODUCT(--(E2:E180="LODD"),--(H2:H180="Fire"),--(MONTH(A2:A180)=5))
    Last edited by AliGW; 12-30-2016 at 03:49 AM.

  5. #5
    Registered User
    Join Date
    04-09-2013
    Location
    US
    MS-Off Ver
    Office 2010, amd 365
    Posts
    30

    Re: 3 deep countifs.

    I tired to tweak it to this, as the values are on the Listing tab. Obviously it doesn't like it.

    I also tried to use the Names for the columns also without success.

    =SUMPRODUCT(--(Listing!E2:E180="LODD"),--(Listing!H2:H180="Fire"),--(Listing!(A2:A180)=5))

    Kent

  6. #6
    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: 3 deep countifs.

    Try this:

    In 'Listing' column B change the formula to
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    You were relying on Custom date formatting to be read as text. It was still a number.

    Then this in 'Stat Sheet' B9:E20
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    It returns this:


    Row\Col
    A
    B
    C
    D
    E
    8
    Month
    FIRE
    LEO
    EMS
    FLIGHT
    9
    JAN
    0
    8
    17
    5
    10
    FEB
    3
    10
    0
    0
    11
    MAR
    4
    16
    0
    3
    12
    APR
    1
    2
    0
    0
    13
    MAY
    2
    7
    0
    0
    14
    JUN
    1
    10
    0
    0
    15
    JUL
    0
    19
    0
    0
    16
    AUG
    2
    10
    0
    0
    17
    SEP
    7
    16
    0
    0
    18
    OCT
    5
    3
    0
    0
    19
    NOV
    1
    0
    0
    0
    20
    DEC
    3
    1
    1
    0
    Dave

  7. #7
    Registered User
    Join Date
    04-09-2013
    Location
    US
    MS-Off Ver
    Office 2010, amd 365
    Posts
    30

    Re: 3 deep countifs.

    OH
    That makes so much sense. You have no idea how long I have been messing with this.

    Thanks for setting me straight.


    Kent

  8. #8
    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: 3 deep countifs.

    Good deal. You're welcome and thanks for the feedback.

  9. #9
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: 3 deep countifs.

    I extracted the months with this formula on the Listing worksheet column B
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    I then selected all your data and added from the Data tab the FILTERS
    Using your criteria and your data. There are no matching records for January/Lodd/Fire for the range specified. Your formula is correct as stated: =COUNTIFS(Listing!B8:B34,"Jan",Listing!E8:E34,"LODD",Listing!H8:H34,"Fire")
    Expanded to include all your data. Enter this in B9 and fill across
    Formula: copy to clipboard
    Please Login or Register  to view this content.



    A
    B
    C
    D
    E
    8
    Month
    FIRE
    LEO
    EMS
    FLIGHT
    9
    JAN
    0
    8
    17
    5
    10
    FEB
    3
    10
    0
    0
    11
    MAR
    4
    16
    0
    3
    12
    APR
    1
    2
    0
    0
    13
    MAY
    2
    7
    0
    0
    14
    JUN
    1
    10
    0
    0
    15
    JUL
    0
    19
    0
    0
    16
    AUG
    2
    10
    0
    0
    17
    SEP
    7
    16
    0
    0
    18
    OCT
    5
    3
    0
    0
    19
    NOV
    1
    0
    0
    0
    20
    DEC
    3
    1
    1
    0
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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] Nested IF/THEN Formula - 5 Deep I believe
    By jemmers in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-06-2015, 01:46 PM
  2. Deep thoughts
    By martindwilson in forum The Water Cooler
    Replies: 22
    Last Post: 07-08-2013, 11:50 PM
  3. i need a deep explanations on excel
    By AJAY007007 in forum Excel General
    Replies: 2
    Last Post: 03-01-2013, 05:47 PM
  4. Replies: 0
    Last Post: 12-16-2011, 09:01 AM
  5. Way too deep for me
    By stews_world in forum Excel General
    Replies: 4
    Last Post: 03-27-2007, 04:28 AM
  6. [SOLVED] too deep formula line
    By Light in forum Excel General
    Replies: 5
    Last Post: 03-17-2006, 03:20 PM
  7. DEEP IN MUD
    By Ronald Cayne in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-22-2005, 06:06 PM

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