SUMIF across a range

Colin JanssenColin Janssen ✭✭✭✭✭
edited 12/09/19 in Formulas and Functions
03/20/18 Edited 12/09/19

Hi All,

I'm trying to use SUMIF to sum the total of all rows that meet a specific criteria

  • =SUMIF([SERVICE TYPE]:[SERVICE TYPE], "Monthly Charge", [2017-12]:[2018-01])

This however returns #INCORRECT ARGUMENT. Not sure what I am doing wrong. Any suggestions would be most appreciated.

Regards

Colin

 

SUMIF.jpg

Popular Tags:

Comments

  • L@123[email protected] ✭✭✭✭✭

    your criteria cannot be a matrix for the final range given. in other words you have

     

    [2017-12]:[2018-01]

    which references two columns when a sumif can only check one at a time. in order to have the sumif have this functionality you need to duplicate the formula and add the first to the second.

    • =SUMIF([SERVICE TYPE]:[SERVICE TYPE], "Monthly Charge", [2017-12]:[2017-12]) + SUMIF([SERVICE TYPE]:[SERVICE TYPE], "Monthly Charge", [2018-01]:[2018-01])
  • Colin JanssenColin Janssen ✭✭✭✭✭

    Thanks. This solved my problem

Sign In or Register to comment.