+ Reply to Thread
Results 1 to 4 of 4

Need formula to report median of last three numbers in a list that will change over time.

  1. #1
    Registered User
    Join Date
    11-20-2012
    Location
    North Carolina
    MS-Off Ver
    excel 2010
    Posts
    13

    Need formula to report median of last three numbers in a list that will change over time.

    Alright everyone. I need help writing a formula to give back the median for a set of numbers in a list. But the list will grow over time and need the formula to report back the new median each time. But I just need the median of the last three entries. So if the column data was 3, 4, 5. I want it to report back 4. but when I add a 6 in the next row I need it to report back 5 which would be the new median. attached is a sample of what the data will look like in the spreedsheet. Thanks so much
    Attached Files Attached Files

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,745

    Re: Need formula to report median of last three numbers in a list that will change over ti

    Try this formula

    =MEDIAN(OFFSET(B2,COUNT(B:B)-3,0,3))
    Audere est facere

  3. #3
    Valued Forum Contributor
    Join Date
    09-07-2006
    Posts
    520

    Re: Need formula to report median of last three numbers in a list that will change over ti

    One way
    In say C1: =MEDIAN(OFFSET(INDIRECT("A"&COUNT(A:A)+1),,1,-3))
    Above assumes that dates data starts in A2 down, and cell A1 is empty, as COUNT of the number of numbers in col A is used to determine last cell
    --------------------------------
    Any help? wave it, hit the little star at the bottom left of my response

  4. #4
    Registered User
    Join Date
    11-20-2012
    Location
    North Carolina
    MS-Off Ver
    excel 2010
    Posts
    13

    Re: Need formula to report median of last three numbers in a list that will change over ti

    Quote Originally Posted by daddylonglegs View Post
    Try this formula

    =MEDIAN(OFFSET(B2,COUNT(B:B)-3,0,3))
    I had to modify a bit for my actual form. But this hits the spot thank you so much!!!

+ 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. [SOLVED] Formula to get the median, but ignoring the duplicate numbers in the column
    By Rianne in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-16-2013, 03:23 AM
  2. VB Code to compare a single number to a list of numbers and report the row.
    By PhilUK in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-20-2011, 05:05 AM
  3. run-time error 1004: Cannot change this part of a PivotTable report
    By wburbage in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-23-2007, 10:55 AM
  4. Average & median of text "time" numbers
    By Max in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-17-2006, 07:20 AM
  5. How can I add a new summary function (Median) to a pivot report?
    By giemzik in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-02-2006, 01:30 PM

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