Try this
This can be used as a UDF if you want, but your Excel function runs in a macro free workbook, obviously, by definition, UDFs can't. Many companies don't allow macros.
=maxmin(E19:E40)
The macro "MaxMinusMinIgnoreZeros" calls the function in VBa
I have attached a demo workbook.
Hope this helps.
If you need any further information, please feel free to ask further
However
If this takes care of your needs, please click EDIT in your original post, click GO ADVANCED and set the PREFIX box to SOLVED. It helps everybody!
Also
If you are satisfied by any members response to your problem please consider using the scales icon top right of thier post to show your appreciation.
Bookmarks