• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Using Logical Operators present in a cell in an IF statement

Bill_49001

New Member
Hello! I've been a big fan of this site for a couple years but have never posted. I'm hoping that you can help with my problem.

I need to compare two number values using a logical operator that is also a cell in the table.

How can I refer to a cell for the logical operator in an IF statement? See attached file for an example of my data. I'm trying to calculate column D with a formula.

IF(A2??C2,"TRUE","FALSE")
where ?? is the operator present in cell B2
 

Attachments

Goto Name Manager and Define a name:
eval
In refers to put following formula:
=EVALUATE(Sheet1!$A2&Sheet1!$B2&Sheet1!$C2)
and then in cell D2 simply put:
=eval
It will get copied down automatically.

Since Evaluate is XLM macro function it will prompt you to save it as macro enabled workbook.
 
Back
Top