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.

Formula for counting if cell has RYG symbol

I need to count the total number of cells within a column if they have either Red, Yellow, or Green symbol. We also have the grey symbol, but that should not be counted. I am using this as a way to indicate the total number of active projects in our dashboard. I have tried =COUNTIF(Status:Status, "Green") OR(Status:Status, "Yellow") OR(Status:Status, "Red")

Best Answer

Answers

  • ✭✭✭✭✭✭
    Answer ✓

    @smartsheetuserucb1

    Try =COUNTIF(Status:Status, OR(@cell = "Green", @cell = "Red", @cell = "Yellow"))

    Jessica Selano | Selano Consulting

    jessica@selanoconsulting.com

  • ✭✭✭✭✭✭
    edited 03/13/24

    @smartsheetuserucb1 If you want the individual count of each one, then you would need three separate formulas in three different cells.

    =COUNTIF(Status:Status, "Green")

    =COUNTIF(Status:Status, "Yellow")

    =COUNTIF(Status:Status, "Red")

    If you want it in one cell, then try something like this.

    ="Green "+COUNTIF(Status:Status, "Green")+", Yellow "+COUNTIF(Status:Status, "Yellow")+", Red "+COUNTIF(Status:Status, "Red")

    This formula should display a response Green X, Yellow X, Red X

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions

  • I'm trying to create a SUMIF formula that looks at the salesperson name in a column and adds up or totals their $ sales in another column. To ultimately show in Dashboard of Totals Sales by Salesperso…
    User: "Allan Z"
    Answered ✓
    9
    2
  • Good day Smartsheet Team, Getting an unparseable error on this formula: =IF($Name@row <> "",(SUMIFS({Expense}, {Period},1, {Type}, OR(@cell = "RES602782", @cell = "RES602497")),"") Trying to pull in a…
    User: "stratman"
    Answered ✓
    15
    2
  • I have a sheet that compiles all the responses from a form. The sheet has multiple start and end date columns, but only one start and one end date cell is NOT blank depending on the activity selected …
    User: "m_anderson"
    Answered ✓
    13
    2