Formulas and Functions

Formulas and Functions

Ask for help with your formula and find examples of how others use formulas and functions to solve a similar problem.

Conditional Collect Formula

✭✭
edited 12/09/19 in Formulas and Functions

Hello,

 

I am attempting to sum a range of numbers that meet multiple conditions.

Data is input into my sheet with a time stamp and a box type(C1,CX etc.)

I would like to sum the numbers that are of each unique box type AND are the first 10 timestamped inputs of the day. 

That is, sum the first 10 C1 inputs of the day, first 10 CX inputs of the day etc. 

 

I thought the solution would require a collect function, however, I am returning 0 when suming the values that meet both the Box Type and Date conditions. 

 

My Attempt:

=SUM(COLLECT({Lines}, {Date}, <=SMALL({Date}, 10), {Intake Form Range 12}, ="C1"))

 

 

Sketch.png

Tags:

Comments

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!

Trending in Formulas and Functions