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 does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
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,223,238
Messages
6,170,939
Members
452,368
Latest member
jayp2104

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