Using SUMIFS with multiple AND OR conditions

前端 未结 7 2235
青春惊慌失措
青春惊慌失措 2020-12-10 15:50

I would like to create a succinct Excel formula that SUMS a column based on a set of AND conditions, plus a set of OR conditions.

My Excel table contains the followi

7条回答
  •  佛祖请我去吃肉
    2020-12-10 16:01

    You might consider referencing the actual date/time in the source column for Quote_Month, then you could transform your OR into a couple of ANDs, something like (assuing the date's in something I've chosen to call Quote_Date)

    =SUMIFS(Quote_Value,"<=90",Quote_Date,">="&DATE(2013,11,1),Quote_Date,"<="&DATE(2013,12,31),Salesman,"=JBloggs",Days_To_Close)
    

    (I moved the interesting conditions to the front).

    This approach works here because that "OR" condition is actually specifying a date range - it might not work in other cases.

提交回复
热议问题