3 Way Response IF statement

Ben171

Board Regular
Joined
Jul 2, 2021
Messages
88
Hi all,

I have the following simple if statement which says if the number in G is bigger than in F, return "Overpaying" and if less than F return Underpaying.

I want to add a third statement to this, to return "Neither" if the value in G is the same as F

VBA Code:
=IF(G1978>C1978,"OVERPAYING","UNDERPAYING")
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Just nest an IF statement, i.e.
Excel Formula:
=IF(G1978=C1978,"Neither",IF(G1978>C1978,"OVERPAYING","UNDERPAYING"))

Note: You say you are comparing column G to column F, but you formula is comparing column G to column C.
I am not sure which one you actually mean, so adjust the formula accordingly, if necessary.
 
Upvote 0
Solution
Just nest an IF statement, i.e.
Excel Formula:
=IF(G1978=C1978,"Neither",IF(G1978>C1978,"OVERPAYING","UNDERPAYING"))

Note: You say you are comparing column G to column F, but you formula is comparing column G to column C.
I am not sure which one you actually mean, so adjust the formula accordingly, if necessary.

whoops sorry! was in a rush to write this up before lunch in hope I would get a reponse by the time i come back.

Thank you for your help that worked perfectly! Need to get the hang of these nested IF's.

Thanks
 
Upvote 0

Forum statistics

Threads
1,203,762
Messages
6,057,218
Members
444,914
Latest member
Mamun12345

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top