Excel Guides

How to Check Which Reserved Serial Numbers Are Available in Excel

The warehouse shows six units on hand. Four qualify under your availability rules. The order needs three specific serial numbers, and only two of those qualify. A stock count can tell you whether you have enough units in total. To check this order, you also need to match the exact serials.

An October 2026 ERPNext issue reported a serial that appeared in the warehouse ledger but could not be selected while a closed reservation still affected selection. The issue has since closed. If your system flags a serial, start with the stock ledger and reservation entries for that serial. ERPNext’s stock reservation documentation shows where reservations come from.

Export the stock, reservations, and requested serials

Synthetic example. All three extracts use the same snapshot. Each serial represents one unit of item X. The stock extract records physical location and condition. The reservation extract records the status and how much of a hold has already been processed. The request lists exact serials for order O1. Substitution is outside this order’s instructions.

Create sheets named SerialStock, Reservations, Request, and Review. Import each of the following CSV blocks into a separate sheet and place its header at A5. Keep serials and order IDs as text and use numbers for reservation quantities and document status.

SerialStock

Serial,Item,Warehouse,Condition
SN001,X,Main,Released
SN002,X,Main,Released
SN003,X,Main,Released
SN004,X,Main,Released
SN005,X,Main,Released
SN006,X,Main,Released
SN007,X,Remote,Released

Reservations

Reservation,Serial,Warehouse,Status,Doc status,Reserved,Delivered,Transferred,Consumed
R1,SN001,Main,Active,1,1,0,0,0
R2,SN002,Main,Closed,1,1,0,1,0
R3,SN003,Main,Cancelled,2,1,0,0,0
R4,SN004,Main,Active,1,1,0,0,1
R5,SN005,Main,Active,1,1,0,0,0

Request

Order,Requested serial
O1,SN001
O1,SN002
O1,SN006

Check which reservations still hold a unit

Use your warehouse’s actual status rules. In this exercise, document status 1 means submitted. A row holds a unit if it is submitted, Active, and reserved quantity exceeds delivered plus transferred plus consumed. The three processed quantities represent separate events in this example. If your export overlaps them, reconcile the event types first.

In Reservations!J5:L5 enter Input check, Live hold, and Undelivered filter. Copy the next three formulas to J6, K6, and L6, respectively, and fill down through row 10. The third formula intentionally uses only submission status and whether delivered is below reserved. It gives you a second count to compare.

=IF(OR(A6="",COUNTIF($A$6:$A$10,A6)<>1,COUNTIFS(SerialStock!$A$6:$A$12,B6,SerialStock!$C$6:$C$12,C6)<>1,AND(D6<>"Active",D6<>"Closed",D6<>"Cancelled",D6<>"Delivered"),NOT(ISNUMBER(E6)),NOT(ISNUMBER(F6)),NOT(ISNUMBER(G6)),NOT(ISNUMBER(H6)),NOT(ISNUMBER(I6)),E6<0,E6>2,E6<>INT(E6),F6<>1,G6<0,H6<0,I6<0,G6<>INT(G6),H6<>INT(H6),I6<>INT(I6),G6+H6+I6>F6),"Review","Ready")
=IF(J6="Review",0,IF(AND(E6=1,D6="Active",F6>G6+H6+I6),1,0))
=IF(J6="Review",0,IF(AND(E6=1,G6<F6),1,0))

Match live holds to physical stock

In SerialStock!E5:F5 enter Input check and Policy eligible. Enter the next formulas in E6 and F6 and fill through row 12. The eligibility flag requires presence at Main, Released condition, and zero live reservation rows for the same serial and warehouse. Correct any Review flags before using the totals.

=IF(OR(A6="",COUNTIF($A$6:$A$12,A6)<>1,B6<>"X",AND(C6<>"Main",C6<>"Remote"),AND(D6<>"Released",D6<>"Hold")),"Review","Ready")
=IF(OR(E6="Review",COUNTIF(Reservations!$J$6:$J$10,"Review")>0),"Review",IF(AND(C6="Main",D6="Released",COUNTIFS(Reservations!$B$6:$B$10,A6,Reservations!$C$6:$C$10,C6,Reservations!$K$6:$K$10,1)=0),1,0))

In Request!C5 enter Policy eligible. Enter this formula in C6 and fill through row 8. The check looks up the exact requested serial on each line.

=IF(OR(COUNTIF($B$6:$B$8,B6)<>1,COUNTIF(SerialStock!$A$6:$A$12,B6)<>1,COUNTIF(SerialStock!$F$6:$F$12,"Review")>0),"Review",SUMIF(SerialStock!$A$6:$A$12,B6,SerialStock!$F$6:$F$12))

Reconcile the two counts and check the order

In Review!A17:F17 use Serial, Warehouse, Policy eligible, Live hold rows, Undelivered hold rows, and Eligible under undelivered filter. Enter the next six formulas across A18:F18 in order and fill through row 24. Counting serial rows with a positive number of holds avoids double counting a serial with multiple matching rows.

=SerialStock!A6
=SerialStock!C6
=SerialStock!F6
=IF(B18="Main",COUNTIFS(Reservations!$B$6:$B$10,A18,Reservations!$K$6:$K$10,1),0)
=IF(B18="Main",COUNTIFS(Reservations!$B$6:$B$10,A18,Reservations!$L$6:$L$10,1),0)
=IF(AND(B18="Main",SerialStock!D6="Released",E18=0),1,0)

On Review, place the following nine formulas in B6:B14 in order. The outputs are input exceptions, physical serials at Main, Main serials with live holds, policy-eligible serials, Main serials flagged by the undelivered filter, eligible serials under that filter, requested serials, qualifying requested serials, and the request outcome.

=COUNTIF(SerialStock!E6:E12,"Review")+COUNTIF(Reservations!J6:J10,"Review")+COUNTIF(Request!C6:C8,"Review")
=IF($B$6>0,"Review inputs",COUNTIF(SerialStock!C6:C12,"Main"))
=IF($B$6>0,"Review inputs",COUNTIF(D18:D24,">0"))
=IF($B$6>0,"Review inputs",SUM(SerialStock!F6:F12))
=IF($B$6>0,"Review inputs",COUNTIF(E18:E24,">0"))
=IF($B$6>0,"Review inputs",COUNTIF(F18:F24,1))
=IF($B$6>0,"Review inputs",COUNTA(Request!B6:B8))
=IF($B$6>0,"Review inputs",SUM(Request!C6:C8))
=IF($B$6>0,"Review inputs",IF(B13=B12,"All requested qualify","Requested serials blocked"))

Expected results. Six serials are at Main. SN001 and SN005 have live holds. The eligible list is SN002, SN003, SN004, and SN006. The undelivered filter flags four holds because it also catches the closed and fully transferred SN002 and the fully consumed SN004. It leaves only two eligible in the pool. Of the three serials requested on O1, SN002 and SN006 qualify. SN001 is the blocker.

To check that the report responds to changes, replace SN006 on the request with SN007. The pool still contains four eligible serials, while only one of the three requested serials qualifies because SN007 is at Remote. Clear the reservation status in Reservations!D7 and the summary should show Review inputs. Restore the original inputs when done.

Use the same check on the next export

For larger extracts, use Power Query to join serial and warehouse after grouping live reservation rows by that key. Start from physical stock so a serial with zero matching reservations stays visible. Join the resulting eligibility list to the requested serials. Preserve nulls for missing stock records and review them before treating the request as complete. The Excel ranges above cover only the rows in this exercise.

To review a workbook in Jolene.pro, ask it to compare the stock, reservation, and request sheets and cite the source cells behind each blocked serial. For SN002 in the example, compare its physical warehouse and condition in SerialStock!C7:D7 with the status and processed quantities in Reservations!D7:I7. That comparison tells you what to investigate in the warehouse system. The Excel figures were checked independently. A live Jolene.pro result was not verified.

See why stock stays reserved after a partial shipment for a related quantity-level check, or find more examples in Workbook Studies.

Leave a comment