Hornada Español

Sales forecast in Excel: the formula

Put in one row the pieces sold on the same weekday in the last 4 weeks, take the average with AVERAGE or give more weight to recent weeks with SUM, add your reserve and round with ROUND. One row per product and one sheet per weekday.

Updated: 2026-11-27

The steps

  • 1. One row per product. In columns B to E, the pieces sold on the same weekday (for example, Saturdays) of the last 4 weeks, from the oldest to the most recent.
  • 2. In F, the simple average of those 4 weeks.
  • 3. In G, the average with more weight on recent weeks: each week times a weight, with weights that add up to 1 (here 0.1, 0.2, 0.3 and 0.4).
  • 4. In H, the pieces to bake: what is in G plus your reserve, rounded to a whole piece.
  • 5. Every week, delete the oldest column and paste the new one; check that the function names are those of your Excel's language (a Spanish Excel uses PROMEDIO, SUMA and REDONDEAR).

An example (invented numbers)

A: ProductB: 4 weeks agoC: 3 agoD: 2 agoE: last weekF: averageG: weighted to recentH: to bake (10% reserve)
Concha210225205230217.5219.5241
Bolillo400380410420402.5407.0448
Cuernito8090859587.589.598

These are invented pieces, and so is the 10% reserve: you choose yours. For the concha: average = (210 + 225 + 205 + 230) over 4 = 870 over 4 = 217.5; weighted = 21 + 45 + 61.5 + 92 = 219.5; with reserve, 219.5 × 1.1 = 241.45, which is 241 pieces. Bolillo: 40 + 76 + 123 + 168 = 407, and 407 × 1.1 = 447.7, which is 448. Cuernito: 8 + 18 + 25.5 + 38 = 89.5, and 89.5 × 1.1 = 98.45, which is 98.

CellWhat it doesFormula (row 2)
F2Average of the 4 weeks=AVERAGE(B2:E2)
G2Weighted average=SUM(B2*0.1,C2*0.2,D2*0.3,E2*0.4)
H2Reserve and rounding to a piece=ROUND(G2*1.1,0)

If your Excel separates arguments with a semicolon, change the commas in the formulas. For another reserve, change 1.1: with 15% it would be 1.15.

What to watch

  • Use pieces, not money: to bake, what matters is how many pieces sold, and two products of different price cannot be compared in pesos.
  • A day on which the product ran out shows what you sold, not what would have sold: you may want to raise that figure by hand.
  • If one of the 4 weeks had a special date (10 May, Holy Week), do not enter it as if it were a normal day.
  • With only 4 weeks, one odd week moves the result a lot: weight on what is recent helps follow a change, but it also copies an odd day.
  • If you bake by whole trays, round to the tray; that calculation is in another guide.

How Hornada does it

Hornada forecasts each product for each day starting from the same weekday of recent weeks, with more weight on the recent ones, and also learns the special dates from your history, which a sheet like this does not. The sheet in this guide is something you build yourself; it does not describe Hornada's calculation. It builds the plan in batches with the reserve you choose, corrects the batches still to come with what has already sold and sends it by e-mail at 7:00.

Frequently asked questions

Can I use 3 or 5 weeks instead of 4?

Yes; with few weeks the result jumps more and with many it is slow to notice a change. Change the columns and the weights, which must still add up to 1.

How do I choose the weights?

With more weight on what is recent; those in the sheet (0.1, 0.2, 0.3, 0.4) are an example. Compare several on your history and see which one missed least.

One sheet for every day?

Better one per weekday: that way you compare Saturdays with Saturdays and do not mix patterns.

Try the free diagnosisUpload your sales report and see the result right away. No sign-up; the file is not stored.

Get my 30 days free (WhatsApp)

← Hornada