Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default Calculating Max, Min, Ave etc of a large region

I have the following task:
1900 1901 1902 out til 2005
Jan 1
Jan 2
Jan 3
down to Dec 31

I want to creat a table for the Max, Min, Ave High, etc. for each month of
each year.
For example:
1900 1901 1902 etc
Jan
Feb

Can I use some array formula that will be copiable that will save me making
up hundreds of formulas?

Thanks


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Calculating Max, Min, Ave etc of a large region

Jim

Assuming for data, dates (Jan 1 etc) as text in column A beginning at
row 3, and years in row 2 beginning at column B. For table, Jan, Feb
etc in column G beginning row 3, years in row 2 begining column H, use
the following. Expand/move to fit data as necessary.

=MAX((LEFT($A$3:$A$368,3)=$G3)*($B$2:$E$2=I$2)*$B$ 3:$E$368)

Enter as an array (CTRL+SHIFT+ENTER) and copy to remainder of table.

Regards

Murray

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Calculating Max, Min, Ave etc of a large region


Thanks for tyhe help. I have noticed that if a whole month is negative
the MAX array comes up with Zero. If I change the array to MIN, it only
works for the below Zero temps. From Mar thru Nov it comes up with Zeros
for the minimum temp. It this a flaw in Excel?


*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,339
Default Calculating Max, Min, Ave etc of a large region

Jim,
MAX and MIN work OK if you simply assign a range of data e.g
=MAX(a3:a32) but as you have found doesn't appear work with an array formula.
Perhaps a post to one of the gurus (Tom Ogilvy, Bob Philips et al) may get an
answer: no offence to Murray intended.

Just a thought: how are you handling leap years?

"postman Jim" wrote:


Thanks for tyhe help. I have noticed that if a whole month is negative
the MAX array comes up with Zero. If I change the array to MIN, it only
works for the below Zero temps. From Mar thru Nov it comes up with Zeros
for the minimum temp. It this a flaw in Excel?


*** Sent via Developersdex http://www.developersdex.com ***

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Calculating Max, Min, Ave etc of a large region

Curious! It clearly pays to take into account the location of your
correspendent. In Northern Australia we don't get negative temps :-).

Off the top of my head I don't know the answer to this one - hopefully
one of the real gurus will step in as I would like to know the answer
myself.

Presumably zero is also a valid value, so the formula must take into
account positives, negatives and zeroes as valid data.

Toppers - no offence taken - I didn't see the flaw in my cunning plan.

Regards

Murray



  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 29
Default Calculating Max, Min, Ave etc of a large region

Jim

It seems that the answer can be found on Chip Pearsons pages - try
he

http://www.cpearson.com/excel/lists.htm and look at the section dealing
with values in an interval.

Thus is you modify my original formula to look like this:

=MAX(IF(($B$3:$E$368=-1000)*($B$3:$E$368<=1000)*(LEFT($A$3:$A$368,3)=$G3 )*($B$2:$E$2=I$2),$B$3:$E$368,FALSE))

it should work OK. Note that the -1000 and 1000 are the LLim and ULim
described in Chip's formula - I have simply set them to what are
hopefully outrageous values.

Regards

Murray

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
Calculating hourly average from large data set ~~NRH~~ Excel Discussion (Misc queries) 2 December 1st 09 04:58 PM
Paste values all cells in a region which refers to out of region Vijay Excel Worksheet Functions 0 August 25th 09 06:03 AM
Calculating the number of unique values within a large range SiH23 Excel Worksheet Functions 4 November 2nd 08 06:24 PM
Calculating Median Value in a large array willcozz Excel Discussion (Misc queries) 5 December 11th 06 10:21 PM
Working with a large file, calculating after every little change brantty Setting up and Configuration of Excel 1 August 4th 05 02:01 PM


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