A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Max Value - based on a time period



 
 
Thread Tools Display Modes
  #1  
Old June 22nd, 2009, 02:19 PM posted to microsoft.public.excel.worksheet.functions
Chris26
external usenet poster
 
Posts: 17
Default Max Value - based on a time period

Hi

I have a number of data vaules (Col-B) per day for a number of years. Is
there a formula that I could use to extract the MAX value of Col-B for say,
Year 2000, 2001, 2002 etc. I have a number of series of data, and each series
has approx 10,000 lines of data hence be easier if use formula.
The frequency of the data values, varies, there could be 10 on one day, 5
the next etc.
I have previously used SUMPRODUCT to get the sumation of similar data but
how do I get the MAX value. Any ideas?

The Data is as follows.

Col-A Col-B

01/01/2000 09:10:18 0.005
01/01/2000 14:22:08 0.008
01/01/2000 23:14:28 0.004

02/01/2000 03:08:36 0.011
02/01/2000 11:10:40 0.018

31/12/2008 09:10:18 0.009


Many Thanks
Chris
  #2  
Old June 22nd, 2009, 02:30 PM posted to microsoft.public.excel.worksheet.functions
Jacob Skaria
external usenet poster
 
Posts: 5,952
Default Max Value - based on a time period

Try the below. Please note that this is an array formula. Within the cell in
edit mode (F2) paste this formula and press Ctrl+Shift+Enter to apply this
formula. If successful in 'Formula Bar' you can notice the curly braces at
both ends like "{=formula}"

=MAX(IF(TEXT(A2:A100,"yyyy")="2009",B2:B100))

If this post helps click Yes
---------------
Jacob Skaria


"Chris26" wrote:

Hi

I have a number of data vaules (Col-B) per day for a number of years. Is
there a formula that I could use to extract the MAX value of Col-B for say,
Year 2000, 2001, 2002 etc. I have a number of series of data, and each series
has approx 10,000 lines of data hence be easier if use formula.
The frequency of the data values, varies, there could be 10 on one day, 5
the next etc.
I have previously used SUMPRODUCT to get the sumation of similar data but
how do I get the MAX value. Any ideas?

The Data is as follows.

Col-A Col-B

01/01/2000 09:10:18 0.005
01/01/2000 14:22:08 0.008
01/01/2000 23:14:28 0.004

02/01/2000 03:08:36 0.011
02/01/2000 11:10:40 0.018

31/12/2008 09:10:18 0.009


Many Thanks
Chris

  #3  
Old June 22nd, 2009, 03:42 PM posted to microsoft.public.excel.worksheet.functions
Chris26
external usenet poster
 
Posts: 17
Default Max Value - based on a time period

This worked fine, many thanks
Chris

"Jacob Skaria" wrote:

Try the below. Please note that this is an array formula. Within the cell in
edit mode (F2) paste this formula and press Ctrl+Shift+Enter to apply this
formula. If successful in 'Formula Bar' you can notice the curly braces at
both ends like "{=formula}"

=MAX(IF(TEXT(A2:A100,"yyyy")="2009",B2:B100))

If this post helps click Yes
---------------
Jacob Skaria


"Chris26" wrote:

Hi

I have a number of data vaules (Col-B) per day for a number of years. Is
there a formula that I could use to extract the MAX value of Col-B for say,
Year 2000, 2001, 2002 etc. I have a number of series of data, and each series
has approx 10,000 lines of data hence be easier if use formula.
The frequency of the data values, varies, there could be 10 on one day, 5
the next etc.
I have previously used SUMPRODUCT to get the sumation of similar data but
how do I get the MAX value. Any ideas?

The Data is as follows.

Col-A Col-B

01/01/2000 09:10:18 0.005
01/01/2000 14:22:08 0.008
01/01/2000 23:14:28 0.004

02/01/2000 03:08:36 0.011
02/01/2000 11:10:40 0.018

31/12/2008 09:10:18 0.009


Many Thanks
Chris

  #4  
Old June 22nd, 2009, 03:53 PM posted to microsoft.public.excel.worksheet.functions
joeu2004
external usenet poster
 
Posts: 1,748
Default Max Value - based on a time period

"Chris26" wrote:
I have a number of data vaules (Col-B) per day for a number of years. Is
there a formula that I could use to extract the MAX value of Col-B for
say,
Year 2000, 2001, 2002 etc.


If you simply want the max of column B for a specified year in column A, try
the following array formula (commit with ctrl-shift-Enter, not just Enter):

=max(if(year($A$1:$A$10000)=C1,$B$1:$B$10000))

where C1 contains the year. I have purposely mixed absolute and relative
references so that you can copy the formula down a column parallel to, say,
C1:C9 that contains the years 2000 through 2009.


However....

The frequency of the data values, varies, there could be 10 on one day,
5 the next etc.


I do not understand the relevancy of that comment. If you are saying that
you want the sum of all instances of the max value in a specified year, try
the following array formula (again, commit with ctrl-shift-Enter, not just
Enter):

=sumproduct((year($A$1:$A$10000)=C1)*($B$1:$B$1000 0=max(if(year($A$1:$A$10000)=C1,$B$1:$B$10000))),$ B$1:$B$10000)


----- original message -----

"Chris26" wrote in message
...
Hi

I have a number of data vaules (Col-B) per day for a number of years. Is
there a formula that I could use to extract the MAX value of Col-B for
say,
Year 2000, 2001, 2002 etc. I have a number of series of data, and each
series
has approx 10,000 lines of data hence be easier if use formula.
The frequency of the data values, varies, there could be 10 on one day, 5
the next etc.
I have previously used SUMPRODUCT to get the sumation of similar data but
how do I get the MAX value. Any ideas?

The Data is as follows.

Col-A Col-B

01/01/2000 09:10:18 0.005
01/01/2000 14:22:08 0.008
01/01/2000 23:14:28 0.004

02/01/2000 03:08:36 0.011
02/01/2000 11:10:40 0.018

31/12/2008 09:10:18 0.009


Many Thanks
Chris


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 05:54 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.