Hi,
I'm trying to find a function which will allow me to vary the operator which is used based on a string in another cell
i.e. - formula would be along these lines
=function(A2,B2,C2)
where A2 and B2 are values to which some operator is to be applied and C2 is some string which defines the operation.
So in the case where the values in the cells are 15, 20 and "*" respectively the result would be 15 * 20 = 300, or where the values are 15, 20 and "=" the result would be FALSE.
I guess I could do this by creating a UDF, but I'd rather use inbuilt Excel functionality, if possible.
Any ideas?
Thanks...
I'm trying to find a function which will allow me to vary the operator which is used based on a string in another cell
i.e. - formula would be along these lines
=function(A2,B2,C2)
where A2 and B2 are values to which some operator is to be applied and C2 is some string which defines the operation.
So in the case where the values in the cells are 15, 20 and "*" respectively the result would be 15 * 20 = 300, or where the values are 15, 20 and "=" the result would be FALSE.
I guess I could do this by creating a UDF, but I'd rather use inbuilt Excel functionality, if possible.
Any ideas?
Thanks...