sumif dynamic named range

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
2,005
Office Version
  1. 365
Platform
  1. Windows
how to sumif with a dynamic named range? i have several named ranges, all are dynamic using Index. I want to use a sumif at the bottom of the ranges to sum certain records. Have tried putting the range names at the head of each column and then using indirect to reference those cells but does not work. what should i be doing?
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
SUMIF can readily incorporate dynamic ranges. For example:

ABCD
1TypeNo
2A2Totals
3B3A20
4A5B80
5B7
6B11
7A13
8B17
9B19
10B23
Sheet1
Cell Formulas
RangeFormula
D3:D4D3=SUMIF(INDEX(MyArray,,1),C3,INDEX(MyArray,,2))
Named Ranges
NameRefers ToCells
MyArray=Sheet1!$A$2:INDEX(Sheet1!$B:$B,COUNTA(Sheet1!$B:$B))D3:D4


Perhaps you could post the example you're having trouble with?
 
Upvote 0

Forum statistics

Threads
1,214,923
Messages
6,122,289
Members
449,077
Latest member
Rkmenon

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