+ Reply to Thread
Results 1 to 8 of 8

Formula that uses results of multiple arrays to get to one answer

  1. #1
    Forum Contributor
    Join Date
    09-29-2011
    Location
    Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    107

    Formula that uses results of multiple arrays to get to one answer

    Hi,

    I have attached a spreadsheet. The logic is as follows:

    I calculate Mean using Averageif and SD using an array formula (since there is no Stddev-if)

    Base on these I calculate Z

    I then Absolute Z and find an average which is highlighted in yellow.

    Is it possible to have the data in columns A and B and arrive at the single value highlighted without having to go through all the steps ie One formula to calculate all my intermediate steps?

    Any help would be great! I'm sure there is a way to do it in a macro but I'm looking for a single formula.

    Thanks a million
    Attached Files Attached Files
    Last edited by concatch; 10-23-2013 at 08:18 AM.

  2. #2
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Formula that uses results of multiple arrays to get to one answer

    Hi,

    Well, you can just substitute each of your calculation steps into one (array) formula:

    =AVERAGE(ABS((B3:B5-(AVERAGEIF($A$3:$B$7,D3,$B$3:$B$7)))/STDEV(IF($A$3:$A$7=D3,IF($B$3:$B$7<>"",$B$3:$B$7)))))

    Regards
    Click * below if this answer helped

    Advanced Excel Techniques: http://excelxor.com/

  3. #3
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Formula that uses results of multiple arrays to get to one answer

    hi concatch. not sure if there's a ready-made statistical formula since i'm not familiar with that. but combining your formulas, another alternative is:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  4. #4
    Forum Contributor
    Join Date
    09-29-2011
    Location
    Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    107

    Re: Formula that uses results of multiple arrays to get to one answer

    Thanks for the help, however both your solutions yield different results to each other and to my solution. Is there any way you could download the workbook provided and then upload your solution?

  5. #5
    Forum Contributor
    Join Date
    09-29-2011
    Location
    Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    107

    Re: Formula that uses results of multiple arrays to get to one answer

    I've managed to get to the value in H3 using =STANDARDIZE(B3,AVERAGEIF($A$3:$B$7,D3,$B$3:$B$7),STDEV(IF($A$3:$A$7=D3,IF($B$3:$B$7<>"",$B$3:$B$7)))) but as an array Ctrl+Shift+Enter

    Maybe this will assist....

  6. #6
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Formula that uses results of multiple arrays to get to one answer

    The formula I gave you gives precisely the same result (0.734793113699706) as that in cell I9 of your attachment.

    Regards

  7. #7
    Forum Contributor
    Join Date
    09-29-2011
    Location
    Cape Town
    MS-Off Ver
    Excel 2010
    Posts
    107

    Re: Formula that uses results of multiple arrays to get to one answer

    XOR LX, you're right it does. Not sure why I was getting a different answer, perhaps I didn't enter it as an array. Thank you very much.

  8. #8
    Forum Expert XOR LX's Avatar
    Join Date
    04-18-2013
    Location
    Turin, Italy
    MS-Off Ver
    Office 365
    Posts
    7,742

    Re: Formula that uses results of multiple arrays to get to one answer

    You're welcome. Thanks for the feedback.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Refresh multiple Formula Arrays in Worksheet without Control-Shift-Enter on each
    By mondorock in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-16-2014, 06:24 AM
  2. Multiple criteria arrays in countifs function resulting in incorrect answer
    By laurenmoney in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 02-28-2013, 12:57 PM
  3. A formula that sums & indexes multiple arrays based on identifier?
    By Rakib79 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-31-2012, 02:07 PM
  4. Apply a formula on multiple arrays
    By shamrookh in forum Excel General
    Replies: 1
    Last Post: 07-16-2010, 12:03 PM
  5. Look up 2 different arrays and returns results
    By nickcartwrightf in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2010, 05:38 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1