# i have a large formula and I'm looking for a more efficient way to write this.

Options
✭✭

I have maxed out my number of characters in a cell. I am referencing 4 peoples sheets, each person has 4 sheets each and i'm referencing 3 columns in each sheet, (48 references).

Here is the formula.

=COUNTIFS({[Blue] Service Support KPI - [2022: Q2] Range 1}, [ABC Name:]@row, {[Blue] Service Support KPI - [2022: Q2] Range 3}, @cell = "ABC - Pull/Send", {[Blue] Service Support KPI - [2022: Q2] Range 4}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Blue] Service Support KPI - [2022: Q1] Range 1}, [ABC Name:]@row, {[Blue] Service Support KPI - [2022: Q1] Range 2}, @cell = "ABC - Pull/Send", {[Blue] Service Support KPI - [2022: Q1] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Blue] Service Support KPI - [2022: Q3] Range 1}, [ABC Name:]@row, {[Blue] Service Support KPI - [2022: Q3] Range 2}, @cell = "ABC - Pull/Send", {[Blue] Service Support KPI - [2022: Q3] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Blue] Service Support KPI - [2022: Q4] Range 1}, [ABC Name:]@row, {[Blue] Service Support KPI - [2022: Q4] Range 2}, @cell = "ABC - Pull/Send", {[Blue] Service Support KPI - [2022: Q4] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Bob] Service Support KPI - [2022: Q1] Range 1}, [ABC Name:]@row, {[Bob] Service Support KPI - [2022: Q1] Range 2}, @cell = "ABC - Pull/Send", {[Bob] Service Support KPI - [2022: Q1] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Bob] Service Support KPI - [2022: Q2] Range 1}, [ABC Name:]@row, {[Bob] Service Support KPI - [2022: Q2] Range 2}, @cell = "ABC - Pull/Send", {[Bob] Service Support KPI - [2022: Q2] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Bob] Service Support KPI - [2022: Q3] Range 1}, [ABC Name:]@row, {[Bob] Service Support KPI - [2022: Q3] Range 2}, @cell = "ABC - Pull/Send", {[Bob] Service Support KPI - [2022: Q3] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Bob] Service Support KPI - [2022: Q4] Range 1}, [ABC Name:]@row, {[Bob] Service Support KPI - [2022: Q4] Range 2}, @cell = "ABC - Pull/Send", {[Bob] Service Support KPI - [2022: Q4] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Ritz] Service Support KPI - [2022: Q1] Range 1}, [ABC Name:]@row, {[Ritz] Service Support KPI - [2022: Q1] Range 2}, @cell = "ABC - Pull/Send", {[Ritz] Service Support KPI - [2022: Q1] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Ritz] Service Support KPI - [2022: Q2] Range 2}, [ABC Name:]@row, {[Ritz] Service Support KPI - [2022: Q2] Range 3}, @cell = "ABC - Pull/Send", {[Ritz] Service Support KPI - [2022: Q2] Range 1}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Ritz] Service Support KPI - [2022: Q3] Range 1}, [ABC Name:]@row, {[Ritz] Service Support KPI - [2022: Q3] Range 2}, @cell = "ABC - Pull/Send", {[Ritz] Service Support KPI - [2022: Q3] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Ritz] Service Support KPI - [2022: Q4] Range 1}, [ABC Name:]@row, {[Ritz] Service Support KPI - [2022: Q4] Range 2}, @cell = "ABC - Pull/Send", {[Ritz] Service Support KPI - [2022: Q4] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Sharp] Service Support KPI - [2022: Q1] Range 1}, [ABC Name:]@row, {[Sharp] Service Support KPI - [2022: Q1] Range 2}, @cell = "ABC - Pull/Send", {[Sharp] Service Support KPI - [2022: Q1] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Sharp] Service Support KPI - [2022: Q2] Range 1}, [ABC Name:]@row, {[Sharp] Service Support KPI - [2022: Q2] Range 2}, @cell = "ABC - Pull/Send", {[Sharp] Service Support KPI - [2022: Q2] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Sharp] Service Support KPI - [2022: Q3] Range 1}, [ABC Name:]@row, {[Sharp] Service Support KPI - [2022: Q3] Range 2}, @cell = "ABC - Pull/Send", {[Sharp] Service Support KPI - [2022: Q3] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY())) + COUNTIFS({[Sharp] Service Support KPI - [2022: Q4] Range 1}, [ABC Name:]@row, {[Sharp] Service Support KPI - [2022: Q4] Range 2}, @cell = "ABC - Pull/Send", {[Sharp] Service Support KPI - [2022: Q4] Range 3})

• ✭✭✭✭✭✭
Options

My suggestion for this would be the same as my suggestion on your other similar post. I would spread it out over a few cells and then add the cells together.

• ✭✭
Options

THIS Reference looks to make sure what I'm pulling is only from the last 7 days:

{[Sharp] Service Support KPI - [2022: Q2] Range 3}, AND(@cell >= TODAY(-8), @cell <= TODAY()))

• ✭✭✭✭✭✭
Options

My suggestion for this would be the same as my suggestion on your other similar post. I would spread it out over a few cells and then add the cells together.

• ✭✭✭✭✭✭
edited 10/02/21
Options

Hi @Dakota

I'd recommend a similar approach as to your other post.

Try to shorten the range names and, for example, remove the Support to something like this.

{[Blue] Service KPI - [2022: Q2] Range 3}

Then you will be below the character limit.

Would that work/help?

I hope that helps!

Be safe and have a fantastic weekend!

Best,

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

Did my post(s) help or answer your question or solve your problem? Please support the Community by marking it Insightful/Vote Up or/and as the accepted answer. It will make it easier for others to find a solution or help to answer!

SMARTSHEET EXPERT CONSULTANT & PARTNER

Andrée Starå | Workflow Consultant / CEO @ WORK BOLD

W: www.workbold.com | E:andree@workbold.com | P: +46 (0) - 72 - 510 99 35

Feel free to contact me for help with Smartsheet, integrations, general workflow advice, or anything else.