+ Reply to Thread
Results 1 to 3 of 3

Sum if

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Sum if

    Attached is a file where I have sales listed out by month for 2013 and 2014. In N2, I would like a formula telling it to sum only the months where there is a total for those months in 2014. So, it would currently add Oct thru Aug, leaving off Sept 2013 because there is no total entered for Sept 2014. Plus, I would like M4 for be blank because there is no total entered in Sept 2014. Thank for your help.
    Attached Files Attached Files

  2. #2
    Forum Expert Ron Coderre's Avatar
    Join Date
    03-22-2005
    Location
    Boston, Massachusetts
    MS-Off Ver
    2013, 2016, O365
    Posts
    6,996

    Re: Sum if

    Using your posted workbook

    This formula sums 2013 cells where the corresponding 2014 cell is greater than 0
    N2: =SUMIF(B3:M3,">0",B2:M2)
    And this formula, copied across, calculates the percent difference
    B4: =IF(COUNTIF(B2:B3,">0")=2,(B3-B2)/B2,"")
    Is that something you can work with?
    Ron
    Former Microsoft MVP - Excel (2006 - 2015)
    Click here to see the Forum Rules

  3. #3
    Forum Contributor
    Join Date
    07-18-2014
    Location
    Missouri, USA
    MS-Off Ver
    2010
    Posts
    175

    Re: Sum if

    Perfect, thanks!

+ 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