This type of problem works better with tables (lists of lists) and a group by sum procedure similar to the SQL SELECT SUM GROUP By construct.
This sample app groups and sums expenses, as opposed to grouping and summing ingredients, but the base concept is the same.
group_sum.aia (7.6 KB)
Here is a raw data Comma Separated Values (CSV) file...
When the file arrives from the Media folder, it gets scrubbed and split into 4 columns.
This procedure can be used to summarize column 4 by column 3:
Note that I had to remove a header row to avoid trying to sum header text.
The procedures:
P.S. These blocks can be dragged directly into your Blocks Editor workspace.






