Sum Index Match Using 2 Rows

DisplayName

New Member
Joined
May 24, 2017
Messages
10
Hello - I'm an Excel novice, and need help constructing an index match formula using 2 rows. I have 2 subtotal rows that I want to add if the date matches whatever month I set it too.

Right now I have this formula to return the current months total. I want the formula to look at 2 rows & add them, and return the current months total.

=INDEX($X$64:$AI$64,MATCH($AP$3,$X$7:$AI$7,0))

=index(operating exp row,match(MONTH,jul-jun row,0))

Hope this makes sense!
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
you need to show as your data structure may be with a sample of the file
 
Upvote 0
Month EndApr-19
MonthsJul-18Aug-18Sep-18Oct-18Nov-18Dec-18Jan-19Feb-19Mar-19Apr-19May-19Jun-19
Employee 15,1315,3644,6645,3655,1314,897(9,002)2,7982,9393,07800
Employee 2000000000000
Employee 30000000004,38100
Employee 400012,3368,7955,6866,7905,5266,08114500
Employee 5000000000000
Employee 6000000000000
Employee 73,5833,7463,2583,7463,5843,420(1,628)2,5592,6882,81500
Employee 800000017,1422,3812,5002,61900
Employee 902,2561,9612,2562,1582,0602,2551,9622,0592,15800
Employee 10000000000000
Employee 114,5463,1725,243(6,301)00000000
Total Salaries & Wages13,26014,53815,12617,40219,66816,06315,55715,22616,26715,19600
Operating Exp 100037847816614301,4161,22900
Operating Exp 200003500880000
Operating Exp 30000450000133000
Operating Exp 400000054500000
Operating Exp 500003,6980000000
Operating Exp 6000000000000
Operating Exp 7000000000000
Operating Exp 801991445700152117010700
Operating Exp 90753511011070703003510500
Operating Exp 100000051000000
Operating Exp 1148150703100320000
Operating Exp 1200000055800000
Operating Exp 130000000010,52110,52100
Total Operating Expenses482891796154,3712021,98696712,10511,96200

<colgroup><col><col span="3"><col><col span="2"><col><col span="3"><col span="2"></colgroup><tbody>
</tbody>



Something like this. I want the index match formula to look at the 'total salaries & wages' row & 'total operating expenses' row, and add the two values that correspond to the 'month end' cell.
 
Upvote 0
try this


Book1
ABCDEFGHIJKLM
1Month EndApr-1927158
2
3MonthsJul-18Aug-18Sep-18Oct-18Nov-18Dec-18Jan-19Feb-19Mar-19Apr-19May-19Jun-19
4Employee 15,1315,3644,6645,3655,1314,897-9,0022,7982,9393,07800
5Employee 2000000000000
6Employee 30000000004,38100
7Employee 400012,3368,7955,6866,7905,5266,08114500
8Employee 5000000000000
9Employee 6000000000000
10Employee 73,5833,7463,2583,7463,5843,420-1,6282,5592,6882,81500
11Employee 800000017,1422,3812,5002,61900
12Employee 902,2561,9612,2562,1582,0602,2551,9622,0592,15800
13Employee 10000000000000
14Employee 114,5463,1725,243-6,30100000000
15Total Salaries & Wages13,26014,53815,12617,40219,66816,06315,55715,22616,26715,19600
16
17Operating Exp 100037847816614301,4161,22900
18Operating Exp 200003500880000
19Operating Exp 30000450000133000
20Operating Exp 400000054500000
21Operating Exp 500003,6980000000
22Operating Exp 6000000000000
23Operating Exp 7000000000000
24Operating Exp 801991445700152117010700
25Operating Exp 90753511011070703003510500
26Operating Exp 100000051000000
27Operating Exp 1148150703100320000
28Operating Exp 1200000055800000
29Operating Exp 130000000010,52110,52100
30Total Operating Expenses482891796154,3712021,98696712,10511,96200
Sheet1
Cell Formulas
RangeFormula
C1=INDEX($A$3:$M$30,MATCH(A15,A3:A30,0),MATCH(B1,A3:M3,0))+INDEX($A$3:$M$30,MATCH(A30,A3:A30,0),MATCH(B1,A3:M3,0))
 
Upvote 0
For a somewhat different approach:

C1: =SUM(INDEX(B4:M30,0,MATCH(B1,B3:M3,0)))/2
 
Upvote 0

Forum statistics

Threads
1,214,643
Messages
6,120,702
Members
448,980
Latest member
CarlosWin

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