Sumproduct Index Match Maybe?

rehberger

Board Regular
Joined
Aug 28, 2013
Messages
52
Hello, I am trying to come up with a formula that i can drag to sum just the weekdays from the data set up below:
[TABLE="width: 200"]
<tbody>[TR]
[TD][/TD]
[TD]Weekdays[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2019[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Rooms[/TD]
[TD]Revenue[/TD]
[/TR]
[TR]
[TD]Casino[/TD]
[TD]Formula[/TD]
[TD]Formula[/TD]
[/TR]
[TR]
[TD]Events[/TD]
[TD]Formula[/TD]
[TD]Formula[/TD]
[/TR]
</tbody>[/TABLE]

Data looks like this:
[TABLE="width: 300"]
<tbody>[TR]
[TD][/TD]
[TD]Casino[/TD]
[TD]Casino[/TD]
[TD]Events[/TD]
[TD]Events[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]2019[/TD]
[TD]2019[/TD]
[TD]2019[/TD]
[TD]2019[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]Rooms[/TD]
[TD]Revenue[/TD]
[TD]Rooms[/TD]
[TD]Revenue[/TD]
[/TR]
[TR]
[TD]1/1/19
[/TD]
[TD]10[/TD]
[TD]200[/TD]
[TD]20[/TD]
[TD]400[/TD]
[/TR]
[TR]
[TD]1/2/19[/TD]
[TD]15[/TD]
[TD]300[/TD]
[TD]22[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]1/3/19[/TD]
[TD]12[/TD]
[TD]500[/TD]
[TD]20[/TD]
[TD]450[/TD]
[/TR]
[TR]
[TD]1/4/19[/TD]
[TD]5[/TD]
[TD]100[/TD]
[TD]10[/TD]
[TD]300[/TD]
[/TR]
[TR]
[TD]1/5/19[/TD]
[TD]10[/TD]
[TD]200[/TD]
[TD]15[/TD]
[TD]200[/TD]
[/TR]
[TR]
[TD]1/6/19[/TD]
[TD]15[/TD]
[TD]300[/TD]
[TD]15[/TD]
[TD]200[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Spell Check in Excel
Press F7 to start spell check in Excel. Be careful, by default, Excel does not check Capitalized Werds (whoops)
Excel Workbook
ABCDE
1Weekdays
22019
3RoomsRevenue
4Casino421100
5Events721450
6
7
8
9CasinoCasinoEventsEvents
102019201920192019
11RoomsRevenueRoomsRevenue
121/1/20191020020400
131/2/20191530022300
141/3/20191250020450
151/4/2019510010300
161/5/20191020015200
171/6/20191530015200
Sheet5
 
Upvote 0
Hi,

If I understand correctly.

Change/adjust cell references/range as needed, formula copied down and across:


Book1
ABCDEFGHI
1WeekdaysCasinoCasinoEventsEvents
220192019201920192019
3RoomsRevenueRoomsRevenueRoomsRevenue
4Casino4211001/1/20191020020400
5Events7214501/2/20191530022300
61/3/20191250020450
71/4/2019510010300
81/5/20191020015200
91/6/20191530015200
Sheet549
Cell Formulas
RangeFormula
B4=SUMPRODUCT(($F$1:$I$1=$A4)*($F$2:$I$2=$B$2)*($F$3:$I$3=B$3)*(WEEKDAY($E$4:$E$9,2)<6)*$F$4:$I$9)
 
Upvote 0

Forum statistics

Threads
1,223,894
Messages
6,175,252
Members
452,623
Latest member
Techenthusiast

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