+ Reply to Thread
Results 1 to 4 of 4

Obtaining the sum of certain values in a column based on conditions from 2 other columns

  1. #1
    Registered User
    Join Date
    04-17-2006
    Posts
    40

    Obtaining the sum of certain values in a column based on conditions from 2 other columns

    Hi team,

    The attached spreadsheet shows data for YTD outages. Column A is the Time To Resolve for each outage (in hours). Column B is the month in which the outage occured (1 is Jan, 2 is Feb, etc) and column C indicates whether the outage was GCR-related or not (YES/NO).

    NOTE: TTR equals downtime. It's the amount of time a certain application was down.

    I have been asked to display what percentage of total downtime in each month were GCR-related. I'd like to be able to sum up the TTR's in January that also had a "YES" in the GCR-related column, then do the same for Feb, Mar and Apr.

    I know how to do it manually, but can't I use some variation of SUMIFS to get the results automatically? I'm still learning the intricacies of these commands and I haven't been able to figure it out on my own...

    Please see attached.

    Thanks for your help!

    p145
    Attached Files Attached Files
    Last edited by pentatonic145; 05-02-2012 at 11:30 AM. Reason: Clarification

  2. #2
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Obtaining the sum of certain values in a column based on conditions from 2 other colum

    Hello there,

    The formula for G4 (Jan Total TTR) would be

    =SUMIF(C:C,"=1",B:B)

    And the formula for I4 (Jan Total TTR that is GCR Related) would be

    =SUM((C4:C103=1)*(D4:D103="YES")*B4:B103)



    The formula for I4 is an array. In order for it to work you will need to press Ctrl+Shift+Enter to accept the formula instead of the normal Enter key.

    Thanks!

    RVASQUEZ

  3. #3
    Registered User
    Join Date
    04-17-2006
    Posts
    40

    Re: Obtaining the sum of certain values in a column based on conditions from 2 other colum

    That's it! Thanks!

  4. #4
    Valued Forum Contributor
    Join Date
    03-23-2012
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    1,093

    Re: Obtaining the sum of certain values in a column based on conditions from 2 other colum

    No prob, thanks for the star tap!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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