PC Review


Reply
Thread Tools Rate Thread

Applying a function to a range

 
 
michelle439731
Guest
Posts: n/a
 
      20th Oct 2009
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
 
Reply With Quote
 
 
 
 
BSc Chem Eng Rick
Guest
Posts: n/a
 
      20th Oct 2009
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

 
Reply With Quote
 
michelle439731
Guest
Posts: n/a
 
      20th Oct 2009
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 With Quote
 
Sam Wilson
Guest
Posts: n/a
 
      20th Oct 2009
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 With Quote
 
michelle439731
Guest
Posts: n/a
 
      20th Oct 2009
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Applying Formulas to a Range in a Worksheet Ra Microsoft Excel Misc 4 15th Jun 2009 11:19 AM
Bug applying Borders to Range Bart Microsoft Excel Programming 1 4th Jan 2008 03:26 PM
macro not applying to entire range =?Utf-8?B?YmVhcnNmYW4=?= Microsoft Excel Programming 1 10th Oct 2006 07:10 PM
Applying Offset to Range in VBA marston.gould@alaskaair.com Microsoft Excel Worksheet Functions 2 21st Jun 2006 04:01 AM
Applying vlookup to a range =?Utf-8?B?U2hhbA==?= Microsoft Excel Programming 4 5th Apr 2006 09:59 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:17 PM.