Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 118
Default 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

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default 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"
<<<<<<<<<<<<


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 523
Default 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"
<<<<<<<<<<<<


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default 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"
<<<<<<<<<<<<


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying Formulas to a Range in a Worksheet Ra Excel Discussion (Misc queries) 4 June 15th 09 11:19 AM
Bug applying Borders to Range Bart[_6_] Excel Programming 1 January 4th 08 03:26 PM
Applying Offset to Range in VBA [email protected] Excel Worksheet Functions 2 June 21st 06 04:01 AM
Applying vlookup to a range Shal Excel Programming 4 April 5th 06 09:59 AM
Help with applying function to cells scott682 Excel Programming 2 August 18th 04 02:45 AM


All times are GMT +1. The time now is 02:22 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"