+ Reply to Thread
Results 1 to 3 of 3

How to quickly apply a formula to a group of cells down a column

  1. #1
    Registered User
    Join Date
    09-02-2011
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    1

    How to quickly apply a formula to a group of cells down a column

    Hello,
    I have a long column of data that I'd like to calculate the 95th percentile for sets of data within that column (data is for every 5 minutes in a year, and I'd like to calculate the 95th percentile per hour). Is there a way to calculate the 95th percentile for every 12 rows, but do it quickly for the entire 105121 rows? Thus the result would be 1 cell for each of those percentile results, and all of these results in the same column? Hopefully I explained this clearly...

  2. #2
    Valued Forum Contributor ron2k_1's Avatar
    Join Date
    09-30-2009
    Location
    Not the USA
    MS-Off Ver
    Excel 2003, 2007
    Posts
    606

    Re: How to quickly apply a formula to a group of cells down a column

    Assuming that you already have your formula to calculate the 95th percentile, and you already have it on your first cell; all you need to do is to select the range of 12 cells (cell with the 95 percentile formula being on the 12th selected row), take your cursor to the 12th cell's bottom right corner and dragdown as needed. Eg. if your data starts on row 1, the percentile calculations are on Col C, Select C1:C12, and drag down as needed. Or Select C1:C12, Copy, select C1:C105121 and click paste.
    Ron
    Knowledge is knowing that a tomato and pepper are fruits. Wisdom is knowing whether to put these in a fruit salad

    Kindly

    [1] Use code tags. Place "[code]" before the first line of code and "[/code"]" after the last line of code. Exclude quotation marks
    [2] Mark your post [SOLVED] if it has been answered satisfactorily by editing your original post in advanced mode.
    [3] Thank (using the little scale) those that provided useful help; its nice and its very well appreciated

  3. #3
    Registered User
    Join Date
    09-02-2011
    Location
    Sheffield, England
    MS-Off Ver
    Excel 2010
    Posts
    10

    Re: How to quickly apply a formula to a group of cells down a column

    I'm assuming that your column with the data has a header here, since (12*24*365) + 1 = 105121, and that it is in Column A.

    In any other column, select the cell in the first row and type in

    Please Login or Register  to view this content.
    Then copy and paste this down to the 8,760th row (I think).


    In row 1, this creates the array A2:A13, and finds the 95% percentile of this range.
    In row 2, this creates the array A14:A25, and finds the 95% percentile of this range.

    and so on...

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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