Including a number in a formula thats from a cell reference

Tinkerz

Board Regular
Joined
Feb 26, 2007
Messages
179
I have an excel addin, and I use this formula, what I would like to do is set the cell reference to a variable, that would look at the cell number and then do the array

=TRANSPOSE(GaussianKernelSmoothing($A2:$A910,E1))

to

=TRANSPOSE(GaussianKernelSmoothing($A2:$A(cell lookup A1),E1))

so it would then be a variable on whatever number was in cell A1

This is an array so I hope wont produce a problem

Neil
 
Last edited:

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.

Richard Schollar

MrExcel MVP
Joined
Apr 19, 2005
Messages
23,707
The "traditional" way of doing this would be to use Indirect:

=TRANSPOSE(GaussianKernelSmoothing(INDIRECT("$A2:$A" &A1),E1))

However, given you are wrapping this within TRANSPOSE (and thus need to select the destination range to begin with) I'm not sure this will meet your needs.
 
Upvote 0

Forum statistics

Threads
1,190,773
Messages
5,982,835
Members
439,799
Latest member
matts12

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top