Home › Forums › Excel › How can you retrieve a logical operator from a cell? › Reply To: How can you retrieve a logical operator from a cell?
November 13, 2025 at 10:11
#11235
administrator@dailyexcel.net
Keymaster
In principle, you can’t, as it is stored as text. If you want to use it as an operator, you will have to resort to something like this:
=IFS(
A1=”>”;B1>C1;
A1=”>=”;B1>=C1;
A1=”=”;B1=C1;
A1=”<=”;B1<=C1;
A1=”<“;B1<C1)
This formula checks if a value in B1 is whatever is defined in A1 then a value in C1.
