# Formula Help

Options
✭✭✭✭
edited 12/09/19

Hi All,

I am in need of some formula help!

1. I would like to count all of the projects in my portfolio that are in the Active state and either Yellow or Red health. I have a Dropdown List column for State and a Symbols column for Health (RYGB balls).

This is the formula I've have been trying. I am getting the Unparseable error.

=COUNTIFS([Health:Health, "Red"], [Health:Health, "Yellow"], [State:State, "Active"])

2. I would like to count all of the projects in my portfolio that are launching in Jan, in Feb, in March, etc. I have a Date column called Upcoming Launch Date.

This is the formula I've tried for this one (for projects launching in January):

=COUNTIF([Upcoming Launch Date]:[Upcoming Launch Date], (MONTH(1)))

I would really appreciate some guidance on one or both of these formulas to understand what I'm entering wrong.

Thanks so much!!

• ✭✭✭✭✭✭
Options

Try this:

=COUNTIFS(Health:Health, "Red", State:State, "Active") + COUNTIFS(Health:Health, "Yellow", State:State, "Active")

• ✭✭✭✭✭✭
Options

Your 2nd one I could tackle with a helper column called Month, and use =MONTH([Upcoming Launch Date]1)

This will give you the Month number for each row.

Then use this info to count for January:

=COUNTIF(Month:Month, =1)

There is likely a way to do in a single formula but it wasn't working for me yet.

• ✭✭✭✭✭✭
Options

=COUNTIFS(Upcoming Launch Date:Upcoming Launch Date, IFERROR(MONTH(@cell), 0) = 1)

This will check every cell in the Launch Date Range and return the results from January. If there is no date in the cell (which returns an error) it will count it as a 0.

• ✭✭✭✭
Options

Thank you so much! This worked!

• ✭✭✭✭
Options

Great suggestion! Appreciate the help

• ✭✭✭✭
Options

Perfect, thanks so much!!

• ✭✭✭✭✭✭
Options

Here is another option for the first formula:

=COUNTIFS(State:State, "Active", Health:Health, OR(@cell = "Red", @cell = "Yellow"))

I second Mike's suggestion for the second formula.

• ✭✭✭✭✭✭
Options

You're welcome. I'm glad I could be of assistance.

## Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!