Index Match to also sum a range?

jimbogarner

Board Regular
Joined
Apr 22, 2010
Messages
102
Hi,

I've been using an index/match formula to select a cell within a grid dependant on the week, however, I now need this to pull in a YTD value, IE for week 21, sum up weeks 1 > 21... I currently have the following formula which it doesn't seem to like (i'm using google sheets);
=IFERROR(SUM(INDEX(KPIs!$V$2:INDEX(KPIs!$V$2:$BU$21,0,MATCH(Control!$C$3,KPIs!$V$1:$BU$1,0)),MATCH($A$9,KPIs!$U$2:$V$21,0),0)),"")

The below is the snip from the KPI sheet that the above is trying to sum from;
1669637933653.png



Thanks,

James
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
What is this part supposed to be doing:

Excel Formula:
MATCH($A$9,KPIs!$U$2:$V$21,0)

You can only use MATCH against one column or row.
 
Upvote 0
Hi, that is looking up the the left column and whether it is a first time deposit/monthly active etc. on the front sheet that the formula is in I have this which is what it is looking up from;
1669641151313.png
 
Upvote 0
As I said, it won’t work because you are using match against multiple rows and columns.
 
Upvote 0
How do I fix it? As i'm only trying to match a single row/column so I've just made an error in the formula somewhere?

I had thought from this calc I am doing an index formula but within that i'm doing a SUM that starts at V2 and the final SUM position is dynamic depending on this 2nd part of the formula;
1669644211172.png


This is the spreadsheet i'm working on, you just need the Weekly Book & the KPIs tab;

Thanks
 
Upvote 0
You haven't allowed access to the file.

You need to alter the $U$2:$V$21 so it's just one column.
 
Upvote 0
Ahh sorry I I think its because I've got it open at work and it only lets me allow people access when they request it.

That seems to have worked though fantastic! Can't believe it was just the U:V range after all that!

Thanks
 
Upvote 0

Forum statistics

Threads
1,215,751
Messages
6,126,669
Members
449,326
Latest member
asp123

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