+ Reply to Thread
Results 1 to 2 of 2

calculate median on pivot table with data from multiple columns

  1. #1
    Registered User
    Join Date
    03-04-2019
    Location
    USA
    MS-Off Ver
    Microsoft 365 - V2308
    Posts
    33

    calculate median on pivot table with data from multiple columns

    I have the following data:

    I want to know the median for days from submission to PRD based on request types and the year. For example, the median for days from submission to PRD for the edit (and other types) in years 2016,2017,2018,2019, and so on in a pivot table.

    However, it seems pivot table does not have the median function. I was wondering if there is any workaround for this.

    so far, I was able to come up with this formula:

    {=MEDIAN(IF($D$2:$D$3650=D2,IF($B$2:$B$3650=B2,$E$2:$E$3650)))}

    but, it does not give me correct value. For example, I want media for the "EDIT" request type in year 2016, or median for amendment for year 2019, or median for all request types for all years.

    Thank you for your time.
    xx.png
    Last edited by Ninajigar; 10-03-2019 at 05:55 PM.

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,053

    Re: calculate median on pivot table with data from multiple columns

    1. What, exactly, do you mean by: " it does not give me correct value"?

    2.You have attached an image. That's not very easy to work with. Also... I'm lazy. I have to re-type your information before I can begin to address your problem. That puts me off completely.

    So.

    Do yourself a favour and please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough). PLEASE SHOW some manually calculated expected results. Also, please give us an indication of the approximate number of rows of data you want the solution to work with (100, 1000, 100,000 or whatever).

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.

    Make sure confidential info is removed first!!!!
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

+ 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. is it possible to calculate the median in the pivot table
    By seraphin in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-10-2019, 10:18 PM
  2. Replies: 21
    Last Post: 05-10-2018, 09:25 AM
  3. Replies: 2
    Last Post: 04-26-2017, 11:28 AM
  4. Replies: 4
    Last Post: 12-04-2014, 05:55 PM
  5. Find Median of Pivot Table Data
    By ThxInAdvance in forum Excel Charting & Pivots
    Replies: 0
    Last Post: 11-06-2014, 11:45 AM
  6. Calculate Median using Pivot
    By sarinky in forum Excel General
    Replies: 1
    Last Post: 03-13-2012, 06:51 AM
  7. [SOLVED] calculate a MEDIAN using multiple criteria?
    By MetricsShiva in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM

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