+ Reply to Thread
Results 1 to 4 of 4

Average / SD values based on condition in adjacent cell

Hybrid View

  1. #1
    Registered User
    Join Date
    10-17-2003
    Posts
    13

    Average / SD values based on condition in adjacent cell

    Hello,
    I would like to determine the average value in a column based on a criteria in an adjacent cell. Example: There are 2 sets of materials used. I would like excel to calculate the average and standard deviation of all values from set one, then all values from set 2. I tried using a daverage function but the criteria (set 1) needs to be directly below the column title, therefore, I dont know how to include set 2. For some reason I cant attach excel file so Ill cut and paste below..
    Any help is greatly appreciated!!

    Set Time Condition 1 Condition 2 Condition 3
    1 6.00 1 6 7
    1 7.00 2 5 8
    2 2.00 3 4 9
    2 4.00 4 3 10
    2 6.00 5 2 11
    1 9.00 6 1 12

    Average Time for set 1
    Standard deviation time for set 1
    Average Time for set 2
    Standard deviation time for set 2
    Average Condition 1 for set 1
    etc…

  2. #2
    Forum Expert
    Join Date
    08-27-2008
    Location
    England
    MS-Off Ver
    2010
    Posts
    2,561

    Re: Average / SD values based on condition in adjacent cell

    I think a pivot table would be the best solution but you would need to upload an example for me to try.

    CC

  3. #3
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: Average / SD values based on condition in adjacent cell

    I would do like this... see example

    functions

    =STDEV(IF(I$3=$A$2:$A$7,OFFSET($A$2:$A$7,,MATCH($H3,$A$1:$E$1,0))))
    =AVERAGE(IF(I$3=$A$2:$A$7,OFFSET($A$2:$A$7,,MATCH($H3,$A$1:$E$1,0))))
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Registered User
    Join Date
    10-17-2003
    Posts
    13

    Re: Average / SD values based on condition in adjacent cell

    Thanks!!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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