A family of Microsoft spreadsheet software with tools for analyzing, charting, and communicating data
Hi, This should be possible by using a formula that calculates the sum of the inventory counts from the beginning to the current row. Here are the steps to do this:
- On the master worksheet, enter the initial inventory counts in column C, starting from row 2.
- On the customer project worksheet, enter the quantity of items used for each project in column C, starting from row 2. Make sure that the items are in the same order as on the master worksheet.
- On the master worksheet, in cell D2, enter this formula: =C2-SUM(INDIRECT("'Customer Project'!C2:C"&ROW()))
- This formula subtracts the sum of the quantities used for each project from the initial inventory count, using the INDIRECT function to refer to the customer project worksheet dynamically. The ROW function returns the current row number, so that the formula adjusts as you copy it down.
- Copy the formula in cell D2 and paste it down to the rest of the cells in column D. This will create a running tally of inventory counts that updates automatically when you change or clear the data on the customer project worksheet.
I hope this helps, but if you have any further questions or issues, please let me know. Thanks!
I have tried this and it isn't working for me. My original formula to pull from 2 cells on 2 worksheets was:
=[@[Quantity in Stock]]-'Asphalt (2)'!E9+Asphalt!E9
I tried modifying your formula several ways - even for just one worksheet to test and I am messing up. It keeps trying to open another Excel file. On the main worksheet my column is G with inventory starting on line 4. I have tried over 50 formulas but cannot make this work.
=G4-SUM(INDIRECT(“Asphalt (2)'!E9:E”&ROW()))
=G4-SUM(INDIRECT(“Asphalt!E10:E”&ROW()))
=G4-SUM(INDIRECT(“Asphalt’!E10:E”&ROW()))