Assuming Cell A1 contains 2 (as a number) and Cell B1 contains â<=5â (as a string), how can I check in cell C1 if 2 is smaller or equal than 5, as =A1&B1 returns â2<=5â (as a string) and =evaluate(A1&B1) returns an error (#value)?
As the operation might change depending on cell content (for example < instead of <= or also > or >=) I canât simply extract the number from cell B1 and use it (or I would have to manually check additionally which operation is used and also prepare something like a switch operation)
The excel version is a non-M365 version (Excel 2021).
=COUNTIF(A1, B1)
may do the job.