• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Chart Minimum and Maximum.

ysherriff

Member
I am trying to highlight only minimum and maximum on a 12 months line chart. the formula for maximum: =IF($D2=MAX($D$2:$D$13),$D2,NA()) works perfectly
but my issue lies is that the minimum formula is picking up zero value. I want it to ignore the zero value. I have modified the formula but it is not working.

=IF($D2>0,NA(),MIN($D$2:$D$13,$D2,NA()))

Thanks for your help. Attached is the small excel spreadsheet with example
 

Attachments

  • min and max formula.xls
    23 KB · Views: 6
Hi,

Try below formula for column C value equal or above 0 in E2 and copy down:

=IF($C2=MIN(IF($C$2:$C$13>0,$C$2:$C$13)),$C2,NA())

Confirm with Ctrl+Shift+Enter.

If there are chances of -ve values in column C and you want to left them, than try below array formula.

=IF($C2>0,IF($C2=MIN(IF($C$2:$C$13>0,$C$2:$C$13)),$C2,NA()),NA())

Regards,
 
Back
Top