+ Reply to Thread
Results 1 to 9 of 9

Median on non contiguous cells excluding zero

  1. #1
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Median on non contiguous cells excluding zero

    Hello,

    I would like to compute the median based on non contiguous cells excluding zero (because i want to use a boolean to select cells I want to include in the median)

    A | D | F
    0 | 1 | 1
    1 | 2 | 3

    Something like MEDIAN(IF({A1;D1;F1}*{A2;D2;F2}<>0;{A2;D2;F2})) or MEDIAN(IF({A1*A2;D1*D2;F1*F2}<>0;{A2;D2;F2}))

    Could you please help me ?

    Many thanks

  2. #2
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2502
    Posts
    13,700

    Re: Median on non contiguous cells excluding zero

    Since we do not know if A, D, and F share something in common and distinct from B, C, and E try array entering this formula. It is pretty close to what you already have.

    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    Or this one you don't have to array enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Dave

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

    Re: Median on non contiguous cells excluding zero

    Administrative note
    Please update your profile as necessary to properly reflect the exact version(s) of Excel your question relates to. Members tailor answers based on your Excel version. Your profile does not indicate your version.
    Thanks

  4. #4
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: Median on non contiguous cells excluding zero

    Thank you Flame, to be clear, there are other things in columns B, C and E, that's why I cannot use any range like A1:F1.

    Figures and boolean are located in non contiguous cells.

    Thank you for your help

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,208

    Re: Median on non contiguous cells excluding zero

    As always, it would be so much easier if you provided a representative sample workbook ...
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  6. #6
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: Median on non contiguous cells excluding zero

    Here it is, I would like to create a kind of conditional median function on non contiguous cells with the boolan used as the condition

    Many thanks
    Attached Files Attached Files

  7. #7
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,706

    Re: Median on non contiguous cells excluding zero

    edit: below composed prior to sample being provided.

    so, perhaps, modifying earlier AGGREGATE suggestion to embed a CHOOSE

    =AGGREGATE(16,6,CHOOSE({1,2,3},A2/(A2<>0)/A1,D2/(D2<>0)/D1,F2/(F2<>0)/F1),0.5)

  8. #8
    Spammer
    Join Date
    06-09-2014
    Location
    https://t.me/pump_upp
    MS-Off Ver
    Microst Office 365 Plus
    Posts
    149

    Re: Median on non contiguous cells excluding zero

    Works perfectly, thanks a lot

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,208

    Re: Median on non contiguous cells excluding zero

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Median of a range (excluding 0s)
    By rosie2312 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-19-2019, 01:06 PM
  2. [SOLVED] Help with Median, of multiple tabs, excluding zero's
    By WardM90 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-14-2015, 04:50 AM
  3. Excluding Cells in Median function
    By TAM77 in forum Excel General
    Replies: 9
    Last Post: 11-09-2011, 01:42 PM
  4. Min value excluding 0 for non-contiguous cells
    By BRISBANEBOB in forum Excel General
    Replies: 9
    Last Post: 04-03-2009, 09:16 AM
  5. Median, excluding the value 0
    By Johnston81 in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 03-09-2009, 08:36 AM
  6. Median - Excluding Zeros in a Range
    By Skoal in forum Excel General
    Replies: 2
    Last Post: 08-03-2007, 01:58 PM
  7. median excluding 0's
    By maryj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2006, 12:10 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