Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
avi avi is offline
external usenet poster
 
Posts: 195
Default Using Excel statistical functions on a subset of an array

Hello,

From a 2 columns Excel range, I have produced a 2 dimensional array
with 2 columns

Is is possible to use the powerful Excel statistical functions (as
Stdev) on the second array column values (actually a subset of
values), while a ceratin condition on the first column holds

I am aware of the SUMPRODUCTS speacial function but it does'nt seem to
apply to statistical functions

Thanks a lot
Avi
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 837
Default Using Excel statistical functions on a subset of an array

If you are asking about worksheet formulas, you could use an array formula like
=STDEV(IF(col1_condition,col2))

Note that this will not work with LINEST and related functions, which do not
permit non-numeric data within the input range.

If col2 has some empty cells where col1_condition is satisfied, and you do
not want those empty cells to be considered to be zero values, then you would
need a compound condition like
=STDEV(IF(col1_condition*ISNUMBER(col2),col2))

Since this is the programming group, you may be asking about VBA, where it
becomes more complicated since VBA does not directly support array formulas.
However, if the corresponding worksheet formula can be written as a character
string (say stored in a VBA variable called formula) where the formula uses
explicit cell references rather than VBA arrays, then the VBA expression
Evaluate(formula)
will evaluate as though formula had been array entered into a worksheet cell.

Jerry

"avi" wrote:

Hello,

From a 2 columns Excel range, I have produced a 2 dimensional array
with 2 columns

Is is possible to use the powerful Excel statistical functions (as
Stdev) on the second array column values (actually a subset of
values), while a ceratin condition on the first column holds

I am aware of the SUMPRODUCTS speacial function but it does'nt seem to
apply to statistical functions

Thanks a lot
Avi

  #3   Report Post  
Posted to microsoft.public.excel.programming
avi avi is offline
external usenet poster
 
Posts: 195
Default Using Excel statistical functions on a subset of an array

Thanks a lot

It looks very promising

Avi
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
Statistical functions in an array Kate Excel Discussion (Misc queries) 3 October 10th 07 03:46 PM
excel database statistical functions (DSUM etc..) CraigS Excel Discussion (Misc queries) 1 March 28th 06 06:19 AM
Excel Statistical Functions and Routines David A. Heiser Excel Worksheet Functions 0 June 3rd 05 05:27 PM
Excel Statistical Functions and Routines David A. Heiser Excel Worksheet Functions 1 June 2nd 05 03:52 AM
How can I print out a list of statistical functions in Excel (I d. pegberger Excel Worksheet Functions 1 January 5th 05 10:12 PM


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

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

About Us

"It's about Microsoft Excel"