+ Reply to Thread
Results 1 to 5 of 5

How to ue offset function with average function

  1. #1
    Registered User
    Join Date
    11-04-2014
    Location
    Michigan
    MS-Off Ver
    2011
    Posts
    4

    Thumbs up How to ue offset function with average function

    Hello experts,

    Many thanks in advance for your helps with number of questions I have on my data(every treatment has 15 replicates). Here is how my data looks like.

    data.png

    Could I get cormula for each of my questions below?

    - I want to have G in 3rd column if Raw data(2nd column) is greater than average-1.5*std or smaller than average+1.5*std. B if not.
    - I want to have Raw data in 4th column(Filtered data) if 3rd column is G.
    - I want to have averaged data in 5th column(Averaged filtered data) with Filtered data for every 5 rows.

  2. #2
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: How to ue offset function with average function

    Please attach a workbook. Nobody will want to manually type in all the data you show in your attached image.

    To attach a file, first make sure to remove any sensitive/proprietary data and then click on “GO ADVANCED” and then scroll down to “Manage Attachments” to open the upload window. Choose your file then click on “Upload”, scroll down then click on “Close this window”, then “Submit reply”.

    Also here are some questions:

    1)
    "every treatment has 15 replicates".
    I count 15 rows of "cont" but 18 rows of "trt1". What do you mean by 15 replicates?

    2)
    "if Raw data(2nd column) is greater than average-1.5*std".
    What is "std" - standard deviation?? What are you averaging? - the raw data in all of the "cont" rows?

    3) "
    want to have Raw data in 4th column(Filtered data) if 3rd column is G"
    . Rows 7 and 15 in your example don't seem to comply with this rule?

  3. #3
    Registered User
    Join Date
    11-04-2014
    Location
    Michigan
    MS-Off Ver
    2011
    Posts
    4

    Re: How to ue offset function with average function

    Sorry for any mistake and thanks for the reply. To answer your questions,

    - That’s my mistake. Trt should have had 15 rows as well.
    - Yes. I meant standard deviation. I want to average 15 replicates.
    - I made another mistake while making an example dataset.

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: How to ue offset function with average function

    Please add a workbook as requested (not a picture). Thanks

  5. #5
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: How to ue offset function with average function

    OK, As I had begun looking at this anyway, I did the typing.

    Reference the following picture when reading the following description:

    treatment.png

    I need one helper column F for the averaged raw data for each treatment and a second helper column G for the standard deviation of the raw date for each treatment.

    Average in column-F is calculated as follows in F2 and copied down
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Standard deviation is calculated in column-G As there is no StddevIF formula I use row numbers to determine the correct range of cells to use for the stddev. This works only because each treatment is always exactly 15 rows long. TitleRows is a named cell K1 set to 1, because I wanted to make this easy to change as I don't know the OP's desired layout.

    In G2 and copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Column-C gets "G" if the raw data is within 1.5 standard deviations from the average, "B" otherwise. In C2 and copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Column-D simply gets only the data that is within 1.5 standard deviations from the average. In D2 and copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Column-E provides an average of the data that is within 1.5 standard deviations from the average for each set of five rows. Again, row numbers are used to determine where this column should be blank and where an average should be displayed. In E2 and copied down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    That's it! See the attached workbook
    Attached Files Attached Files

+ 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. Replies: 3
    Last Post: 08-14-2017, 06:26 AM
  2. Replies: 1
    Last Post: 06-10-2015, 12:56 PM
  3. [SOLVED] Using Offset function as the array in the PercentRank function is giving wrong result
    By Bobneil in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 08-06-2013, 09:29 PM
  4. Average - offset function
    By oman in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-13-2013, 01:14 PM
  5. Replies: 0
    Last Post: 01-19-2013, 01:35 PM
  6. Average/Offset Function
    By kmprocto in forum Excel General
    Replies: 2
    Last Post: 12-20-2011, 01:05 PM
  7. Average/Offset Function...Please help!
    By kmprocto in forum Excel General
    Replies: 3
    Last Post: 12-19-2011, 02:47 PM

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