Dec 14 2022 04:13 PM - edited Dec 14 2022 05:56 PM
Referring to the pic - Is there a formula for cell H4 (where I have that Indirect() currently) that can be copied down and across and will fill the table with the range that starts from the 'key cell' the user has entered -- in this case the user has entered A3, so I'd like the table filled with the range A3:D5? The idea is to broadly support the copy and paste of that table anywhere on the sheet and the user can just enter -any- cell and it will pull the range starting from that key (I've been working with Indirect, Offset, Cell, etc., can't get it.
Hoping for a regular fill down, fill across, no array or absolute references since the starting point and the range of data to retrieve will change.
Dec 14 2022 06:01 PM - edited Dec 14 2022 06:07 PM
User enter A3 and want to return A3:D5, well. Why not A3:E6? Why not A3:D6? How excel will know starting cell and ending cell? Any explanation? With you current sample you may try =INDIRECT(H3&":D" &ROW(A2)+ RIGHT(H3,LEN(H3)-1))
Dec 14 2022 08:34 PM - edited Dec 14 2022 08:36 PM
@Harun24HR >>Why not A3:E6? Why not A3:D6…<<
It won’t always be a fixed shape. Sometimes A3:E6 other times A3:D6 still other times maybe A8 to F20 or something else. Which is why I was hoping for a formula that would start with that key cell and could be Filled Down and Filled Across to return what the user needed. (Your function did work, but returning the fixed size range doesn’t work in this particular instance.) And thank you for your the efforts!
Dec 14 2022 10:44 PM
Dec 15 2022 06:09 PM
yeah, the logic is somewhat complex, updated regularly, and goes across multiple sheets, but it’s an easy thing for the users to manage in their head - another reason I was trying for the fill down and right approach. But, I can eventually pull out the logic and use the formula you provided for the range. (Formulas that return arrays are difficult for most end users.)