Invalid Operation with Countifs formula

05/03/21
Answered - Pending Review

Hi,

The formula =COUNTIFS({CR Requests Inventory Request Monday}, [Monday of the week]@row, {CR Requests Inventory Status}, NOT("5) On Hold")) returns an Invalid Operation error. I checked the column properties and the references, all look good.

The same formula works referencing another sheet.

=COUNTIFS({CR Archived Requests Archive Monday}, [Monday of the week]@row, {CR Archived Requests Request Status}, NOT("5) On Hold"))


Any idea how to troubleshoot this?

Popular Tags:

Answers

  • Edit: the formula below works, seems the issue is with the NOT statement.

    =COUNTIFS({CR Requests Inventory Request Monday}, [Monday of the week]@row, {CR Requests Inventory Status}, "5) On Hold")

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    I would start by checking the data within each of the referenced ranges to see if that error is present anywhere.

  • I did and it seems to be working. The issue occurs when I add NOT("5) On Hold"). Am I using the correct syntax?

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    The syntax looks correct. COUNTIFS can get a little picky sometimes. Let's try a little tweak...


    =COUNTIFS({CR Requests Inventory Request Monday}, @cell = [Monday of the week]@row, {CR Requests Inventory Status}, @cell <> "5) On Hold")

  • That works. I am not sure why, but it did the trick :) Thanks!

  • Paul NewcomePaul Newcome ✭✭✭✭✭

    Happy to help. 👍️


    It may have been glitching out because of the closed parenthesis in your specific text. Those can cause issues sometimes. That is why I always use


    <>

    instead of

    NOT( )

  • edited 05/03/21

    Good to know, I did not think about that. Learning every day!

Sign In or Register to comment.