How do i sum up these values

I have two tables and an action button. whenever I add [qty_sold],[price_sold], [type] for a product in orcan_form it lists it in a new row in "orcan "sheet. now, someone here helped me make an action button so that the value of [qty_sold],[price_sold], [type] is also updated in "inventory" sheet. However, it only updates my last transaction of that item and not the sum off all value for that item. i provided the expressions that he used in the screenshot below. they somehow need the "sum()" function somewhere. NO MATTER how much i tried wrapping the expressions in a sum function i kept getting an error. Is this fixable?Screen Shot 2022-03-19 at 9.32.17 PM.pngScreen Shot 2022-03-19 at 9.32.32 PM.pngScreen Shot 2022-03-19 at 9.51.59 PM.png

 

[type] = IFS(
[type0]="kept", "kept",
[qr_code].[qty_to_sell]-[qty_sold] = 0, "sold",
[qr_code].[qty_to_sell]-[qty_sold] > 0, "selling"
)

0 2 104
2 REPLIES 2
Top Labels in this Space