IF Function: Use of Logical Operators Located in a Cell

CMDMA03

New Member
Joined
Sep 23, 2011
Messages
12
Is it possible to outline your logical expressions (e.g., >=, <=, etc...) in a cell and then reference that cell in an IF function?

Example:
I have a percentage score in B5 (e.g., 10%), and a target score that contains logical operators in B4 (e.g., >=9.8%). I'd like to be able reference the two cells in an IF function and produce a binary result, but I get #NAME or #VALUE errors when I've tried the syntax below. I've searched and can't seem to find much on this anywhere. Maybe I'm not searching with the right language. Does anyone have suggestions? Thanks in advance.

Code:
=IF(B5&$B$4,0,1)
Code:
=IF(B5$B$4,0,1)
Code:
=IF(B5AND($B$4),0,1)
 
In that case, no need for an added function call:

=-(COUNTIF(B5,B4)-1)
 
Upvote 0

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