简体   繁体   中英

Referencing cells in a range

I have a large number of parameters that I have grouped into a named range, MyParameters , to make it easier to pass to User Defined Functions.

In a User Defined Function I can retrieve a particular parameter using row and column notion as follows:

aParameter = MyParameters(2,2)

I now want to do the same outside of VBA (eg for use in a conditional formatting formula or feed into a normal Excel function).

Is this possible?

MyParameters(2,2)

does not work in a normal Excel cell.

If I understand correctly you can use the INDEX formula:

=INDEX(MyParameters,2,2)

在此处输入图片说明

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