Home » excel » Excel Formula for Max

Excel Formula for Max

Posted by: admin May 14, 2020 Leave a comment

Questions:

I am using the following function in Excel but it keeps giving me errors. Is there something wrong with the use of Max function?

Cells E2, D2 and E2 all contain numerical values.

My aim is to take the difference of D2- E2 when D2 > E2, else take 0.

=-E6*(52 -MAX ((D2 - E2),0))
How to&Answers:

The only error that Excel 2010 reports for me with this expression is that it does not like the spaces in the formula. If I remove the spaces, this formula works as intended.

Answer:

Just get rid of the space between MAX and (. The following works fine for me.

=-E6*(52 -MAX((D2 - E2),0))