yes,no,even,formula

John Caines

Well-known Member
Joined
Aug 28, 2006
Messages
1,155
Office Version
  1. 2019
Platform
  1. Windows
Hello All.
Trying to write a simple (But not for me :-)) formula.
All I want to say is;
IF J5=H19,, show the word "EVEN
If J5 is greater than H19 shoe the word "YES"
If J5 is less than H19 show the word "NO

Originally I had;
Code:
=IF(J5="","",IF(J5>$H$19,"YES","NO")

But now I want to add the word even into it,, just can't seem to get it :-(
I have now (But it doesn't work;
Code:
=IF(J5="","",IF(J5>$H$19,"YES","NO"),IF(J5=$H$19,"EVEN"))

Can anybody show me the error please?
I can't be far off :-)
Many thanks;
John Caines
 

Excel Facts

Bring active cell back into view
Start at A1 and select to A9999 while writing a formula, you can't see A1 anymore. Press Ctrl+Backspace to bring active cell into view.
Try:

=IF(J5="","",IF(J5=H19,"EVEN",IF(J5>H19,"YES","NO")))
 
Upvote 0
Code:
=if(j5="","",if(j5>$h$19,"yes",if(j5=$h$19,"even","no")))
 
Upvote 0
Excellent!!!!!:-)
Working!
Many thanks to you both,,,,
I wasn't too far off,, but that doesn't stick with excel :-)

Many thanks again
Best regards
A very happy
John Caines
 
Upvote 0

Forum statistics

Threads
1,224,597
Messages
6,179,808
Members
452,944
Latest member
2558216095

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