I want to create a UDF (user defined function) similar to Sumif below.
=SUMIF(F10:F15,">20")
But how do I use the string parameter ">20" in the if statement. I tried
If (A Like ConditionalString) Then
But it is working for wildcards and not for the logical operators. I need it work for both wildcards and logical operators as well.