need a formula for maximum

RSEKAR

Board Regular
Joined
Oct 18, 2010
Messages
172
Dear Sir,
In both G and O column contain numerical data. Range (G10:G950) and (O10:O950)
Both columns contain 0 Values also.
The formula should display the Maximum value in (O10:O950) for the data > 0 in (G10:G950)
Thanking you in advance.
 

Excel Facts

When they said...
When they said you are going to "Excel at life", they meant you "will be doing Excel your whole life".
Hi

Version of Excel?

Try this:

=MAX(IF(G10:G950>0,O10:O950))

which is an array formula and so must be entered using Ctrl+Shift+Enter.
 
Upvote 0
Dear Sir,
=IF(SUM(G10:G950) > 0,LARGE(O10:O950,1),"")
The above formula display the value as 996.97 where as the correct value is 8.40
Some more information. The G column numbers are derived by paste link method from some other column. The O column numbers are derived from formula.
 
Upvote 0
Dear Mr.Richard Schollar,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Your formula displays the correct value as 8.40<o:p></o:p>
Excel 2002 and OS XP
=MAX(IF(G10:G950 > 0,O10:O950))<o:p></o:p>
Thanking you,<o:p></o:p>
 
Upvote 0
=if(sum(G10:G950)>0,large(o10:o950,1),"")

Only checks if the Sum range is greater than zero before taking the largest value from the range ie it doesn't restrict the range from which the max is to be taken to O column cells where the corresponding G column cells are greater than zero.
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,813
Members
452,945
Latest member
Bib195

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top