SUM INDEX MATCH returning first instance

adrienne0914

Board Regular
Joined
Mar 22, 2018
Messages
57
Office Version
  1. 2016
Platform
  1. Windows
Hi all,

I'm hoping you can help me out. I have a question about SUM INDEX MATCH for items in a row:

PPTDPPTDPTDPTDPTDPTDPPTD
Customers7081809475249151

<tbody>
</tbody>

The last two columns should total the others if there is a match to the column heading:

=SUM(INDEX($B2:$F2,MATCH(H$1,$B1:$F$1,0)))

Instead of returning the total for PTD, it just returns the first instance. What am I doing wrong?
 

Excel Facts

How to total the visible cells?
From the first blank cell below a filtered data set, press Alt+=. Instead of SUM, you will get SUBTOTAL(9,)
A
B
C
D
E
F
G
H
I
1
PPTDPPTDPTDPTDPTDPTDPPTD
2
Customers
70​
81​
80​
94​
75​
249​
151​

<tbody>
</tbody>

H2=SUMIF($B$1:$F$1,H$1,$B$2:$F$2) copy across
 
Upvote 0
A
B
C
D
E
F
G
H
I
1
PPTDPPTDPTDPTDPTDPTDPPTD
2
Customers
70​
81​
80​
94​
75​
249​
151​

<tbody>
</tbody>

H2=SUMIF($B$1:$F$1,H$1,$B$2:$F$2) copy across

Thank you so much! I guess I was overcomplicating things. :LOL:
 
Upvote 0

Forum statistics

Threads
1,214,959
Messages
6,122,476
Members
449,087
Latest member
RExcelSearch

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