Sumif multiple criteria with index and match no table

afterthefall28

New Member
Joined
Sep 16, 2014
Messages
9
I am basically looking for a dynamic sumif formula that finds the criteria of Hotel and month then returns the sum of multiple rows based on the Mapping (from data tab to output tab). I want to be able to change the hotel and month on the output tab and it automatically pulls in the correct sum. The data is not in table format and that is not an option.

Data Tab
Hotel AHotel AHotel AHotel BHotel BHotel B
JanFebMarJanFebMar
MAP_Rev50,00060,00040,00025,00010,00030,000
MAP_Exp(25,000)(20,000)(25,000)(10,000)(5,000)(4,000)
MAP_Exp(3,000)(4,000)(2,000)(3,000)(1,000)(3,000)
MAP_Exp(400)(1,000)(300)-(200)(400)

Output Tab
Match 1MappingJan<- Match 2
Hotel AMAP_RevRevenueFORMULA HERE
Hotel AMAP_ExpExpenseFORMULA HERE
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Maybe something like this:

Book1
ABCDEFGH
1Hotel AHotel AHotel AHotel BHotel BHotel B
2JanFebMarJanFebMar
3MAP_Rev50,00060,00040,00025,00010,00030,000
4
5MAP_Exp-25,000-20,000-25,000-10,000-5,000-4,000
6MAP_Exp-3,000-4,000-2,000-3,000-1,000-3,000
7MAP_Exp-400-1,000-3000-200-400
8
9Output Tab
10Match 1MappingJanFebMar
11Hotel AMAP_RevRevenue500006000040000
12Hotel AMAP_ExpExpense-28400-25000-27300
13Hotel BMAP_RevRevenue250001000030000
14Hotel BMAP_ExpExpense-13000-6200-7400
D1
Cell Formulas
RangeFormula
D11:F14D11=SUMPRODUCT($B$3:$H$7*($A$3:$A$7=$B11)*($B$1:$H$1=$A11)*($B$2:$H$2=D$10))
 
Upvote 0
Solution
Maybe something like this:

Book1
ABCDEFGH
1Hotel AHotel AHotel AHotel BHotel BHotel B
2JanFebMarJanFebMar
3MAP_Rev50,00060,00040,00025,00010,00030,000
4
5MAP_Exp-25,000-20,000-25,000-10,000-5,000-4,000
6MAP_Exp-3,000-4,000-2,000-3,000-1,000-3,000
7MAP_Exp-400-1,000-3000-200-400
8
9Output Tab
10Match 1MappingJanFebMar
11Hotel AMAP_RevRevenue500006000040000
12Hotel AMAP_ExpExpense-28400-25000-27300
13Hotel BMAP_RevRevenue250001000030000
14Hotel BMAP_ExpExpense-13000-6200-7400
D1
Cell Formulas
RangeFormula
D11:F14D11=SUMPRODUCT($B$3:$H$7*($A$3:$A$7=$B11)*($B$1:$H$1=$A11)*($B$2:$H$2=D$10))
This worked for me. Thanks!
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
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