Dynamic Named Range and MIN Across Multiple Worksheets?

JeffK627

Active Member
Joined
Jun 22, 2005
Messages
313
I have an Excel 2010 workbook with a separate worksheet for each month. The sheets are named with the abbreviated month name and the year (Jan 2016, Feb 2016, etc.). I need to create a dynamic named range that includes K1:K34 for only the current month through December (so right now it would only include Sep 2016 through Dec 2016). I then need to get the smallest numeric value in that named range (I assume I can use the MIN function once the range is created). Has anyone done this? Any advice will be appreciated.
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
I don't believe there's a way to define a range, dynamic or static, that encompasses multiple sheets. There are ways to define 3D functions to do what you want, like this:

=MIN('Sep 2016:Dec 2016'!K1:K34)

However, there's no easy way (maybe no way at all) to change the sheet range within the formula. I tried OFFSET, INDIRECT, INDEX, and a few other ideas. About the best I came up with is something like this:

ABCD
1Sheet namesMonth
2Jan 201699999
3Feb 20161313Minimum
4Mar 201614143
5Apr 20161515
6May 20161616
7Jun 20161717
8Jul 20161818
9Aug 20161919
10Sep 201699
11Oct 201633
12Nov 201677
13Dec 201688

<colgroup><col style="******* 25pxpx"><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Sheet1

Worksheet Formulas
CellFormula
B2=MIN(INDIRECT("'"&A2&"'!K1:K34"))
C2=MIN('Jan 2016'!K1:K34)

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>

Array Formulas
CellFormula
D4{=MIN(IF(ROW(B2:B13)>D2,B2:B13))}

<thead>
</thead><tbody>
</tbody>
Entered with Ctrl+Shift+Enter. If entered correctly, Excel will surround with curly braces {}.
Note: Do not try and enter the {} manually yourself

<tbody>
</tbody>





I created a list of sheet names in A2:A13. Then I created a MIN function for each sheet. You can use the B2 version or the C2 version. Then put the month in D2, put the D4 formula in, and you should have the result you want. I also had variations where you put an X in column C if you wanted to include that value in the calculation.

You can put all these cells somewhere not visible, or even hide them if you want.

The alternative would be to create a UDF (User Defined Function) that does what you want, like:

=MultiMIN("Sep 2016","Dec 2016","K1:K34")

but that would require VBA. Let me know if this helps.
 
Upvote 0

Forum statistics

Threads
1,214,646
Messages
6,120,717
Members
448,985
Latest member
chocbudda

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