#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 93
Default Median

Using XL 07, want to calculate median.
have worksheet of census data by zipcode that makes displays data within 25
miles of inputted zipcode. these may range from 20 to nearly 60 zipcodes.
one field is median hshld income.
once the zips w/in 25 are identified, a macro sorts the distances in
ascending order and places an "X" in the 25 mile column, several calcualtions
are made for summing or other math using <if (AK9=X, then....) and so forth

unable to determine how to calculate a median of median hshld incomes when
the number of included zips varies.

another view would be a macro: starting in row 9 and continue down and
perform median calc until AKxx no longer ="X", if that makes sense.
thanks
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,355
Default Median

Let's say your column with X's is B2:B100 and Household income is in C2:C100

=median(if(B2:B100="X",C2:C100))

Enter with CTRL SHIFT ENTER

HTH,
Barb Reinhardt

"reno" wrote:

Using XL 07, want to calculate median.
have worksheet of census data by zipcode that makes displays data within 25
miles of inputted zipcode. these may range from 20 to nearly 60 zipcodes.
one field is median hshld income.
once the zips w/in 25 are identified, a macro sorts the distances in
ascending order and places an "X" in the 25 mile column, several calcualtions
are made for summing or other math using <if (AK9=X, then....) and so forth

unable to determine how to calculate a median of median hshld incomes when
the number of included zips varies.

another view would be a macro: starting in row 9 and continue down and
perform median calc until AKxx no longer ="X", if that makes sense.
thanks

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 93
Default Median

Thx,
After several weeks of working on this to get it faster and more manageable,
I was just drawing a blank on how-to, yours is simple and elegant a real gem.
Thanks

"Barb Reinhardt" wrote:

Let's say your column with X's is B2:B100 and Household income is in C2:C100

=median(if(B2:B100="X",C2:C100))

Enter with CTRL SHIFT ENTER

HTH,
Barb Reinhardt

"reno" wrote:

Using XL 07, want to calculate median.
have worksheet of census data by zipcode that makes displays data within 25
miles of inputted zipcode. these may range from 20 to nearly 60 zipcodes.
one field is median hshld income.
once the zips w/in 25 are identified, a macro sorts the distances in
ascending order and places an "X" in the 25 mile column, several calcualtions
are made for summing or other math using <if (AK9=X, then....) and so forth

unable to determine how to calculate a median of median hshld incomes when
the number of included zips varies.

another view would be a macro: starting in row 9 and continue down and
perform median calc until AKxx no longer ="X", if that makes sense.
thanks

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 93
Default Median

Using the same scenario as described, if I wanted to calc the % in each
zipcode I keep getting circular reference. I want to total the household
within 25 miles, if distance<=25 and "X" goes in a column, then want to sum
all households with "X" and then calculate the % in each corresponding
zipcode.

any thoughts?

"Barb Reinhardt" wrote:

Let's say your column with X's is B2:B100 and Household income is in C2:C100

=median(if(B2:B100="X",C2:C100))

Enter with CTRL SHIFT ENTER

HTH,
Barb Reinhardt

"reno" wrote:

Using XL 07, want to calculate median.
have worksheet of census data by zipcode that makes displays data within 25
miles of inputted zipcode. these may range from 20 to nearly 60 zipcodes.
one field is median hshld income.
once the zips w/in 25 are identified, a macro sorts the distances in
ascending order and places an "X" in the 25 mile column, several calcualtions
are made for summing or other math using <if (AK9=X, then....) and so forth

unable to determine how to calculate a median of median hshld incomes when
the number of included zips varies.

another view would be a macro: starting in row 9 and continue down and
perform median calc until AKxx no longer ="X", if that makes sense.
thanks

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 Question [email protected] Excel Discussion (Misc queries) 4 July 9th 07 04:37 PM
Max/Min/Median gibsol Excel Worksheet Functions 3 February 28th 07 03:22 PM
median function flyingmeatball Excel Worksheet Functions 1 August 17th 06 05:58 PM
Conditional Median warburger Excel Worksheet Functions 2 March 12th 06 02:48 PM
Subtotal the median Terri Excel Worksheet Functions 1 January 26th 06 04:41 PM


All times are GMT +1. The time now is 07:58 AM.

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"