Auditing & Error-Proofing: Flag A Negative Inventory Balance

Excel Formulas › Auditing & Error-Proofing

All versions

A negative stock balance means a missed receipt or a shipment that was not real. Computing the closing balance and flagging negatives catches the problem before it reaches a report.


Quick formula: Opening plus received minus shipped, flagged when below zero:
=IF(B2+C2-D2<0,"NEGATIVE","OK")

SKU-200 opens at 10, receives 0 and ships 25, so it flags NEGATIVE at -15.

Functions used (tap for the full reference guide):

The example

Three SKUs. One ships more than it had.

ABCDEF
1CaseOpeningReceivedShippedStatusClosing
2SKU-100502030OK40
3SKU-20010025NEGATIVE-15
4SKU-30004040OK0

The formula

The balance test sits inside IF:

=IF(B2+C2-D2<0,"NEGATIVE","OK") // status; closing balance = Opening+Received-Shipped

How it works

Here is the logic, one piece at a time:

  1. B2+C2-D2 is the closing balance.
  2. <0 tests for negative.
  3. IF returns NEGATIVE or OK.
  4. The second formula shows the balance.

Add conditional formatting on the status column to make negatives red.

Try it: interactive demo

Interactive

Enter opening, received and shipped quantities.

Variations

Count flags

Count negatives.

=COUNTIF(F2:F4,"NEGATIVE")

Low stock

Flag below a reorder point.

=IF(B2+C2-D2<10,"LOW","OK")

Pitfalls & errors

Zero balance is not negative; the flag uses < 0.

Check timing: a receipt posted after the shipment can create a false negative.

Review flags weekly.

Practice workbook

📊
Download the free Auditing & Error-Proofing: Flag A Negative Inventory Balance practice workbook
Edit the yellow quantity cells; status and closing balance recalculate.

Frequently asked questions

Can a negative be valid?
Only with backorders.
Fix it?
Find the missing receipt or shipment.

Stop fighting formulas. Learn them in a day.

This recipe is one of hundreds of real-world formulas we teach. Our Excel Formulas & Functions class covers lookups, logic, text, and dynamic arrays hands-on — live in Dallas–Fort Worth, Houston, Austin, Oklahoma City, Denver, or online.

See the Formulas & Functions Class

Related formulas: Check the Total Ties to the Detail · Within-Tolerance Check · Check Required Fields Are Filled

Function references: IF