Inventory count sheets

One Excel tab per warehouse zone, ready for the count

Generate count sheets from your warehouse system

Before a cycle count or a physical inventory, inventory control freezes a snapshot of the stock in the WMS or ERP and prints one count sheet per zone. Counters write what they find on the shelf next to the system quantity, and the variance tells the verifier which bins to recount before the adjustment is posted. Your system sends the snapshot to Carbone as JSON, and an ODS template creates one named sheet per zone, converted to an Excel file.

In this example, Halvard Supply Co., a fictional hardware distributor, counts 4 zones of its Columbus distribution center. You will:

  • Create one sheet per zone, named after the zone
  • List the bins of each zone with a nested loop
  • Write unit costs and quantities as native Excel numbers
  • Compute the variance, its value and a recount status with Excel formulas
  • Convert the ODS template to XLSX

How to create one sheet per zone

1. Name the sheets with aliases

On the first sheet, define two aliases in a cell that already holds text, here the company name in A1:

{d.company.name}{#sheet1 = d.zones[i].name}{#sheet2 = d.zones[i+1].name}

Rename the first sheet {$sheet1}, then add a second, empty sheet named {$sheet2}. Carbone repeats the first sheet for each zone and names it after the zone. XLSX templates cannot create one sheet per item yet, which is why this template is an ODS file (see XLSX sheets).

2. List the bins of the zone

The header prints the zone with Zone {d.zones[i].code} · {d.zones[i].name} and the count date with :formatD: {d.count.date:formatD('MMM D, YYYY')}. The table repeats one row per bin with a nested loop:

{d.zones[i].lines[i].bin}  {d.zones[i].lines[i].sku}  {d.zones[i].lines[i].description}  {d.zones[i].lines[i].uom}
{d.zones[i].lines[i].unitCost:formatN}  {d.zones[i].lines[i].systemQty:formatN}
{d.zones[i].lines[i+1]}

With :formatN, the unit cost and the system quantity become numbers that keep the cell format (#,##0.00 and #,##0). The Counted qty and Notes cells stay empty, with a light fill that marks them as input cells.

3. Compute the variance with formulas

In an ODS template, a formula keeps its cell addresses when Carbone repeats the row. Point at the current row with INDEX(column, ROW()) so every generated row computes its own line:

Variance        =IF(INDEX(G:G,ROW())="","",INDEX(G:G,ROW())-INDEX(F:F,ROW()))
Variance value  =IF(INDEX(H:H,ROW())="","",INDEX(H:H,ROW())*INDEX(E:E,ROW()))
Status          =IF(INDEX(H:H,ROW())="","",IF(INDEX(H:H,ROW())=0,"Match",IF(ABS(INDEX(I:I,ROW()))>$I$4,"Recount","Adjust")))

The cells stay blank until a quantity is typed. A conditional format colors the status: green for Match, amber for Adjust, red for Recount when the variance value exceeds the threshold of the count ({d.count.recountThreshold:formatN} in I4). The total row sums the generated rows the same way: =SUM(I9:INDEX(I:I,ROW()-1)).

4. Convert the result to XLSX

Add "convertTo": "xlsx" to the render request. The snapshot time {d.count.snapshotAt:formatD('MMM D, h:mm A')} is printed in the warehouse time zone with the "timezone": "America/New_York" option. Each sheet keeps its page setup: landscape, fit to one page wide, header row repeated on every page, sheet name and page number in the footer.

Check out these similar templates to learn more:

Trusted by 800+ paid customers in 40+ countries

Finance
Healthcare
Insurance
Legal
Public
Retail
Energy
Software
Telecom
Dior
Thales
Younited
Danfoss
CMA CGM
Illumina
KparK
Scalingo
French Ministry of the Armed Forces
BMW
Telus
Bestseller
Flagship Biosciences
Insly
Ninox
Sodexo