Welcome to the forum,
Adjust adresses in provided below formula according to your workbook.
I assumed below that Product list is in products worksheet starting (header) in cell A1
and Sales List is in Sales worksheet also starting in A1
change cell D1 in Products to "initial quantity" and write in E1 "remaining quantity".
Then in E2 write:
Formula:
=D2-sumif(Sales!A:A,A2,Sales!D:D)
and copy down.
To make (next time you write on forum) helping easier: follow the suggestion from yellow banner at the top of the page and attach sample workbook
Bookmarks