Sumif using Multiple Criteria

acool

Board Regular
Joined
Feb 10, 2023
Messages
121
Office Version
  1. 365
Platform
  1. Windows
Hi Everyone,

I am currently trying to create a Sumif Formula which uses multiple criteria to generate an output value. In this instance, I am trying to use the criteria of "Brand Name" and then would like to sum the values for any months which fall before the current month. In this example Brand 1's value YTD value would be $97,706, as I am summing anything before the current month. Any help in creating this formula would be greatly appreciated. Picture attached below for reference. I am trying to inserting this formula into the Forecast YTD Cells in the table below.

Thank You

1707930703119.png
 

Attachments

  • 1707930588159.png
    1707930588159.png
    60.9 KB · Views: 11

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
To sum data from a multi row/column range it would be much better/easier to use SUMPRODUCT not SUMIF(s).
Assuming your dates are in row 3, Brands are in column D and real data starts in E3 something like:

Excel Formula:
=SUMPRODUCT(E$3:P$10,(E$2:P$2<=EOMONTH(TODAY(),-1))*(B$3:B$10=A15))
This would be formula for B15 when A15 contains a name of a brand
 
Upvote 0
Solution
try something like this:
Book1
ABCDEFGHIJKLMNO
12023-07-012023-08-012023-09-012023-10-012023-11-012023-12-012024-01-012024-02-012024-03-012024-04-012024-05-012024-06-012024-07-01
2Brand163314438707744494428555029
3Brand257337647613479614135303059
4Brand335614645687457475749726367
5Brand461473873626027685640775169
6Brand536495325675736347943387229
7Brand662843482363046778525542562
8Brand780572861287452666676478071
9
10
11Brand:Brand3
12BeforeDate:2024-02-14
13
14Total:433
Sheet3
Cell Formulas
RangeFormula
C12C12=TODAY()
C14C14=SUMPRODUCT(($B$2:$B$8=C11)*($C$1:$O$1<=C12)*($C$2:$O$8))
 
Upvote 0
If C12 is just TODAY, the formula would return $190,000+ for the data from post 1
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,164
Members
453,021
Latest member
Justyna P

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top