+ Reply to Thread
Results 1 to 7 of 7

time efficient methods for calculations based on different set of data

  1. #1
    Registered User
    Join Date
    05-27-2014
    Posts
    5

    time efficient methods for calculations based on different set of data

    hi guys,

    can anyone guide me on how to calculate averages and standard deviations based on different time periods without having to manually change the cells?

    example:
    1st average output at z3, 1st std dev output at z4
    data to calculate from c3:c50

    2nd average output at z5, 2nd std dev output at z6
    data to calculate from c51:c98

    3rd average output at z7, 3rd std dev output at z8
    data to calculate from c99:c148

    and it goes on based on this sequence. i would like to know how to do this without having to change the cells each time i want to calculate. basically what is the quickest way to calculate following this sequence?

    regards,
    ryann

  2. #2
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: time efficient methods for calculations based on different set of data

    In Z3
    =AVERAGE(INDEX(C:C,(CEILING(ROW(A1)/2,1)-1)*48+3):INDEX(C:C,(CEILING(ROW(A1)/2,1)-1)*48+50))

    In Z4
    =STDEV(INDEX(C:C,(CEILING(ROW(A1)/2,1)-1)*48+3):INDEX(C:C,(CEILING(ROW(A1)/2,1)-1)*48+50))

    Copy both cells...paste down as far as you need

    PS: Shouldn't 3rd range be C99:C146
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  3. #3
    Forum Contributor
    Join Date
    11-26-2013
    Location
    Belgium
    MS-Off Ver
    Excel 2010
    Posts
    116

    Re: time efficient methods for calculations based on different set of data

    Hi,

    2 questions:

    1. Could you use helper columns?

    2. Your sequence isn't constant. (50 -> 98 is 48 and 98 -> 148 is 50; whereas 3 -> 51 -> 99 is always 48) Can you clarify?

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: time efficient methods for calculations based on different set of data

    Z4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Z5:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    select both cells and copy down

    PS. as you use each of the formulas every second row, row()-starting row is multiplied by half of range length - not 48 rows but 24. (I assumend constant length of 48)
    Best Regards,

    Kaper

  5. #5
    Registered User
    Join Date
    05-27-2014
    Posts
    5

    Re: time efficient methods for calculations based on different set of data

    yes ace_XL thanks for noting that error, it should be c99:146

    also thanks guys i'll try the methods and will update u all

  6. #6
    Registered User
    Join Date
    05-27-2014
    Posts
    5

    Re: time efficient methods for calculations based on different set of data

    Thanks guys, it worked. However, I still don't understand the implications of the functions used.

    1. Could any of you explain the difference between ace_XL vs Kaper's methods?
    2. For each method what does the formula provided mean (functions, range, all calculations)?

    Thanks.

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,623

    Re: time efficient methods for calculations based on different set of data

    1. different way to supply to average or stdev proper range
    2. average and stdev - statistical functions to calcuklate what you need from range defined with offset.
    OFFSET - see: http://support.microsoft.com/kb/324991
    ROW() just number of row the formula is in. so if you want to have results in Z3 and Z4 and down, czhange in respective finctions 4 and 5 to 3 and 4.

+ 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. calculations based on filtered data
    By reltihmd in forum Excel General
    Replies: 2
    Last Post: 10-26-2012, 04:31 PM
  2. Help with more efficient formatting and calculations
    By Cook1970 in forum Excel General
    Replies: 2
    Last Post: 06-21-2011, 01:40 PM
  3. Date/Time picker methods
    By Jag108 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-22-2005, 11:05 PM
  4. Excel VBA macros and real time data calculations
    By [email protected] in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-07-2005, 12:05 PM
  5. Date/time range based calculations
    By jim314 in forum Excel General
    Replies: 1
    Last Post: 04-28-2005, 03:06 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