#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default median if

I am trying to get the median of a column depending on a further 2 columns
and I have been trying the following:

=MEDIAN(IF('Incl 0 LOS ''09'!O4:O13427="SJH8",IF('Incl 0 LOS
''09'!P4:P13427="May",'Incl 0 LOS ''09'!E4:E13427)))

There are different numbers in column O, SJH1, SJH2 etc. Column P is a date
formatted as mmmm and Column E is random digits ranging from 0-49. All I get
is a return of 0 when I try and enter it. If I try and Ctrl,Shift & Return I
get NUM error. Please help.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
chg chg is offline
external usenet poster
 
Posts: 15
Default median if

Try this:

IF(Month(*where you wanna look*)=5, etc)

Did you by any chance want to do the formula like this: =if(and
(condition 1, conditon 2),do this if true,do this if false)
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default median if

Try finding the month #

=MEDIAN(IF('Incl 0 LOS ''09'!O4:O13427="SJH8",IF(MONTH('Incl 0 LOS ''09'!P4:P13427)=5,'Incl 0 LOS
''09'!E4:E13427)))

HTH,
Bernie
MS Excel MVP


"Irv1010" wrote in message
...
I am trying to get the median of a column depending on a further 2 columns
and I have been trying the following:

=MEDIAN(IF('Incl 0 LOS ''09'!O4:O13427="SJH8",IF('Incl 0 LOS
''09'!P4:P13427="May",'Incl 0 LOS ''09'!E4:E13427)))

There are different numbers in column O, SJH1, SJH2 etc. Column P is a date
formatted as mmmm and Column E is random digits ranging from 0-49. All I get
is a return of 0 when I try and enter it. If I try and Ctrl,Shift & Return I
get NUM error. Please help.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default median if

Very sorry but I'm still getting results of 0. If Iuse Array I get a #Ref
Error message

"Bernie Deitrick" wrote:

Try finding the month #

=MEDIAN(IF('Incl 0 LOS ''09'!O4:O13427="SJH8",IF(MONTH('Incl 0 LOS ''09'!P4:P13427)=5,'Incl 0 LOS
''09'!E4:E13427)))

HTH,
Bernie
MS Excel MVP


"Irv1010" wrote in message
...
I am trying to get the median of a column depending on a further 2 columns
and I have been trying the following:

=MEDIAN(IF('Incl 0 LOS ''09'!O4:O13427="SJH8",IF('Incl 0 LOS
''09'!P4:P13427="May",'Incl 0 LOS ''09'!E4:E13427)))

There are different numbers in column O, SJH1, SJH2 etc. Column P is a date
formatted as mmmm and Column E is random digits ranging from 0-49. All I get
is a return of 0 when I try and enter it. If I try and Ctrl,Shift & Return I
get NUM error. Please help.



.

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default median if

Irv,

You must have equal size ranges (same number of rows) and none of the comparisons can return errors.
Make sure that the line wrapping didn't include an extra space in your sheet name. Try renaming the
sheet - if the sheet names in the formula don't update, that is your error. Also, try the formula
without a sheet name, on a truncated range where you can control the entry easily, say

=MEDIAN(IF(O4:O7="SJH8",IF(MONTH(P4:P7)=5,E4:E7)))

entered using Ctrl-Shift-Enter.

HTH,
Bernie
MS Excel MVP


"Irv1010" wrote in message
...
Very sorry but I'm still getting results of 0. If Iuse Array I get a #Ref
Error message

"Bernie Deitrick" wrote:

Try finding the month #

=MEDIAN(IF('Incl 0 LOS ''09'!O4:O13427="SJH8",IF(MONTH('Incl 0 LOS ''09'!P4:P13427)=5,'Incl 0 LOS
''09'!E4:E13427)))

HTH,
Bernie
MS Excel MVP


"Irv1010" wrote in message
...
I am trying to get the median of a column depending on a further 2 columns
and I have been trying the following:

=MEDIAN(IF('Incl 0 LOS ''09'!O4:O13427="SJH8",IF('Incl 0 LOS
''09'!P4:P13427="May",'Incl 0 LOS ''09'!E4:E13427)))

There are different numbers in column O, SJH1, SJH2 etc. Column P is a date
formatted as mmmm and Column E is random digits ranging from 0-49. All I get
is a return of 0 when I try and enter it. If I try and Ctrl,Shift & Return I
get NUM error. Please help.



.





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
Median If Function allyrose79 Excel Worksheet Functions 3 November 16th 09 05:35 PM
Median reno Excel Discussion (Misc queries) 3 August 21st 07 08:12 PM
Max/Min/Median gibsol Excel Worksheet Functions 3 February 28th 07 03:22 PM
median excluding 0's maryj Excel Worksheet Functions 2 February 9th 06 03:59 PM
Subtotal the median Terri Excel Worksheet Functions 1 January 26th 06 04:41 PM


All times are GMT +1. The time now is 05:07 PM.

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

About Us

"It's about Microsoft Excel"