A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Yes, you can use another INDEX for A1 as INDEX returns reference not value. Hence, you can write for example -
INDEX(A1:A10,5):INDEX(B1:B4,2)
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Today I had to define a range using the Index function to be used in another formula.
A1:INDEX(B1:B4,2)
I haven't been able to find a way to use anything other than a plain cell reference (like A1) for the start of the range.
Is there a way to make that first reference dynamic? Like using two index functions separated by the semicolon?
A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data.
Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.
Answer accepted by question author
Yes, you can use another INDEX for A1 as INDEX returns reference not value. Hence, you can write for example -
INDEX(A1:A10,5):INDEX(B1:B4,2)
Answer accepted by question author
"=VLOOKUP(9,A1:INDEX(C1:C6,6),3,FALSE)"
your formula is not dynamic. If you want to make it dynamic, you need to see the second argument in index dynamic, for example INDEX(C1:C6,COUNTA(C:C))
If you also want A1 to be dynamic, you may actually use two INDEX to make your range, e.g.
=INDEX(A1:A6,2):INDEX(C1:C6,6)
where 2, and 6 are the dynamic parts you need to think about.
Hi,
If you want to make to range dynamic for more rows that may be added, try this
Your formula will be:
=VLOOKUP(9,$A$2:$B$7,3,FALSE)
As you add data beyond row 7, the range in the formula will auto expand.
Hope this helps.