Error In Filtering Parent Row Formula

megtro610
megtro610
edited 11/25/24 in Formulas and Functions

In my metric sheet, I am receiving the #INCORRECT ARGUMENT SET error on code I made trying to only count the child rows in my reference sheet.

=COUNTIFS({Is it implemented?}, 1, {evidence attached 1}, "Yes", {Parent?})

I wasnt sure what part of my reference sheet I was supposed to click on to add the "Parent?" part, so I just used the same column for my "Is it implemented?" part of the code.

I have a helper column in my metrics sheet that says

=IF(COUNT(CHILDREN()) > 0, 1, 0)

Was I supposed to link that to my reference sheet somehow?

I'll attach 3 photos below. Thank you for your help!

Answers

  • Michelle Choate 2
    Michelle Choate 2 ✭✭✭✭✭✭

    #INCORRECT ARGUMENT SET means you have one too many arguments in a function, or incorrect parameters. In this instance, you do not have criteria that you are measuring {Parent?} against.

    I always add 2 columns to EVERY SINGLE SHEET that help out a lot. One is called P, one is called C. They each have a column formula. P is =COUNT(ANCESTORS()), and C is =COUNT(CHILDREN()). Then I can use those in formulas to select either the Parent (usually 0 or 1 in the P column, depending on what you do), or use the C column and just make the criteria >0.

    Michelle Choate

    michelle.choate@outlook.com

    Always happy to walk through any project you need help with!

  • if I make those two P and C columns, how would I write the formula in my metrics sheet to not count my check marks in the parent rows?

  • Georgie
    Georgie Employee

    Hi @megtro610,

    Based on your existing formula and the great suggestion provided by @Michelle Choate 2, once you’ve created the P and C columns in the referenced sheet, the formula in your Metrics Sheet should look similar to below, since this will only include rows that have no child rows:

    • =COUNTIFS({Is It Implemented?}, 1, {evidence attached 1}, “Yes”, {C column}, 0) 

    Does that work?

    Georgie

    Need more help? 👀 | Help and Learning Center

    こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!