How do I combine two separate formulas into one cell?

Example:

Column name is "Total Enrollment"


Formula 1 (Currently already in the column): =COUNTIF({Class ID}, [Class ID]@row)

The formula has a Reference sheet.


Formula 2 (which I want to add in the same column): =SUM([Total Enrollment]@row - [Waitlisted]@row)

(Basically I want the cell to exclude the Waitlisted lines from the Reference sheet).


I get an #INSEPARABLE error when I try to do it like =COUNTIF({Class ID}, [Class ID]@row) + " " + =SUM([Total Enrollment]@row - [Waitlisted]@row)


Am I doing this incorrectly, or is it actually not possible to combine the formulas? Or is there another way to exclude something in my Total Enrollment column without having to use a second formula?


Thanks!

Answers

  • Andrée Starå
    Andrée Starå ✭✭✭✭✭✭

    Hi @Tanya

    I hope you're well and safe!

    You can't reference the same cell the formula is in.

    Can you describe your process in more detail and maybe share the sheet(s)/copies of the sheet(s) or some screenshots? (Delete/replace any confidential/sensitive information before sharing) That would make it easier to help. (share too, andree@workbold.com)

    I hope that helps!

    Be safe and have a fantastic day!

    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.

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!