LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default MAX AVERAGE MIN with additional criteria, ignoring blank cells

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Struggling in Sheffield"
wrote in message ...
Well done Biff, don't know what's happening and you still come up trumps!
Top
man.

Formula works fine for MAX AVERAGE & MIN of a column of numbers but only
using certain entries (depending on entries in other adjacent columns) and
ignoring blank cells.

Cheers.
Steve,

"T. Valko" wrote:

...if(and(K3:K1002<0,K3:K1002<"")...


Can't use AND for array comparisons like that. AND returns a scalar where
you need an array. You'd need to write it like this:


=IF(K1019="","",MAX(IF(G3:G1002=H3:H1002,IF(K3:K10 02<0,IF(K3:K1002<"",K3:K1002)))))All
the nested IFs are essentially like saying "and":IF G3:G1002=H3:H1002
*and* K3:K1002<0 *and* K3:K1002<""...Whether or not that solves the
problem, I'm not sure I understand what isbeing asked so that's all I
got!--BiffMicrosoft Excel MVP"Fred Smith" wrote in
... Eduardo probably
meant to
say:=IF(K1019="","",MAX(IF($G$3:$G$1002=$H$3:$H$1 002,if(and(K3:K1002<0,K3:K1002<""),K3:K1002))))
Regards, Fred "Struggling in
soft.com wrote in
... Hi
Eduardo, Tried the formula but am getting an error report:
=IF(K1019="","",MAX(IF($G$3:$G$1002=$H$3:$H$1002,i f(and(K3:K1002<0,
K3:K1002"" ),K3:K1002)))) K3:K1002"" is flagging up as invalid in
the AND function. "Eduardo" wrote: Hi,

Enter as an array
formula=IF(K1019="","",MAX(IF($G$3:$G$1002=$ H$3:$H$1002,if(and(K3:K1002<0,K3:K1002""),K3:K100 2))))
"Struggling in Sheffield" wrote: Hi all, After some recent
help from the forum I'm successfully using thefollowing array
formulas to calculate the MAX values in several columns ofcells. The
values used to calculate the MAX depend on other numerical valueslocated
in adjacent columns:
{=IF(K1019="","",MAX(IF($G$3:$G$1002=$H$3:$H$1002, K3:K1002)))}
{=IF(P1019="","",MAX(IF($E$3:$E$1002=$F$3:$F$1002 ,IF($G$3:$G$1002=$H$3:$H$1002,P3:P1002))))}

{=IF(U1019="","",MAX(IF($G$3:$G$1002=0,IF($H$3:$H$ 1002=0,U3:U1002))))}

{=IF(AL1019="","",MAX(IF($G$3:$G$1002+$H$3:$H$1002 <3,AL3:AL1002)))}

{=IF(AK1019="","",MAX(IF(($G$3:$G$10023)+($H$3:$ H$10023),AK3:AK1002)))}
I was hoping I could also calculate AVERAGE and MIN values using

thesame basic formulas. However, I have cells within my
data ranges which have0 (zero) values (which I use) whilst other
cells are unused (blank). How can I rework my formulas to
extract AVERAGE and MIN values whilst ignoring the blank cells within
my data ranges? Cheers.

.



 
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
AVERAGESIFS Function - average cells that fall within a date rangeand meet additional criteria SK08 Excel Worksheet Functions 3 March 12th 09 06:31 PM
Criteria average ignoring blanks flumpuk Excel Discussion (Misc queries) 5 October 17th 07 11:39 AM
Criteria average ignoring blanks flumpuk Excel Discussion (Misc queries) 1 October 17th 07 11:19 AM
Ignoring blank cells on getting an average Neil Excel Discussion (Misc queries) 6 July 18th 07 08:14 AM
30 Day Moving Average Ignoring Blank Cells ethatch Excel Worksheet Functions 2 January 17th 06 09:37 AM


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