Index/Sumif or Sumproduct

Status
Not open for further replies.

ryansm05

Board Regular
Joined
Sep 14, 2016
Messages
148
Office Version
  1. 365
Platform
  1. Windows
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
1
PROJECT
2019Q1
2019Q2
2019Q3
2019Q4
2019Q1
2019Q2
2019Q3
2019Q4
2019Q1
2019Q2
2019Q3
2019Q4
OP
2
YU
4
5
6
45
77
7
7
5
98
8
6
99
3
HU
12
34
6
7
8
1
3
4
6
7
9
2
2019Q3

4
PO
15
65
45
18
25
45
66
5
8
8
6
9

5
OP
78
9
51

5
7
56
90
89
8
64
431
2019Q2


<tbody>
</tbody>

Hi,

From the above data I'm hoping to achieve the below:

Formula 1:
- Looks along C1:F1 and matches the data in cell Q3
- Looks down B2:B5 and matches the data in cell Q1
- Answer = 51 (cell e5)

Formula2:
- Looks along K1:N1 and matches the data in cell Q5
- Looks down B2:B5 and matches the data in cell Q1
- Answer = 8 (cell L5)
with

I had posted something similar in recent days but confused it with an incorrect table. Ultimately, Formula2 is what I'm struggling
with as the traditional Index-Match will not work because there are multiple 2019Q2 for example on row 1.

Any help is much appreciated.

Thanks
Ryan
 
Last edited:

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Re: Index/Sumif or Sumproduct help

Something like:

=INDEX($C$2:$F$5,MATCH($Q$1,$B$2:$B$5,0),MATCH($Q$3,$C$1:$F$1,0))

or

=SUMIFS(INDEX($C$2:$F$5,,MATCH($Q$3,$C$1:$F$1,0)),$B$2:$B$5,$Q$1)
 
Upvote 0
Status
Not open for further replies.

Forum statistics

Threads
1,213,491
Messages
6,113,963
Members
448,536
Latest member
CantExcel123

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