How to COLLECT() a different reference value for each value in a multi-select column and SUM() them?

R.Whi
R.Whi โœญโœญ
edited 03/29/23 in Formulas and Functions

I have a cost matrix similar to this staged one:

image.png


The cost matrix is referenced in a second sheet of "buyer requests" to determine the cost of their request based on the Type, Size, and Vendor they chose:

image.png

When only ONE Type of Material is requested, the following formula works:

=INDEX(COLLECT({Cost}, {Vendor}, [Preferred Vendor]@row, {Size}, Size@row, {Type}, [Type of Material]@row), 1)

I need to be able to calculate the SUMMED cost if a request is made for MULTIPLE materials in the same purchase order, indicated by the multi-select Type of Material column.

Answers

Help Article Resources

Want to practice working with formulas directly in Smartsheet?

Check out the Formula Handbook template!