#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default Medians of data

Hi

Please can anyone let me know what the formula would be to let me know the
median of a range of numbers depending on the types - ie

Type Number
Distribution 1
Distribution 1
Distribution 2
Distribution 2
Distribution 3
Distribution 4
Distribution 5
Marketing 1
Marketing 2
Marketing 3
Marketing 3
Marketing 4
Sales 1
Sales 2
Sales 2
Sales 2
Sales 2
Sales 3
Sales 4
Vending 2
Vending 2
Vending 3
Vending 3
Vending 3
Vending 5

What I need to do - as my data is rather more than the example and will not
be sorted as above - is show the median for Sales & Distribution would be 2
and Vending & Manufacturing 3.

Please advise and thanks for your time

Pen
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Medians of data

show the median for Sales & Distribution would be 2

Do you mean the median of the *combined values* for Sales & Distribution or
do you mean the separate median for Sales and the separate median for
Distribution?

For the *separate* medians.

All formulas are rray entered** :

=MEDIAN(IF(A2:A26="Sales",B2:B26))
=MEDIAN(IF(A2:A26="Distribution",B2:B26))

For the *combined values* median:

=MEDIAN(IF(ISNUMBER(MATCH(A2:A26,{"Sales","Distrib ution"},0)),B2:B26))

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER). Hold down both the CTRL key and the SHIFT
key then hit ENTER.

--
Biff
Microsoft Excel MVP


"Pendelfin" wrote in message
...
Hi

Please can anyone let me know what the formula would be to let me know the
median of a range of numbers depending on the types - ie

Type Number
Distribution 1
Distribution 1
Distribution 2
Distribution 2
Distribution 3
Distribution 4
Distribution 5
Marketing 1
Marketing 2
Marketing 3
Marketing 3
Marketing 4
Sales 1
Sales 2
Sales 2
Sales 2
Sales 2
Sales 3
Sales 4
Vending 2
Vending 2
Vending 3
Vending 3
Vending 3
Vending 5

What I need to do - as my data is rather more than the example and will
not
be sorted as above - is show the median for Sales & Distribution would be
2
and Vending & Manufacturing 3.

Please advise and thanks for your time

Pen



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default Medians of data

Maybe

=MEDIAN(IF((A1:A25="Sales"),(A1:A25="Distribution" ),B1:B25))

This is an array formula which must be entered with CTRL+Shift+Enter and NOT
'just enter. If you do it correctly then Excel will put curly brackets around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

Mike

"Pendelfin" wrote:

Hi

Please can anyone let me know what the formula would be to let me know the
median of a range of numbers depending on the types - ie

Type Number
Distribution 1
Distribution 1
Distribution 2
Distribution 2
Distribution 3
Distribution 4
Distribution 5
Marketing 1
Marketing 2
Marketing 3
Marketing 3
Marketing 4
Sales 1
Sales 2
Sales 2
Sales 2
Sales 2
Sales 3
Sales 4
Vending 2
Vending 2
Vending 3
Vending 3
Vending 3
Vending 5

What I need to do - as my data is rather more than the example and will not
be sorted as above - is show the median for Sales & Distribution would be 2
and Vending & Manufacturing 3.

Please advise and thanks for your time

Pen

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Medians of data

=MEDIAN(IF((A1:A25="Sales"),(A1:A25="Distribution "),B1:B25))

That returns an incorrect result. It'll work this way.

Array entered:

=MEDIAN(IF((A2:A26="Sales")+(A2:A26="Distribution" ),B2:B26))


--
Biff
Microsoft Excel MVP


"Mike H" wrote in message
...
Maybe

=MEDIAN(IF((A1:A25="Sales"),(A1:A25="Distribution" ),B1:B25))

This is an array formula which must be entered with CTRL+Shift+Enter and
NOT
'just enter. If you do it correctly then Excel will put curly brackets
around
'the formula{}. You can't type these yourself. If you Edit the ranges
'then you must re-enter as An array

Mike

"Pendelfin" wrote:

Hi

Please can anyone let me know what the formula would be to let me know
the
median of a range of numbers depending on the types - ie

Type Number
Distribution 1
Distribution 1
Distribution 2
Distribution 2
Distribution 3
Distribution 4
Distribution 5
Marketing 1
Marketing 2
Marketing 3
Marketing 3
Marketing 4
Sales 1
Sales 2
Sales 2
Sales 2
Sales 2
Sales 3
Sales 4
Vending 2
Vending 2
Vending 3
Vending 3
Vending 3
Vending 5

What I need to do - as my data is rather more than the example and will
not
be sorted as above - is show the median for Sales & Distribution would be
2
and Vending & Manufacturing 3.

Please advise and thanks for your time

Pen



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
Increase Your Business By Data Conversion, Data Format and Data EntryServices in India Data Entry India Excel Worksheet Functions 1 March 31st 08 12:51 PM
Data Entry Online, Data Format, Data Conversion and Data EntryServices through Data Entry Outsourcing [email protected] Excel Discussion (Misc queries) 0 March 20th 08 12:45 PM
how do I creat a table of medians based on a second field? Hawaiiantom Excel Worksheet Functions 2 December 29th 07 04:24 PM
putting range bars (MIN AND MAX) on a bar chart of medians shellie Charts and Charting in Excel 1 November 21st 06 03:33 PM
Pivot Table: Need Medians instead of means sigismundo Excel Discussion (Misc queries) 1 December 3rd 04 08:12 AM


All times are GMT +1. The time now is 12:36 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"