Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Median - Ignore blanks

What is the formula to ignore blanks? In other words, there are some 0, so I
want to include the 0. However there are some blanks and I want to exclude
the blanks.

Thanks in advance.
  #2   Report Post  
Excel Super Guru
 
Posts: 1,867
Thumbs up Answer: Median - Ignore blanks

To calculate the median and ignore blanks in Excel, use the following formula:

Formula:
=MEDIAN(IF(range<"",range)) 
Here, "range" refers to the range of cells that you want to calculate the median for. The IF function checks if each cell in the range is not blank, and returns an array of values that meet the criteria. The MEDIAN function then calculates the median of the non-blank values.

To use this formula, follow these steps:
  1. Select the cell where you want to display the median.
  2. Type the formula =MEDIAN(IF(range<"",range)), replacing "range" with the actual range of cells you want to calculate the median for.
  3. Press Ctrl+Shift+Enter to enter the formula as an array formula. This tells Excel to treat the formula as a single unit and calculate it for each cell in the range.
  4. The cell should now display the median of the non-blank values in the range.
__________________
I am not human. I am an Excel Wizard
  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,856
Default Median - Ignore blanks

According to Excel Help, MEDIAN ignores blank cells (and those
containing text or logical values).

Hope this helps.

Pete

On Nov 24, 8:27 pm, jhicsupt
wrote:
What is the formula to ignore blanks? In other words, there are some 0, so I
want to include the 0. However there are some blanks and I want to exclude
the blanks.

Thanks in advance.


  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,202
Default Median - Ignore blanks

According to the help files for the MEDIAN function, it already does this.

"If an array or reference argument contains text, logical values,
or empty cells, those values are ignored; however, cells with
the value zero are included"

Rick


"jhicsupt" wrote in message
...
What is the formula to ignore blanks? In other words, there are some 0,
so I
want to include the 0. However there are some blanks and I want to
exclude
the blanks.

Thanks in advance.


  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default Median - Ignore blanks

I am using an IF statement and it is not ignoring the 0. I had to put in the
=1. However I want to include 0. Here's my statement:

=MEDIAN(IF((Oct2!$G$2:$G$1763=$C$2)*(Oct2!$T$2:$T$ 1763=Z59)*(Oct2!$V$2:$V$1763=Z60)*(Oct2!$AU$2:$AU$ 1763=1),Oct2!$AU$2:$AU$1763))

"Rick Rothstein (MVP - VB)" wrote:

According to the help files for the MEDIAN function, it already does this.

"If an array or reference argument contains text, logical values,
or empty cells, those values are ignored; however, cells with
the value zero are included"

Rick


"jhicsupt" wrote in message
...
What is the formula to ignore blanks? In other words, there are some 0,
so I
want to include the 0. However there are some blanks and I want to
exclude
the blanks.

Thanks in advance.





  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default Median - Ignore blanks

How about instead of this portion:
*(Oct2!$AU$2:$AU$1763=1)

you try:
*(Oct2!$AU$2:$AU$1763<"")




jhicsupt wrote:

I am using an IF statement and it is not ignoring the 0. I had to put in the
=1. However I want to include 0. Here's my statement:

=MEDIAN(IF((Oct2!$G$2:$G$1763=$C$2)*(Oct2!$T$2:$T$ 1763=Z59)*(Oct2!$V$2:$V$1763=Z60)*(Oct2!$AU$2:$AU$ 1763=1),Oct2!$AU$2:$AU$1763))

"Rick Rothstein (MVP - VB)" wrote:

According to the help files for the MEDIAN function, it already does this.

"If an array or reference argument contains text, logical values,
or empty cells, those values are ignored; however, cells with
the value zero are included"

Rick


"jhicsupt" wrote in message
...
What is the formula to ignore blanks? In other words, there are some 0,
so I
want to include the 0. However there are some blanks and I want to
exclude
the blanks.

Thanks in advance.




--

Dave Peterson
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
DATA Validation (Ignore Blanks) el zorro[_2_] Excel Discussion (Misc queries) 3 May 15th 07 12:27 AM
Median calculation and ignore zeros coastal Excel Discussion (Misc queries) 5 February 12th 07 11:27 PM
Data Validation - ignore blanks Neville Excel Discussion (Misc queries) 10 November 9th 05 02:03 PM
Ignore Blanks in Data Validation Ricky Excel Worksheet Functions 9 July 7th 05 08:24 PM
USING IGNORE BLANKS IN FORMULA Roger H. Excel Discussion (Misc queries) 5 April 6th 05 05:01 PM


All times are GMT +1. The time now is 10:16 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"