Look at the greater value and use in formula

Solved/Closed
Gouws Posts 45 Registration date Sunday February 7, 2010 Status Member Last seen April 15, 2012 - Oct 1, 2010 at 02:44 AM
Gouws Posts 45 Registration date Sunday February 7, 2010 Status Member Last seen April 15, 2012 - Nov 5, 2010 at 02:32 AM
Hello,

Can someone assist me with a formula that will look at the greater number and then use it in a formula.

Currenly my formula is =IF(OR(G27=0),0,(G27-(G30+G31+G32+G35+G36)))

I want the formula to look at which one is the greatest between G31 and G32 and then use the > one in the place of G31+G32 in the formula.

Related:

2 responses

venkat1926 Posts 1863 Registration date Sunday June 14, 2009 Status Contributor Last seen August 7, 2021 811
Oct 1, 2010 at 05:20 AM
=IF(OR(G27=0),0,(G27-(G30+max(G31,G32)+G35+G36)))


mistake in the formula

or(g27=0) this ok what i the other one in "or"

"or" should have two components
something like tis
or(g27=0,g27=3)

study and revise the formulas. regarding max use the part given by me
1
Gouws Posts 45 Registration date Sunday February 7, 2010 Status Member Last seen April 15, 2012
Nov 5, 2010 at 02:32 AM
TX, revised formula as suggested and it's working very good
0