CountIFS with multiple criteria references

Options

Hi,

I have 3 columns referenced ("Available SYD","QoH SYD", and "Min SYD").

I'm trying to return counts where "Available SYD" is greater than or equal to 0, and "QoH SYD" is less than or equal to "Min SYD".

If I change the last criteria to a fixed number e.g. <50, it works, but I want to use another reference "Min SYD". Is this even possible or does my formula need to change?

This works: =COUNTIFS({Available SYD}, >=0, {QoH SYD}, <=50)

This doesn't: =COUNTIFS({Available SYD}, >=0, {QoH SYD}, <={Min SYD})

• ✭✭✭✭✭
edited 03/28/24
Options

Try to change your last item to `[Min SYD]@row`

...

• Options

Thanks but {Min SYD} is a referenced column so [Min SYD]@row won't work. I tried it anyway. I should've mentioned I'm building a metric sheet which is why they are all referenced ranges.

• ✭✭✭✭✭
Options

Your second item for a countifs in an arguement group should be a criteria. https://help.smartsheet.com/function/countifs

...

• Options

Hi heyjay sorry I'm still not getting something here. I've read the documentation and still don't understand how to make it work or if it's even possible. I tried multiple variations but I just can't get it to work with the criteria in the second argument. Would you mind posting the full formula of what you believe should work?

=COUNTIFS({Available SYD}, >=0, {QoH SYD}, <={Min SYD})

Again, if I change the last piece to a normal criteria like <=50 it will work. But I want to only count if {QoH SYD}, <={Min SYD}.

• Options

This may simplify explaining my problem. How can do the following? I get #INVALID OPERATION.

=COUNTIF({QoH SYD}, <{Min SYD})

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!