bulldo.gs

Count stock while the shop stays open

At 9:20 the North counter found eight blue tape rolls. At 9:30 the shop sold and fulfilled two. The second export shows six. Upload the earlier count as today’s quantity and two rolls appear to come back.

Try the two-location stocktake

Both exports are fictional. A blank means nobody recorded a count. Change the North corner-bracket observation from blank to 0 to see how an observed empty shelf changes the review.

ItemLocationBeforeAfterCountReview

The nine North tool trays stayed on hand while two became committed. The duplicate shelf-pin rows need a bin check. Equal endpoint quantities can hide a sale and a restock between exports. Look at timestamps and movement history before deciding on an adjustment.

Use the exercise in your own private Sheet

Download the worksheet (.xlsx)Download the Sheets function (.gs)

  1. Open the workbook as a Google Sheet. Start with the supplied Before, After and Counts tabs.
  2. Open Extensions → Apps Script, paste the function and save it. On a new empty tab, paste the formula from the workbook’s Start tab into A1. The function returns a review list inside your sheet.
  3. For another count, keep two untouched All states exports covering the same products and locations, one before and one after. Preserve text identifiers on import. Supply recorded physical counts by exact handle, option values and location, with the count time in your own log.

Shopify’s overwrite protection compares On hand (current) with the live inventory. This exercise preserves the source exports and generates a review grid. It has no store connection. A sale, a transfer, or fulfillment can change the result after either export.

How many days will this stock last?

Once the count is settled, compare it with the units sold in the last seven full days. Paper tape has 14 units on hand and seven sold. At one sale per day, that gives an estimated 14 days of cover.

Explore four SKUs in Vega EditorDownload the stock-cover workbook (.xlsx)Download the editable report (.json)

In the report, choose TAG-02 for an observed stockout, WRAP-03 for a week with zero sales, or CLIP-04 for a missing count. Only the stockout displays zero days. All four SKUs are fictional.

Open the workbook in Excel or Google Sheets. On the Cover tab, change D2 from 14 to 7. F2 now shows seven days. The report opens with its own copy of the sample data. To try a different count there, open the editable JSON in Vega Editor, change the paper tape’s on_hand value and run the report.

Bring the stock-cover formula into your own Google Sheet

Open the example Sheet with eight stock-cover cases. Copy its URL. In your own spreadsheet, open Data → Named functions → Import function, paste the URL in the picker, and select STOCK_COVER_7D. Importing replaces an existing function with the same name, so check your list first.

With units on hand in B2 and units sold over the last seven complete days in C2, enter =STOCK_COVER_7D(B2,C2). Count 14 units with seven sold and the result is 14 days. Change the count to zero and it returns the number 0. Zero sales returns “No observed sales”. A missing, negative or nonnumeric input returns “Check inputs”. The calculation uses only the two cells you pass to it.