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

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
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,214,518
Messages
6,119,996
Members
448,935
Latest member
ijat

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
Back
Top