max in column

Svgmassive

Board Regular
Joined
Nov 2, 2010
Messages
113
i am trying to get this function to work and the reason maybe it might have alot to do with the formatting of the cell "[h].mm" when there are no values it is actually 12:00:00 AM.how can i modify the function to work correctly IF(I6>0
AND(COUNT(I$5:I$10),IF(I6>0,I6=MAX(I$5:I$10)))
thanks.
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Can you describe in words what you are trying to do with your formula? It's not easy to guess your intentions by reading a formula that doesn't actually work.
 
Upvote 0
What problems? What's in the range where you want the MIN from? Does it contain blanks cells? Does it contain zeros that you want to ignore?
 
Upvote 0
Hi Glen
when there is a value of 0 because of the formatting"[h].mm" that is 12:00:00 AM now the if f5>0 now runs when it shouldn't.I don't know if that clarifies it.
 
Upvote 0
It's not that clear, but here's a guess at an array formula ( entered using Ctrl-Shift-Enter ) that should do it:
Code:
=MAX(IF(I$5:I$10>0,I$5:I$10))
 
Upvote 0
I finally was able finally to get a conditional formatting with the formula listed below now i am trying to do the same for the max.Can this be done any differently? thanks
=IF($F7>0,IF(TEXT(H7,"[h].mm")=TEXT(SMALL(H$5:H$7,IF(COUNTIF(H$5:H$7,"<0.00"),1,COUNTIF(H$5:H$7,0)+1)),"[h].mm"),-1))
 
Upvote 0

Forum statistics

Threads
1,224,599
Messages
6,179,831
Members
452,947
Latest member
Gerry_F

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