简体   繁体   中英

Is it possible to use individual cell references in an Excel array within a function?

I have some data I want to put into the LOGEST() function

(e.g. x values =0.463, 0.609, 0.887, y values = 0.05, 0.1, 0.2 )

For this example I have put the data into these columns: 在此处输入图片说明 Both these formula work (return the correct value of 0.665...):

= INDEX( LOGEST({0.95;0.9;0.8}, {0.463;0.609;0.887}, TRUE, FALSE), 1)

and

= INDEX( LOGEST( B2:B4, A2:A4, TRUE, FALSE), 1)

But I cannot get the formula to call individual cells in the array. I have tried a few things eg

= INDEX( LOGEST({0.95,0.9,0.8}, {"A2","A3","A4"}, TRUE, FALSE), 1)
= INDEX( LOGEST({0.95,0.9,0.8}, (A2, A3, A4), TRUE, FALSE), 1)

And some other variations, but I cannot get excel to treat individual cell values as array values. Is there a way to do this or is the only constant cell referencing possible the A2:A4? I ask because in my real data I can't use this range function as my data is not distributed in that form (there are gaps). (Note: In case it is relevant ultimately I don't want the cell values to remain fixed - they should move downwards when I drag expand downwards).

You can use the CHOOSE function to return the array...

= INDEX( LOGEST({0.95;0.9;0.8}, CHOOSE({1;2;3},A2,A3,A4), TRUE, FALSE), 1)

Hope this helps!

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