ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Applying a function to a range (https://www.excelbanter.com/excel-programming/435184-applying-function-range.html)

michelle439731

Applying a function to a range
 
Hello,

I would like to apply a user defined function to a range of data. The
output from the function is an array of the same size as the original matrix.
I want to then compare this matrix to the original.

Any help would be greatly appreciated.

Thank you very much,

Michelle

BSc Chem Eng Rick

Applying a function to a range
 
Before you enter the formula make sure the correct size "answer" range is
selected. Enter your formula in the top-left of this range and the hit
Ctrl+Shift+Enter (for array formulas)

If this helps please click "Yes"
<<<<<<<<<<<<

"michelle439731" wrote:

Hello,

I would like to apply a user defined function to a range of data. The
output from the function is an array of the same size as the original matrix.
I want to then compare this matrix to the original.

Any help would be greatly appreciated.

Thank you very much,

Michelle


michelle439731

Applying a function to a range
 
Oh nuts! I'm very sorry, I didn't say in my original post. I'm trying to do
this in VBA.

D'oh!

"BSc Chem Eng Rick" wrote:

Before you enter the formula make sure the correct size "answer" range is
selected. Enter your formula in the top-left of this range and the hit
Ctrl+Shift+Enter (for array formulas)

If this helps please click "Yes"
<<<<<<<<<<<<



Sam Wilson

Applying a function to a range
 
dim rngAnswer as range
rngAnswer.formulaarray = "=UDF(A1:B3)"



"michelle439731" wrote:

Oh nuts! I'm very sorry, I didn't say in my original post. I'm trying to do
this in VBA.

D'oh!

"BSc Chem Eng Rick" wrote:

Before you enter the formula make sure the correct size "answer" range is
selected. Enter your formula in the top-left of this range and the hit
Ctrl+Shift+Enter (for array formulas)

If this helps please click "Yes"
<<<<<<<<<<<<



michelle439731

Applying a function to a range
 
Works! Smashing.

Thanks Sam!

"Sam Wilson" wrote:

dim rngAnswer as range
rngAnswer.formulaarray = "=UDF(A1:B3)"



"michelle439731" wrote:

Oh nuts! I'm very sorry, I didn't say in my original post. I'm trying to do
this in VBA.

D'oh!

"BSc Chem Eng Rick" wrote:

Before you enter the formula make sure the correct size "answer" range is
selected. Enter your formula in the top-left of this range and the hit
Ctrl+Shift+Enter (for array formulas)

If this helps please click "Yes"
<<<<<<<<<<<<




All times are GMT +1. The time now is 05:39 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com