I would like to create a concise Excel formula in which SUMS is a column based on a set of AND conditions, plus a set of OR conditions.
My Excel table contains the following data, and I used specific names for the columns.
- Quote_Value (Worksheet! $ A: $ A) contains the accounting value.
- Days_To_Close (Worksheet! $ B: $ B) contains a formula that results in a number.
- Salesman (Worksheet! $ C: $ C) contains text and is a name.
- Quote_Month (Worksheet! $ D: $ D) contains the formula (= TEXT (Worksheet! $ E: $ E, "mmm-yy")) to convert the date / time from another column to a text month link.
I want to use SUM Quote_Value if Salesman is equal to JBloggs and Days_To_Close is equal to or less than 90, and Quote_Month is equal to one of the following (October-13, November-13 or December-13).
At the moment I have this to work, but it includes many repetitions that I do not need.
=SUM(SUMIFS(Quote_Value,Salesman,"=JBloggs",Days_To_Close,"<=90",Quote_Month,"=Oct-13")+SUMIFS(Quote_Value,Salesman,"=JBloggs",Days_To_Close,"<=90",Quote_Month,"=Nov-13")+SUMIFS(Quote_Value,Salesman,"=JBloggs",Days_To_Close,"<=90",Quote_Month,"=Dec-13"))
What I would like to do is something more than the following, but I cannot work out the correct syntax:
=SUMIFS(Quote_Value,Salesman,"=JBloggs",Days_To_Close,"<=90",Quote_Month,OR(Quote_Month="Oct-13",Quote_Month="Nov-13",Quote_Month="Dec-13"))
This formula is not an error, it simply returns 0. But if I manually check the data, it is not. I even tried using TRIM (Quote_Month) to make sure that the spaces did not fill in the data, but the fact that my extended SUM formula works indicates that the data is ok and that this is a syntax issue. Can someone direct me in the right direction?