Home » excel » Excel formula checks if evaluation is greater than and returns max value

Excel formula checks if evaluation is greater than and returns max value

Posted by: admin May 14, 2020 Leave a comment


I’m trying to build an Excel-formula that checks if the condition part is greater than 5 without duplicating the formula. For instance if the formula returns 10, then it should return 5 (max 5). If it’s 3, then just return 3.

I could easily just extend the formula with an IF(), but then I would need to duplicate the formula to use it in my condition and if the condition is false, then I’d need to have an exact copy of the formula once again. The readability would just be twice as terrible.

I’m looking for a Max()-function, or some smart way to handle this, where it first evaluate the condition and return a max value if the condition is greater than. Any suggestions?

This is my formula:


This is the formula that I’d like to avoid



IF([condition]>5;5;[reuse condition])

I know that I can have two separate cells, where the first cell holds the long formula, and the other one just refers to this. This is not the solution I’m looking for.

How to&Answers:

The usual way is to either use a separate cell for big formula or something like:


so in your case ( with ; separator):



The key is to avoid using IF.