starting range for an array

jimblimm

Board Regular
Joined
May 11, 2012
Messages
219
I have a formula

=COUNTIF('MAIN DATA'!$BS$20:$BU$4000,"15")


i want to be able to get my starting column/row number with the index feature

INDEX('MAIN DATA'!B:B,A1):'MAIN DATA'!$B4000

a1=2354

example 'MAIN DATA'!bs2354:
just cant figure it out
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
You can build a range reference string using the INDIRECT() function.

If the values in a1 = 2354 and b1= "bs"
and the formula you want to build is this....
=INDEX('MAIN DATA'!BS2354:BU4000,2,3)

You can get the same result using this formula....
=INDEX(INDIRECT("'MAIN DATA'!" & B1 & A1& ":BU4000"),2,3)

INDIRECT has some drawbacks, so it's best to use when there is not a better alternative.
 
Upvote 0

Forum statistics

Threads
1,216,180
Messages
6,129,341
Members
449,505
Latest member
Alan the procrastinator

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