#1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 6
Default using dmax

I want to find the max temperature for each day of the year over 10 years
worth of data. I can do it by using a criteria where the first in the range
of the criteria is the label ("Date" in this case) and under that cell is the
date I want to look up (eg "Jan,3"). But it seems like I need to have 2
cells per day of the year in order to specify each day. That is, it looks
like I have to do it this way:

A B
1 Date
2 ="Jan,1" =dmax(H100:I465,2,A1:A2)
3 Date
4 ="Jan,2" =dmax(H100:I465,2,A3:A3)
5 Date
6 ="Jan,3" =dmax(H100:I465,2,A5:A6)

etc

Isn't there an easier way?

Thanks

Doug
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 464
Default using dmax

Consider a PivotTable;
http://www.ozgrid.com/Excel/excel-pivot-tables.htm



--
Regards
Dave Hawley
www.ozgrid.com
"dbasmb" wrote in message
...
I want to find the max temperature for each day of the year over 10 years
worth of data. I can do it by using a criteria where the first in the
range
of the criteria is the label ("Date" in this case) and under that cell is
the
date I want to look up (eg "Jan,3"). But it seems like I need to have 2
cells per day of the year in order to specify each day. That is, it
looks
like I have to do it this way:

A B
1 Date
2 ="Jan,1" =dmax(H100:I465,2,A1:A2)
3 Date
4 ="Jan,2" =dmax(H100:I465,2,A3:A3)
5 Date
6 ="Jan,3" =dmax(H100:I465,2,A5:A6)

etc

Isn't there an easier way?

Thanks

Doug


  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 35,218
Default using dmax

Maybe you could use an array formula like:

=MAX(IF($H$100:$H$465=A1,$I$100:$I$465))

This assumes that the values (not just the formats!) are the same for H100:H465
and A1. This means that if you really wanted the max value for the Jan 1 (of
any year), you'd have to change the formula:

=MAX(IF(text($H$100:$H$465,"mmdd")=text(A1,"mmdd") ,$I$100:$I$465))

(and make sure that both H100:H465 and A1 contain real dates.)

These are both array formulas. Hit ctrl-shift-enter instead of enter. If you
do it correctly, excel will wrap curly brackets {} around your formula. (don't
type them yourself.)

Adjust the range to match--but you can only use the whole column in xl2007.

dbasmb wrote:

I want to find the max temperature for each day of the year over 10 years
worth of data. I can do it by using a criteria where the first in the range
of the criteria is the label ("Date" in this case) and under that cell is the
date I want to look up (eg "Jan,3"). But it seems like I need to have 2
cells per day of the year in order to specify each day. That is, it looks
like I have to do it this way:

A B
1 Date
2 ="Jan,1" =dmax(H100:I465,2,A1:A2)
3 Date
4 ="Jan,2" =dmax(H100:I465,2,A3:A3)
5 Date
6 ="Jan,3" =dmax(H100:I465,2,A5:A6)

etc

Isn't there an easier way?

Thanks

Doug


--

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
DMax with No Criteria Paul Kraemer Excel Worksheet Functions 2 February 5th 10 10:37 PM
Dmax formula Angie G.[_2_] Excel Worksheet Functions 2 August 20th 09 01:04 AM
DMAX taken to the max Gus[_2_] Excel Worksheet Functions 3 May 14th 07 02:01 PM
How do I DMAX only part of a column? Stu Leslie Excel Worksheet Functions 2 September 7th 06 12:19 PM
DMAX criteria joeeng Excel Worksheet Functions 2 August 9th 05 02:09 PM


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