Assistance with If then else Formula!

SPEARSON1234

New Member
Joined
Dec 16, 2024
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi everyone,

Hopefully a simple answer from more experiences users. I am trying to put in a formula that looks at two cells and comes back with an answer. So if A2 is Greater than A1 then return yes, if A2 is less than A1 return No or return Equal if there is no difference between them.
I tried this but it is not working and I cannot work out what is wrong. Sorry for the relatively new user question!

=IF('PL PFA - DIS'!P5>'PL PFA - DIS'!P4)"Yes",IF('PL PFA - DIS'!P5<'PL PFA - DIS'!P4,"No","Maybe")

Thanks in advance for your help
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Welcome to the MrExcel board!

Try
Excel Formula:
=IF('PL PFA - DIS'!P5>'PL PFA - DIS'!P4,"Yes",IF('PL PFA - DIS'!P5<'PL PFA - DIS'!P4,"No","Maybe"))

or you could also do it this way
Excel Formula:
=CHOOSE(SIGN('PL PFA - DIS'!P4-'PL PFA - DIS'!P5)+2,"Yes","Maybe","No")
 
Upvote 0
Welcome to the MrExcel board!

Try
Excel Formula:
=IF('PL PFA - DIS'!P5>'PL PFA - DIS'!P4,"Yes",IF('PL PFA - DIS'!P5<'PL PFA - DIS'!P4,"No","Maybe"))

or you could also do it this way
Excel Formula:
=CHOOSE(SIGN('PL PFA - DIS'!P4-'PL PFA - DIS'!P5)+2,"Yes","Maybe","No")
Thank you so much that is wonderful :)
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,177
Members
453,021
Latest member
Justyna P

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