Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Countifs contains

Trying to count if a cell by criteria if another cell contains "device":

=COUNTIFS(CONTAINS("Device", [eCOA Department]:[eCOA Department]), [Award Date]:[Award Date], >=DATE(Year#, 3, 1), [Award Date]:[Award Date], <=DATE(Year#, 3, 31))

#INVALID OPERATION

Best Answers

  • ✭✭✭✭✭✭
    Answer ✓

    Try this: =COUNTIFS([eCOA Department]:[eCOA Department], CONTAINS("Device", @cell), [Award Date]:[Award Date], >=DATE(Year#, 3, 1), [Award Date]:[Award Date], <=DATE(Year#, 3, 31)) This assumes Year# being replaced with an actual year.

  • Community Champion
    Answer ✓

    @dharberts

    Try the below:

    =COUNTIFS([eCOA Department]:[eCOA Department],CONTAINS("Device",@cell), [Award Date]:[Award Date], @cell>=DATE(Year#, 3, 1), [Award Date]:[Award Date], @cell<=DATE(Year#, 3, 31))

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions