Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SCC SCC is offline
external usenet poster
 
Posts: 11
Default Need MAX value if condition is met

I have a spreadsheet that lists usage in our computer lab. From the data I
am able to get the average usage for each day using the averageif function
=AVERAGEIF(Adjusted!$B$3:$B$25,"Thu",Adjusted!$I$3 :$I$25). How can I get the
max value for each day. There is no maxif or 'if.. then' functions.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,722
Default Need MAX value if condition is met

=MAX(IF(Adjusted!$B$3:$B$25,"Thu",Adjusted!$I$3:$I $25))
Confirm formula as an array formula by using Ctrl+Shift+enter

I'm assuming the B column is your days, and I column is numbers. If not,
switch the arrays around.
--
Best Regards,

Luke M
*Remember to click "yes" if this post helped you!*


"SCC" wrote:

I have a spreadsheet that lists usage in our computer lab. From the data I
am able to get the average usage for each day using the averageif function
=AVERAGEIF(Adjusted!$B$3:$B$25,"Thu",Adjusted!$I$3 :$I$25). How can I get the
max value for each day. There is no maxif or 'if.. then' functions.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Need MAX value if condition is met

Try this array formula** :

=MX(IF(Adjusted!$B$3:$B$25="Thu",Adjusted!$I$3:$I$ 25))

** 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


"SCC" wrote in message
...
I have a spreadsheet that lists usage in our computer lab. From the data I
am able to get the average usage for each day using the averageif function
=AVERAGEIF(Adjusted!$B$3:$B$25,"Thu",Adjusted!$I$3 :$I$25). How can I get
the
max value for each day. There is no maxif or 'if.. then' functions.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
SCC SCC is offline
external usenet poster
 
Posts: 11
Default Need MAX value if condition is met

Thanks for the hint. It looks like this is the formula
{=MAX((Adjusted!$B$3:$B$132="Fri")*(Adjusted!$E$3: $E$132))}

"T. Valko" wrote:

Try this array formula** :

=MX(IF(Adjusted!$B$3:$B$25="Thu",Adjusted!$I$3:$I$ 25))

** 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


"SCC" wrote in message
...
I have a spreadsheet that lists usage in our computer lab. From the data I
am able to get the average usage for each day using the averageif function
=AVERAGEIF(Adjusted!$B$3:$B$25,"Thu",Adjusted!$I$3 :$I$25). How can I get
the
max value for each day. There is no maxif or 'if.. then' functions.




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Need MAX value if condition is met

That's another way to write it.

Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"SCC" wrote in message
...
Thanks for the hint. It looks like this is the formula
{=MAX((Adjusted!$B$3:$B$132="Fri")*(Adjusted!$E$3: $E$132))}

"T. Valko" wrote:

Try this array formula** :

=MX(IF(Adjusted!$B$3:$B$25="Thu",Adjusted!$I$3:$I$ 25))

** 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


"SCC" wrote in message
...
I have a spreadsheet that lists usage in our computer lab. From the
data I
am able to get the average usage for each day using the averageif
function
=AVERAGEIF(Adjusted!$B$3:$B$25,"Thu",Adjusted!$I$3 :$I$25). How can I
get
the
max value for each day. There is no maxif or 'if.. then' functions.






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
if condition Malik Nadeem Excel Discussion (Misc queries) 5 January 13th 09 08:55 AM
if condition Omar[_2_] Excel Discussion (Misc queries) 2 January 14th 08 09:57 AM
lookup with multiple condition, but one condition to satisfy is en Eddy Stan Excel Worksheet Functions 2 October 27th 07 02:06 PM
Combine an OR condition with an AND condition Will Excel Discussion (Misc queries) 1 April 6th 07 03:52 PM
Condition 1 overules condition 2? Bultgren Excel Worksheet Functions 2 January 20th 06 12:29 PM


All times are GMT +1. The time now is 06:51 AM.

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

About Us

"It's about Microsoft Excel"