Gathering data from 2 smartsheets into metrics sheet for dashboard

Cayla Davis
Cayla Davis ✭✭✭✭
edited 03/24/25 in Formulas and Functions

I am trying to take this formula and get the data 'CAD' from both smartsheets and place the amount of times in total that it appeared

What am i missing in my formula? =COUNTIFS({Behavior Analysis: 1S Range 1}, HAS(@cell,"CAD"), {Behavior Analysis: 1SShop Range 1}, HAS(@cell,"CAD")))

Anyone have any suggestions?

Cayla Davis | Technology Strategy and Optimization Manager
Halifax, Nova Scotia, Canada

Tags:

Best Answer

  • Mark.poole
    Mark.poole Community Champion
    edited 03/25/25 Answer βœ“

    @Cayla Davis

    @DKazatsky2 had a slight syntax error. this should correct it

    =COUNTIFS({Graphical Behavior Analysis: 1S Graphical Range 1}, HAS(@cell, "Canada")) + COUNTIFS({Graphical Behavior Analysis: 1S Shop Fares Range 1}, HAS(@cell, "Canada"))

    If you found this comment helpful. Please respond with any of the buttons below. AwesomeπŸ–€, InsightfulπŸ’‘, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.

Answers

  • Mark.poole
    Mark.poole Community Champion

    @Cayla Davis Are you trying to get it to count for each instance it shows up in both of the reference ranges. or trying to get it to count ONLY if it shows in both.

    If you found this comment helpful. Please respond with any of the buttons below. AwesomeπŸ–€, InsightfulπŸ’‘, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.

  • DKazatsky2
    DKazatsky2 Community Champion

    Hi @Cayla Davis,

    Try breaking it into 2 pieces.

    =COUNTIFS({Behavior Analysis: 1S Range 1}, HAS(@cell,"CAD")) + =COUNTIFS({Behavior Analysis: 1SShop Range 1}, HAS(@cell,"CAD"))

    Hope this helps,

    Dave

  • Cayla Davis
    Cayla Davis ✭✭✭✭

    @Mark.poole I am trying to get it to count each instance that it shows up for both references

    Cayla Davis | Technology Strategy and Optimization Manager
    Halifax, Nova Scotia, Canada

  • Cayla Davis
    Cayla Davis ✭✭✭✭

    @DKazatsky2 - Thank you, I did try that but i am getting INVALID OPERATION

    =COUNTIFS({Graphical Behavior Analysis: 1S Graphical Range 1}, HAS(@cell, "Canada")) + =COUNTIFS({Graphical Behavior Analysis: 1S Shop Fares Range 1}, HAS(@cell, "Canada"))

    Cayla Davis | Technology Strategy and Optimization Manager
    Halifax, Nova Scotia, Canada

  • Mark.poole
    Mark.poole Community Champion

    @Cayla Davis

    @DKazatsky2 Was close in his assessment. How ever there was a slight syntax error. Try

    =COUNTIFS({Behavior Analysis: 1S Range 1}, HAS(@cell,"CAD")) + COUNTIFS({Behavior Analysis: 1SShop Range 1}, HAS(@cell,"CAD"))

    If you found this comment helpful. Please respond with any of the buttons below. AwesomeπŸ–€, InsightfulπŸ’‘, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.

  • Mark.poole
    Mark.poole Community Champion
    edited 03/25/25 Answer βœ“

    @Cayla Davis

    @DKazatsky2 had a slight syntax error. this should correct it

    =COUNTIFS({Graphical Behavior Analysis: 1S Graphical Range 1}, HAS(@cell, "Canada")) + COUNTIFS({Graphical Behavior Analysis: 1S Shop Fares Range 1}, HAS(@cell, "Canada"))

    If you found this comment helpful. Please respond with any of the buttons below. AwesomeπŸ–€, InsightfulπŸ’‘, Upvote⬆️, or accepted answer. Not only will this help others searching for the same answer, but help me as well. Thank you.

  • DKazatsky2
    DKazatsky2 Community Champion

    Hi @Cayla Davis,

    I had a typo in what I sent you, there was an extra "=". It should be this.

    =COUNTIFS({Graphical Behavior Analysis: 1S Graphical Range 1}, HAS(@cell, "Canada")) + COUNTIFS({Graphical Behavior Analysis: 1S Shop Fares Range 1}, HAS(@cell, "Canada"))

  • Cayla Davis
    Cayla Davis ✭✭✭✭

    Thank you so much @Mark.poole and @DKazatsky2 - appreciate both of you

    Cayla Davis | Technology Strategy and Optimization Manager
    Halifax, Nova Scotia, Canada

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!