WHAT WILL BE THE FORMULA

Closed
deepsubhamoy - 7 Sep 2017 à 02:38
Mazzaropi Posts 1983 Registration date Monday 16 August 2010 Status Contributor Last seen 24 May 2023 - 7 Sep 2017 à 07:02
Hello,

if A1>A2 THEN C1+C2 AND IF A1<A2 THEN C1-C2

WHAT WILL BE THE FORMULA

please guide me
Related:

1 response

Mazzaropi Posts 1983 Registration date Monday 16 August 2010 Status Contributor Last seen 24 May 2023 147
7 Sep 2017 à 07:02
deepsubhamoy, Good morning.

Since you did not mention what should be done if the two values are the same, the empty content is being placed.

Try to use:

=IF(A1>A2, C1+C2, IF(A1<A2, C1-C2, ""))

Please, tell us if it worked as desired.
I hope it helps.
--
Belo Horizonte, Brasil.
Marcílio Lobão