*URGENT*: Sum Multiple Columns with single criteria across a row?

im2bz2p345

Board Regular
Joined
Mar 31, 2008
Messages
226
Hi all,

I am trying to finish up some analysis for an assignment and cannot figure out how to sum up multiple COLUMNS based on if a criteria matches across a ROW.

Below is an screenshot sample of my data (it's a very large dataset). Row 2 contains a bunch of MM-YYYY values. For example, if I want to sum the sales data for each state (Rows 8-53), if the rows match "04-2011".. how do I go about doing that? In this example, the formula would find that match "04-2011" in both column B & C and sum up the sales data for each state (in rows 8-53.

Hope this makes sense.

Excel 2010
ABC
1State4/1/20114/5/2011
204-201104-2011
3$19M$30M
4DrawDraw
5SalesSales
6Total$22,044,730$21,965,644
7Sales
8AR$159,515$155,023
9AZ$321,796$349,151
10CA$3,538,254$3,884,198
11CO$130,015$145,712
12CT$202,068$203,551
13DC$63,763$60,450
14DE$63,883$64,074
15FL$0$0
16GA$1,137,126$1,020,718
17IA$100,545$104,780
18ID$73,582$77,117
19IL$1,174,096$1,141,760
20IN$236,512$247,063
21KS$79,366$87,957
22KY$245,665$241,764
23LA$0$0
24MA$710,861$675,126
25MD$820,056$755,640
26ME$30,896$34,915
27MI$1,281,350$1,206,276
28MN$120,666$1,299,323
29MO$246,102$261,102
30MT$22,986$24,769
31NC$488,303$484,269
32ND$21,773$23,473
33NE$80,555$84,786
34NH$70,144$73,597
35NJ$1,578,880$1,553,914
36NM$66,601$72,231
37NY$3,211,429$3,140,964
38OH$1,198,085$1,164,075
39OK$114,920$120,460
40OR$101,768$115,929
41PA$688,730$687,847
42RI$75,064$74,592
43SC$275,375$264,313
44SD$23,467$25,385
45TN$294,336$288,853
46TX$1,353,784$1,290,237
47VA$1,003,665$936,865
48VI$7,443$8,209
49VT$20,081$21,122
50WA$357,181$395,808
51WI$167,471$181,598
52WV$86,572$86,648
53WY$0$0

<tbody>
</tbody>
Sheet1



I'm thinking that I need some sort of array formula/sum product formula, but I cannot figure out to how to structure it.

Ty in advance!

~ Im2bz2p345 :)
 
Last edited:

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
Sorry for the double post - if it's not clear above, what I need is a SUM of the sales data for each state by month.

So basically what I have in row 2 is the MONTH-YEAR (in this format: MM-YYYY). For the month of April 2011 (04-2011), I need the sum of sales data of each state.

In my example above, I have only two columns that would be summed together for each state abbreviation (i.e. AR = $159,515 + $155,023 = $314, 538).. but in my actual data there is often 9+ columns of data that needs to be summed across for each state.

Hope this explains it better,

~ Im2bz2p345 :)
 
Upvote 0

Forum statistics

Threads
1,214,911
Messages
6,122,199
Members
449,072
Latest member
DW Draft

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