+ Reply to Thread
Results 1 to 8 of 8

A SUM with a nested COUNTIFS

  1. #1
    Registered User
    Join Date
    04-09-2013
    Location
    US
    MS-Off Ver
    Office 2010
    Posts
    27

    A SUM with a nested COUNTIFS

    I have tried several variations, that I have found online, and none have worked for me.

    I am attempting to use countifs to find only the values for the given year, and then in the column "Rosc_in_Field"...

    SUM the rows that contain these values
    [*]Yes, At Arrival at the ED[*]Yes, Sustained for 20 Consecutive Minutes[*]Yes, Prior to ED Arrival Only



    I would love it if someone could provide some insight for me on this.
    Attached Files Attached Files
    Last edited by traveler911; 05-17-2022 at 11:37 AM. Reason: solved

  2. #2
    Forum Expert
    Join Date
    02-10-2019
    Location
    Georgia, USA
    MS-Off Ver
    Office 365
    Posts
    2,827

    Re: A SUM with a nested COUNTIFS

    SUM the rows that contain these values
    What are you summing?

    [*]Yes, At Arrival at the ED[*]Yes, Sustained for 20 Consecutive Minutes[*]Yes, Prior to ED Arrival Only
    What columns do these refer to?

  3. #3
    Registered User
    Join Date
    04-09-2013
    Location
    US
    MS-Off Ver
    Office 2010
    Posts
    27

    Re: A SUM with a nested COUNTIFS

    I see the confusion, as the first message was chopped off

    display the given "year", and SUM to total times the "Yes, At Arrival at the ED","Yes, Sustained for 20 Consecutive Minutes","Yes, Prior to ED Arrival Only" appear for the given year.

    I would then repeat the formula for the next year.

    I had tried a = SUM (COuntif(year,"2020",ROSC_in_Field("Yes, At Arrival at the ED","Yes, Sustained for 20 Consecutive Minutes","Yes, Prior to ED Arrival Only")))

    Sum product

    every sample I found online wouldn't work for me in this setup.

    YEAR = named for Column C
    ROSC_in_Field = named for Column AZ

    Sorry for the earlier confusion

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: A SUM with a nested COUNTIFS

    Try
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    04-09-2013
    Location
    US
    MS-Off Ver
    Office 2010
    Posts
    27

    Re: A SUM with a nested COUNTIFS

    =SUM(COUNTIFS(Year,"2020",ROSC_in_Field,{"Yes, At Arrival at the ED","Yes, Sustained for 20 Consecutive Minutes","Yes, Prior to ED Arrival Only"}))

    comes back a #REF!

    I verified Year, and ROSC_in_Field

    Not sure what is going on.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: A SUM with a nested COUNTIFS

    It works for me in your sample file, is that where you tried it?

  7. #7
    Registered User
    Join Date
    04-09-2013
    Location
    US
    MS-Off Ver
    Office 2010
    Posts
    27

    Re: A SUM with a nested COUNTIFS

    I had tried it in the actual file.

    It didn't work. I then tried the sample file, it worked there. Puzzling.

    I copied it to the same worksheet as the data, not the master worksheet. It worked there. Weird

    I then copied it to the same cell I had first tried. Now it works.

    Can you please explain the difference between the { and the ( brackets used. As I was extremely close, just needed the different bracket. Why did it make all the difference?

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,077

    Re: A SUM with a nested COUNTIFS

    Glad it's working & thanks for the feedback.

    The curly braces {} signifies that you using an array of values.

+ 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. Issues with Sum, IF, and CountIFS nested fuctions
    By Truthnineseven in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-17-2020, 12:49 AM
  2. [SOLVED] IF with nested SUM COUNTIFs with dates
    By mg989 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-17-2017, 09:08 AM
  3. Help with formula OFFSET nested in COUNTIFS
    By mkagamemnon in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-26-2015, 05:05 PM
  4. Nested Countifs
    By scain in forum Excel General
    Replies: 1
    Last Post: 06-26-2012, 09:15 AM
  5. COUNTIFS with nested difference calculation question
    By Task15 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-22-2012, 07:59 PM
  6. OR() nested in COUNTIFS()
    By Hillargi in forum Excel General
    Replies: 14
    Last Post: 12-02-2011, 12:24 PM
  7. Problem.... Nested countifs?
    By Nick in forum Excel General
    Replies: 7
    Last Post: 04-03-2005, 05:06 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