INdex with part of the range

RCBricker

Well-known Member
Joined
Feb 4, 2003
Messages
1,560
I am trying to build an Index formula. I have the first part of the range, can I use address to get the rest of the range?


so I have A1 to start

so I am thinking index(A1: and then the address function to fill in the second part of the range.
Code:
index(A1:&IF(ISERROR(ADDRESS(ROW(INDEX(G:G,MATCH("XXX",G:G,0))),COLUMN(INDEX(G:G,MATCH("XXX",G:G,0))))),ADDRESS(ROW(INDEX(G:G,MATCH("YYY",G:G,0))),COLUMN(INDEX(G:G,MATCH("YYY",G:G,0)))),ADDRESS(ROW(INDEX(G:G,MATCH("XXX",G:G,0))),COLUMN(INDEX(G:G,MATCH("XXX",G:G,0)))))

This produces an error

any thoughts?
 

Excel Facts

Save Often
If you start asking yourself if now is a good time to save your Excel workbook, the answer is Yes
Here is my total solution case anyone was following the three threads

Code:
=IF(H7="Start",INDEX(INDIRECT("$G$"&ROW()&":$G$"&IF(ISERROR(ROW(INDEX(INDIRECT("$G$"&ROW()&":$G$1048576"),MATCH("XXX",INDIRECT("$G$"&ROW()&":$G$1048576"),0)))),ROW(INDEX(INDIRECT("$G$"&ROW()&":$G$1048576"),MATCH("YYY",INDIRECT("$G$"&ROW()&":$G$1048576"),0))),ROW(INDEX(INDIRECT("$G$"&ROW()&":$G$1048576"),MATCH("XXX",INDIRECT("$G$"&ROW()&":$G$1048576"),0))))),4,1),"")
 
Upvote 0

Forum statistics

Threads
1,216,071
Messages
6,128,626
Members
449,460
Latest member
jgharbawi

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