# Seemingly Easy Formula For Countifs on a Rollup Sheet With OR...

Options
✭✭✭✭

I'm working on a rollup sheet where I want to count two instances in the same column.

I am currently counting one instance and the formula works fine. When I try to add the second instance it returns unparseable. See below:

Current Working Formula:

=COUNTIFS({FY21 PEP Dec 20 Cycle (v1) Range 5}, "1", {FY21 PEP Dec 20 Cycle (v1) Range 7}, "Baltimore")

New Unparseable Formula:

=COUNTIFS({FY21 PEP Dec 20 Cycle (v1) Range 5}, "1", {FY21 PEP Dec 20 Cycle (v1) Range 7}, "Baltimore"), OR(=COUNTIFS({FY21 PEP Dec 20 Cycle (v1) Range 5}, "1", {FY21 PEP Dec 20 Cycle (v1) Range 7}, "Baltimore Temp")))

Any help on getting the new formula to work in counting both instances of Baltimore and Baltimore Temp would be appreciated!

Tags:

• ✭✭✭✭✭✭
Options

Try this one...

=COUNTIFS({FY21 PEP Dec 20 Cycle (v1) Range 5}, "1", {FY21 PEP Dec 20 Cycle (v1) Range 7}, OR(@cell = "Baltimore", @cell = "Baltimore Temp"))

• ✭✭✭✭✭✭
Options

Yes. You would use the OR function with @cell references as the criteria for that particular range.

• ✭✭✭✭✭✭
Options

Try this one...

=COUNTIFS({FY21 PEP Dec 20 Cycle (v1) Range 5}, "1", {FY21 PEP Dec 20 Cycle (v1) Range 7}, OR(@cell = "Baltimore", @cell = "Baltimore Temp"))

• ✭✭✭✭
Options

...amazing, thank you (it worked)!

• ✭✭✭✭✭✭
Options

Happy to help. 👍️

• ✭✭✭✭
Options

As a follow up, would I just apply the same logic to this formula to get it to count both Baltimore and Baltimore temp:

=COUNTIFS({FY21 PEP Dec 20 Cycle (v1) Range 7}, "baltimore", {FY21 PEP Dec 20 Cycle (v1) Range 6}, ISBLANK(@cell), {FY21 PEP Dec 20 Cycle (v1) Range 5}, "1")

• ✭✭✭✭✭✭