Make formula change when named range rows change?

lmac

Board Regular
Joined
May 12, 2005
Messages
103
If B9:B30 is a named range, how can I re-write my formulas in B2:B6 so that they change when there are more than 30 rows of data.

For ie; B2 formula is =MIN($B$9:$B$30) but the number of rows I might have fluctuates and could be ($B$9:$B$1500).

I know I can do this with a macro but how can it be done with a formula within the sheet itself.
Book1.xls
ABCD
1If SalesToScore
2< or =695.00-2
3> or =697.10-1
4> or =705.500
5> or =789.501
6> or =797.902
7
8SalesScore
9800.002
10795.001
11790.001
12785.000
13780.000
14775.000
15770.000
16765.000
17760.000
18755.000
19750.000
20745.000
21740.000
22735.000
23730.000
24725.000
25720.000
26715.000
27710.000
28705.00-1
29700.00-1
30695.00-2
Sheet1
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
You can use a dynamic named range. Go go Insert/Name/Define, and enter in Names in Workbook, List or whatever name you choose, in the Refers to window enter,

=$B$9:INDEX($B:$B,MATCH(9.99999999999999E+307,$B:$B)).

Now for the MIN use,

=MIN(List)
 
Upvote 0
Thank you so much Brian. This worked PERFECTLY! Thanks again. I actually jumped up out of my seat and shouted.

This Case Closed
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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