简体   繁体   中英

Is it possible to reference a cell within a formula based off the value on another cell in Excel

I have been searching for an answer to this but maybe I'm searching for the wrong thing. I would like to reference a cell based on the product of two cells.

For example

=A1:A(D2*E2)

so if D2=2 and E2=5 the formula would return =A1:A10

Is doing something like this possible?

You can use:

=A1:INDEX(A:A,D2*E2)

which is at least only semi-volatile, unlike INDIRECT() .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM