sumif and index match not working

Dares2

New Member
Joined
Feb 27, 2017
Messages
27
Office Version
  1. 365
Platform
  1. Windows
hi all,

I am trying to sum a group of values that looks for the text in cell B12 in a different sheet (shown below) and there would be several in the column then adds all these values based on an index of the month eg Aug in cell N8 (which would then add all the values for Jul and Aug (in a column of months from Jul (b24- Jun M24). The formula I am using is probably completely wrong but hope you can help. Thanks Dares2

eg SUMIF('Other sheet'A:A,$B12,INDEX(B:M,,MATCH($N$8,$B24:$M$24,0)))/1000
 
Last edited:

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
I am not following you all of the way, but, one thing I can say;

Is that the MATCH part of your formula has more than one column for a range to look up in.

You can only use one column in a MATCH formula, or it won't work.
 
Upvote 0
Possibly...

=SUMIF('Other sheet'!$A$25:$A$1000,$B12,INDEX('Other sheet'!$B$25:$M$1000,0,MATCH($N$8,'Other sheet'!$B24:$M$24,0)))/1000
 
Upvote 0
thanks John for the feedback, yes I think match is possibly the wrong formula to use.
 
Upvote 0
hi Aladin sorry for late reply. Yes I think it is a good formula but not sure this one was the one for me in this particular situation or I couldnt readily get it to work but wrote a different one in the end that was a sumproduct. Thanks again for taking the time too.
 
Upvote 0
Thanks for the update. Just one note: It's more efficient to invoke SumIf(s) formulas when they apply instead of equivalent array-processing formulas.
 
Upvote 0

Forum statistics

Threads
1,223,903
Messages
6,175,289
Members
452,631
Latest member
a_potato

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