FormulaCraft

How to calculate stock on hand in Excel and Google Sheets

Excel & Google Sheets
=SUM(B2:B4)-SUM(C2:C4)

Verified example

Computed by a real spreadsheet engine on the sample data below.

ItemInitial StockSold/Used
Apples10030
Bananas15050
Cherries20070

=SUM(B2:B4)-SUM(C2:C4)300

Try it with your data

Edit the grid or formula, then run it through a real spreadsheet engine — no signup.

Sample data — click any cell to edit

Runs server-side · free · no signup

Step by step

  1. 1Enter your initial stock quantities in column B.
  2. 2Enter the quantities sold or used in column C.
  3. 3In a new cell, use the formula =SUM(B2:B4)-SUM(C2:C4) to calculate stock on hand.

Tips

Working on a sheet you inherited? Run the Auditor on the whole file first — it flags every #REF!, #N/A, broken column pattern, and inconsistent formula in seconds, free, no signup.

Frequently asked

What if I have multiple locations?

You can extend the formula by adding more SUM functions for each location.

Can I include negative stock?

No, stock on hand should not be negative. Consider adjusting your inventory records.

How often should I update my stock on hand?

Update it after every transaction to maintain accuracy.

Formulas used

Written and reviewed by FormulaCraft Team. Each formula on this page is run through our verification engine before publishing.

Last reviewed: