<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Daytrading</title>
    <description>The latest articles on DEV Community by Daytrading (@daytrading_de698971ef7942).</description>
    <link>https://dev.to/daytrading_de698971ef7942</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4254348%2F6bcd36ab-9f15-4e3e-99f2-0b856af97fba.png</url>
      <title>DEV Community: Daytrading</title>
      <link>https://dev.to/daytrading_de698971ef7942</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/daytrading_de698971ef7942"/>
    <language>en</language>
    <item>
      <title>Debt snowball vs avalanche in Excel and Google Sheets: a month-by-month payoff model with plain formulas</title>
      <dc:creator>Daytrading</dc:creator>
      <pubDate>Fri, 04 Dec 2026 09:17:13 +0000</pubDate>
      <link>https://dev.to/daytrading_de698971ef7942/debt-snowball-vs-avalanche-in-excel-and-google-sheets-a-month-by-month-payoff-model-with-plain-1j1k</link>
      <guid>https://dev.to/daytrading_de698971ef7942/debt-snowball-vs-avalanche-in-excel-and-google-sheets-a-month-by-month-payoff-model-with-plain-1j1k</guid>
      <description>&lt;p&gt;Online debt calculators give you one number and hide the maths. A spreadsheet can show you the whole thing: which debt gets the extra money each month, when each one is cleared, and how much interest each method costs. This tutorial builds that model with plain formulas (&lt;code&gt;SUMPRODUCT&lt;/code&gt;, &lt;code&gt;MATCH&lt;/code&gt;, &lt;code&gt;INDEX&lt;/code&gt;, &lt;code&gt;MIN&lt;/code&gt;, &lt;code&gt;MAX&lt;/code&gt;, &lt;code&gt;ROUND&lt;/code&gt;). It works in Excel 2010+ and Google Sheets.&lt;/p&gt;

&lt;p&gt;The two methods differ only in the order you attack debts:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Snowball:&lt;/strong&gt; smallest balance first. You clear accounts sooner, which many people find motivating.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Avalanche:&lt;/strong&gt; highest interest rate first. Usually costs less interest.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Either way, every debt gets its minimum each month, all spare money goes to the top-priority debt, and when a debt is cleared its minimum "rolls" into the next one. That rollover is the part people find hard to model. Below it falls out of one design decision: &lt;strong&gt;keep the total monthly budget fixed&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;em&gt;This is a planning model, not financial advice. It assumes fixed minimums, monthly interest and no new borrowing.&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The Debts sheet
&lt;/h2&gt;

&lt;p&gt;Create a sheet called &lt;code&gt;Debts&lt;/code&gt; with headers in row 1 and up to four debts in rows 2–5 (the example data is fictional):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;A&lt;/th&gt;
&lt;th&gt;B&lt;/th&gt;
&lt;th&gt;C&lt;/th&gt;
&lt;th&gt;D&lt;/th&gt;
&lt;th&gt;E&lt;/th&gt;
&lt;th&gt;F&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Debt&lt;/td&gt;
&lt;td&gt;Balance&lt;/td&gt;
&lt;td&gt;APR&lt;/td&gt;
&lt;td&gt;Minimum&lt;/td&gt;
&lt;td&gt;Snowball #&lt;/td&gt;
&lt;td&gt;Avalanche #&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Card A&lt;/td&gt;
&lt;td&gt;4850&lt;/td&gt;
&lt;td&gt;24.99%&lt;/td&gt;
&lt;td&gt;145&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Store card&lt;/td&gt;
&lt;td&gt;1240&lt;/td&gt;
&lt;td&gt;27.9%&lt;/td&gt;
&lt;td&gt;45&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Car loan&lt;/td&gt;
&lt;td&gt;9600&lt;/td&gt;
&lt;td&gt;6.9%&lt;/td&gt;
&lt;td&gt;260&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;Card B&lt;/td&gt;
&lt;td&gt;1240&lt;/td&gt;
&lt;td&gt;19.9%&lt;/td&gt;
&lt;td&gt;40&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Off to the side, put the extra amount you can pay and the total monthly budget:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;H2: Extra per month     I2: 300
H3: Monthly budget      I3: =SUM(D2:D5)+I2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  2. Ranking without sorting
&lt;/h2&gt;

&lt;p&gt;You don't want to physically sort the table, because then the user's input order changes. Instead, compute each debt's rank with &lt;code&gt;SUMPRODUCT&lt;/code&gt;. A debt's rank is 1 plus the number of debts that should come before it.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Snowball rank (E2):&lt;/strong&gt; smaller balances come first, and ties go to whichever row is higher up.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(B2&amp;lt;=0,"",1+SUMPRODUCT(($B$2:$B$5&amp;gt;0)*(($B$2:$B$5&amp;lt;B2)+($B$2:$B$5=B2)*(ROW($B$2:$B$5)&amp;lt;ROW(B2)))))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;Avalanche rank (F2):&lt;/strong&gt; higher APR comes first. Ties go to the smaller balance, then to row order.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(B2&amp;lt;=0,"",1+SUMPRODUCT(($B$2:$B$5&amp;gt;0)*(($C$2:$C$5&amp;gt;C2)+($C$2:$C$5=C2)*($B$2:$B$5&amp;lt;B2)+($C$2:$C$5=C2)*($B$2:$B$5=B2)*(ROW($B$2:$B$5)&amp;lt;ROW(B2)))))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fill both down to row 5. The &lt;code&gt;ROW()&lt;/code&gt; tie-breaker matters. Without it, Store card and Card B (both 1,240) would share rank 1 and nothing would be rank 2, which breaks the lookup in the next step. The &lt;code&gt;($B$2:$B$5&amp;gt;0)&lt;/code&gt; factor ignores empty or paid-off rows.&lt;/p&gt;

&lt;p&gt;One more column is worth adding, because it catches the most common input mistake:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;G2: =IF(B2*C2/12&amp;gt;=D2,"Minimum doesn't cover interest","OK")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. A plan sheet in priority order
&lt;/h2&gt;

&lt;p&gt;Create a sheet called &lt;code&gt;Snowball&lt;/code&gt;. Rows 2–5 list the debts &lt;strong&gt;in payoff order&lt;/strong&gt;, pulled from &lt;code&gt;Debts&lt;/code&gt; by rank:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;A&lt;/th&gt;
&lt;th&gt;B&lt;/th&gt;
&lt;th&gt;C&lt;/th&gt;
&lt;th&gt;D&lt;/th&gt;
&lt;th&gt;E&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Priority&lt;/td&gt;
&lt;td&gt;Debt row&lt;/td&gt;
&lt;td&gt;Balance&lt;/td&gt;
&lt;td&gt;Monthly rate&lt;/td&gt;
&lt;td&gt;Minimum&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;B2: =IFERROR(MATCH(A2,Debts!$E$2:$E$5,0),0)
C2: =IF(B2=0,0,INDEX(Debts!$B$2:$B$5,B2))
D2: =IF(B2=0,0,INDEX(Debts!$C$2:$C$5,B2)/12)
E2: =IF(B2=0,0,INDEX(Debts!$D$2:$D$5,B2))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fill down to row 5. Now P1 is always "the debt we're attacking first", whichever row it came from.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The monthly simulation
&lt;/h2&gt;

&lt;p&gt;Starting in row 8, each debt gets four columns: interest, minimum, extra and balance. P1 uses D–G, P2 uses H–K, P3 uses L–O and P4 uses P–S. Columns A–C hold the month, the budget and the money left over for extra payments.&lt;/p&gt;

&lt;p&gt;Row 9 is "month 0" and just holds the opening balances:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;A9: 0     G9: =$C$2     K9: =$C$3     O9: =$C$4     S9: =$C$5
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Row 10 is month 1. For &lt;strong&gt;P1&lt;/strong&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;D10: =ROUND(G9*$D$2,2)                  interest this month
E10: =MIN($E$2,G9+D10)                  minimum, capped at what's owed
F10: =MAX(0,MIN(G9+D10-E10,$C10))       extra: all spare money, up to what's left
G10: =ROUND(G9+D10-E10-F10,2)           closing balance
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;P2&lt;/strong&gt; uses the same pattern, but its extra is whatever P1 didn't need:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;H10: =ROUND(K9*$D$3,2)
I10: =MIN($E$3,K9+H10)
J10: =MAX(0,MIN(K9+H10-I10,$C10-F10))
K10: =ROUND(K9+H10-I10-J10,2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;strong&gt;P3&lt;/strong&gt; subtracts &lt;code&gt;F10&lt;/code&gt; and &lt;code&gt;J10&lt;/code&gt;, and &lt;strong&gt;P4&lt;/strong&gt; subtracts &lt;code&gt;F10&lt;/code&gt;, &lt;code&gt;J10&lt;/code&gt; and &lt;code&gt;N10&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;N10: =MAX(0,MIN(O9+L10-M10,$C10-F10-J10))
R10: =MAX(0,MIN(S9+P10-Q10,$C10-F10-J10-N10))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;(L, M, O, P, Q and S follow the P1 pattern with rows 4 and 5 of the priority table.)&lt;/p&gt;

&lt;p&gt;Now the shared columns:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;A10: =A9+1
B10: =Debts!$I$3
C10: =MAX(0,B10-(E10+I10+M10+Q10))
V10: =D10+H10+L10+P10        total interest this month
W10: =G10+K10+O10+S10        total balance after payments
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Select A10:W10 and fill down to row 369. That gives you 360 months, or 30 years.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why the rollover just works
&lt;/h3&gt;

&lt;p&gt;Look at &lt;code&gt;C10&lt;/code&gt;: the budget minus this month's minimums. Once P1 hits zero, its minimum becomes &lt;code&gt;MIN($E$2, 0) = 0&lt;/code&gt;, so its 145 is no longer spent on minimums and shows up in "Left for extra" the next month. Because the budget stays the same, the freed-up minimum flows automatically to whichever debt is now first in line. You don't need a "paid off" flag or a special case anywhere.&lt;/p&gt;

&lt;p&gt;Two details keep it honest:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;&lt;code&gt;ROUND(...,2)&lt;/code&gt; on interest and balance.&lt;/strong&gt; Without it, floating-point leftovers like 0.0000001 keep a debt "alive" forever and push your debt-free date out.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The &lt;code&gt;MIN&lt;/code&gt; caps.&lt;/strong&gt; A payment can never exceed what's owed, so no money disappears into negative balances.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  5. Results
&lt;/h2&gt;

&lt;p&gt;Put these near the top of the &lt;code&gt;Snowball&lt;/code&gt; sheet:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;H1: Months to debt-free   I1: =IF(COUNTIF(W10:W369,"&amp;gt;0")&amp;gt;=360,"Not within 30 yrs",COUNTIF(W10:W369,"&amp;gt;0")+1)
H2: Total interest        I2: =SUM(V10:V369)
F2: Paid off (month #)        =IF(C2&amp;lt;=0,"",COUNTIF(G$10:G$369,"&amp;gt;0")+1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Use G for P1, K for P2, O for P3 and S for P4 in F2:F5. If you have a start month in a cell such as &lt;code&gt;Debts!I4&lt;/code&gt;, the debt-free date is &lt;code&gt;=EDATE(Debts!$I$4,I1-1)&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Compare the two methods
&lt;/h2&gt;

&lt;p&gt;Duplicate the &lt;code&gt;Snowball&lt;/code&gt; sheet and rename the copy &lt;code&gt;Avalanche&lt;/code&gt;. In its column B, change &lt;code&gt;Debts!$E$2:$E$5&lt;/code&gt; to &lt;code&gt;Debts!$F$2:$F$5&lt;/code&gt;. That's the only edit. Everything else is identical, so any difference in the results comes purely from the order.&lt;/p&gt;

&lt;p&gt;With the fictional example above and 300 extra per month, both plans clear everything in month 25. Snowball costs 2,287.18 in interest and avalanche costs 2,235.72. Snowball clears its second debt by month 7, while avalanche doesn't clear its second debt until month 15. That's the real trade-off in numbers: a small interest difference against earlier wins. Try your own figures, because the gap grows with bigger balances and wider rate spreads.&lt;/p&gt;

&lt;p&gt;For a "minimums only" baseline, make a third copy, set its &lt;code&gt;B10&lt;/code&gt; to &lt;code&gt;=SUM(Debts!$D$2:$D$5)&lt;/code&gt; and fill that down to &lt;code&gt;B369&lt;/code&gt;. If that copy says "Not within 30 yrs", a minimum is too low to ever clear its debt. The check column from step 2 will tell you which one.&lt;/p&gt;

&lt;h2&gt;
  
  
  The finished version
&lt;/h2&gt;

&lt;p&gt;I sell a workbook that builds on this same model, called &lt;strong&gt;Money Map&lt;/strong&gt;. It handles up to 10 debts, shows snowball, avalanche and minimums-only side by side with interest saved and a debt-free date, and includes a paycheck-by-paycheck budget, spending log, savings goals and dashboard. It works in Excel and Google Sheets with no macros. It's on Gumroad: &lt;a href="https://khalidmasscom.gumroad.com/l/ruroa" rel="noopener noreferrer"&gt;https://khalidmasscom.gumroad.com/l/ruroa&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I run the store that sells Money Map. Everything in this tutorial works on its own without it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>excel</category>
      <category>spreadsheets</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Build a 2027 monthly budget with sinking funds in Excel or Google Sheets (SUMIFS by month + target / months left)</title>
      <dc:creator>Daytrading</dc:creator>
      <pubDate>Wed, 02 Dec 2026 09:17:13 +0000</pubDate>
      <link>https://dev.to/daytrading_de698971ef7942/build-a-2027-monthly-budget-with-sinking-funds-in-excel-or-google-sheets-sumifs-by-month-target-5hdn</link>
      <guid>https://dev.to/daytrading_de698971ef7942/build-a-2027-monthly-budget-with-sinking-funds-in-excel-or-google-sheets-sumifs-by-month-target-5hdn</guid>
      <description>&lt;p&gt;Most budgets break in the same three months a year: the month car insurance renews, the month annual subscriptions renew, and December. None of those costs are surprises. They're just irregular, and a budget that only looks at "this month" can't see them coming.&lt;/p&gt;

&lt;p&gt;The fix is a &lt;strong&gt;sinking fund&lt;/strong&gt;: for each irregular cost you set a target, a due date, and save a slice every month until the bill lands. This tutorial builds a small 2027 budget that does two things with plain formulas:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Totals your real spending per category per month with &lt;code&gt;SUMIFS&lt;/code&gt; on date ranges.&lt;/li&gt;
&lt;li&gt;Works out each sinking fund's monthly amount as &lt;strong&gt;(target − saved) / months left&lt;/strong&gt;, and feeds the total back into the budget.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Everything here works in Excel 2010+ and Google Sheets. No macros, no scripts. The example data is made up.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. The Transactions sheet
&lt;/h2&gt;

&lt;p&gt;Create a sheet called &lt;code&gt;Transactions&lt;/code&gt; with three columns:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;A&lt;/th&gt;
&lt;th&gt;B&lt;/th&gt;
&lt;th&gt;C&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Date&lt;/td&gt;
&lt;td&gt;Category&lt;/td&gt;
&lt;td&gt;Amount&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;03/01/2027&lt;/td&gt;
&lt;td&gt;Groceries&lt;/td&gt;
&lt;td&gt;82.40&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;05/01/2027&lt;/td&gt;
&lt;td&gt;Rent&lt;/td&gt;
&lt;td&gt;1150&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;11/01/2027&lt;/td&gt;
&lt;td&gt;Transport&lt;/td&gt;
&lt;td&gt;46.00&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Type real dates in column A (not text), and positive amounts for spending. Add a dropdown on column B so category names always match the budget exactly. In Excel: Data &amp;gt; Data Validation &amp;gt; List; in Sheets: Data &amp;gt; Data validation &amp;gt; Dropdown (from a range). Point it at your category list in the next step.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The Budget sheet: months as real dates
&lt;/h2&gt;

&lt;p&gt;Create a sheet called &lt;code&gt;Budget&lt;/code&gt;. Put categories in column A starting at A3, and the twelve months across row 1:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;B1&lt;/code&gt;: &lt;code&gt;=DATE(2027,1,1)&lt;/code&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;C1&lt;/code&gt;: &lt;code&gt;=EDATE(B1,1)&lt;/code&gt;, then fill right to &lt;code&gt;M1&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Format row 1 with the custom number format &lt;code&gt;mmm&lt;/code&gt; so it reads Jan, Feb, Mar. The cells still hold the first day of each month, and that's what makes the next formula simple.&lt;/p&gt;

&lt;p&gt;Leave row 2 for labels if you like, and list categories from A3 down: Rent, Groceries, Transport, Utilities, Eating out, and so on.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Actual spending per category per month
&lt;/h2&gt;

&lt;p&gt;In &lt;code&gt;B3&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=SUMIFS(Transactions!$C:$C, Transactions!$B:$B, $A3, Transactions!$A:$A, "&amp;gt;="&amp;amp;B$1, Transactions!$A:$A, "&amp;lt;"&amp;amp;EDATE(B$1,1))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fill it right to &lt;code&gt;M3&lt;/code&gt; and down through your categories.&lt;/p&gt;

&lt;p&gt;How it works:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;Transactions!$B:$B, $A3&lt;/code&gt; keeps only rows for this category.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;"&amp;gt;="&amp;amp;B$1&lt;/code&gt; keeps dates on or after the first of the month.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;"&amp;lt;"&amp;amp;EDATE(B$1,1)&lt;/code&gt; keeps dates before the first of the &lt;em&gt;next&lt;/em&gt; month.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;That half-open range (&lt;code&gt;&amp;gt;=&lt;/code&gt; start, &lt;code&gt;&amp;lt;&lt;/code&gt; next start) is the reliable way to bucket by month. It doesn't care how many days a month has, and it doesn't miss transactions that carry a time of day, which can happen with bank exports where &lt;code&gt;&amp;lt;=31/01/2027&lt;/code&gt; would drop anything after midnight on the 31st.&lt;/p&gt;

&lt;p&gt;The mixed references matter: &lt;code&gt;$A3&lt;/code&gt; locks the column so the category stays put when you fill right, and &lt;code&gt;B$1&lt;/code&gt; locks the row so the month stays put when you fill down.&lt;/p&gt;

&lt;p&gt;Add a total row under the categories with &lt;code&gt;=SUM(B3:B14)&lt;/code&gt; (adjust to your range) and fill right.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. The Sinking Funds sheet
&lt;/h2&gt;

&lt;p&gt;Create a sheet called &lt;code&gt;Sinking&lt;/code&gt; with this layout:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;A&lt;/th&gt;
&lt;th&gt;B&lt;/th&gt;
&lt;th&gt;C&lt;/th&gt;
&lt;th&gt;D&lt;/th&gt;
&lt;th&gt;E&lt;/th&gt;
&lt;th&gt;F&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;Fund&lt;/td&gt;
&lt;td&gt;Target&lt;/td&gt;
&lt;td&gt;Due date&lt;/td&gt;
&lt;td&gt;Saved so far&lt;/td&gt;
&lt;td&gt;Months left&lt;/td&gt;
&lt;td&gt;Monthly&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;Car insurance&lt;/td&gt;
&lt;td&gt;840&lt;/td&gt;
&lt;td&gt;01/07/2027&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;Gifts&lt;/td&gt;
&lt;td&gt;600&lt;/td&gt;
&lt;td&gt;01/12/2027&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;Software renewals&lt;/td&gt;
&lt;td&gt;120&lt;/td&gt;
&lt;td&gt;01/03/2027&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Then put the "as of" month in &lt;code&gt;H1&lt;/code&gt;. For planning the whole year from January, type &lt;code&gt;=DATE(2027,1,1)&lt;/code&gt;. Once the year is underway, switch it to the current month:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=EOMONTH(TODAY(),-1)+1
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That returns the first day of the current month.&lt;/p&gt;

&lt;h3&gt;
  
  
  Months left
&lt;/h3&gt;

&lt;p&gt;In &lt;code&gt;E2&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(A2="", 0, MAX(1, (YEAR(C2)-YEAR($H$1))*12 + MONTH(C2)-MONTH($H$1)))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This counts whole months from the "as of" month up to, but not including, the due month. A bill due in July, planned from January, gives 6: you save in January through June and the money is ready on 1 July. &lt;code&gt;MAX(1, …)&lt;/code&gt; stops a division by zero when you reach the due month or a date has passed.&lt;/p&gt;

&lt;p&gt;If you'd rather count the due month itself as a saving month, add &lt;code&gt;+1&lt;/code&gt; inside the &lt;code&gt;MAX&lt;/code&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Monthly amount
&lt;/h3&gt;

&lt;p&gt;In &lt;code&gt;F2&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(A2="", 0, IF(D2&amp;gt;=B2, 0, ROUNDUP((B2-D2)/E2, 0)))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fill both formulas down 10–15 rows so you have room for more funds. With the example above and &lt;code&gt;H1&lt;/code&gt; set to January:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Car insurance: (840 − 0) / 6 = &lt;strong&gt;140&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Gifts: 600 / 11 = 54.55, rounded up to &lt;strong&gt;55&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;Software renewals: 120 / 2 = &lt;strong&gt;60&lt;/strong&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;code&gt;ROUNDUP&lt;/code&gt; to whole units keeps you slightly ahead, not slightly short.&lt;/p&gt;

&lt;h3&gt;
  
  
  Why "target minus saved, divided by months left" beats a fixed amount
&lt;/h3&gt;

&lt;p&gt;A fixed "save 70 a month" plan silently fails the first time you skip a month. This formula recalculates every time you update &lt;strong&gt;Saved so far&lt;/strong&gt; and the "as of" month. Say it's March, you've only managed 140 for the car insurance instead of 280. With &lt;code&gt;H1&lt;/code&gt; on March, months left becomes 4 and the monthly amount becomes (840 − 140) / 4 = &lt;strong&gt;175&lt;/strong&gt;. The sheet tells you exactly how much to catch up, spread over the months you have left.&lt;/p&gt;

&lt;p&gt;Optional status column in &lt;code&gt;G2&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(A2="", "", IF(D2&amp;gt;=B2, "Funded", "Save " &amp;amp; TEXT(F2, "0") &amp;amp; "/mo"))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  5. Feed sinking funds back into the budget
&lt;/h2&gt;

&lt;p&gt;Add a row on &lt;code&gt;Budget&lt;/code&gt; called &lt;strong&gt;Sinking funds&lt;/strong&gt; (say row 16). In &lt;code&gt;B16&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=SUMPRODUCT((Sinking!$C$2:$C$16&amp;gt;B$1) * (B$1&amp;gt;=Sinking!$H$1) * Sinking!$F$2:$F$16)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Fill right to &lt;code&gt;M16&lt;/code&gt;. For each month, this adds up the monthly amount of every fund whose due date is still ahead, and only from the "as of" month onwards. With the example data, January and February each plan 255 (140 + 55 + 60), March drops to 195 because the software renewal is due on 1 March, and July drops again once the insurance is paid.&lt;/p&gt;

&lt;p&gt;The empty rows are safe because the months-left and monthly formulas return 0 rather than blank text. Text in a &lt;code&gt;SUMPRODUCT&lt;/code&gt; multiplication would give &lt;code&gt;#VALUE!&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Planned vs actual, and what's left
&lt;/h2&gt;

&lt;p&gt;Below the actuals, add a &lt;strong&gt;Planned spending&lt;/strong&gt; row (say row 18, your planned total for regular categories) and an &lt;strong&gt;Income&lt;/strong&gt; row (row 20, your expected take-home pay per month). Then:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Left to spend or save, in row 22: &lt;code&gt;=B20-B18-B16&lt;/code&gt; (income − planned spending − sinking funds), filled right&lt;/li&gt;
&lt;li&gt;Variance per category: put your planned amounts in a second block and subtract, e.g. &lt;code&gt;=B25-B3&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Add conditional formatting to the variance block so negative values turn red. In Excel: Home &amp;gt; Conditional Formatting &amp;gt; Highlight Cells Rules &amp;gt; Less Than 0. In Sheets: Format &amp;gt; Conditional formatting &amp;gt; "Less than" 0.&lt;/p&gt;

&lt;p&gt;When the bill actually arrives, record it in &lt;code&gt;Transactions&lt;/code&gt; as normal and increase nothing on the Sinking sheet; just reset &lt;strong&gt;Saved so far&lt;/strong&gt; to 0 and move the due date to next year. The bill shows up in the month it was paid, and the money for it was already set aside across the months before.&lt;/p&gt;

&lt;h2&gt;
  
  
  Common mistakes
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Dates stored as text.&lt;/strong&gt; &lt;code&gt;SUMIFS&lt;/code&gt; silently returns 0. Check with &lt;code&gt;=ISNUMBER(A2)&lt;/code&gt; on the Transactions sheet.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Category spelling.&lt;/strong&gt; "Groceries " with a trailing space won't match. Dropdowns prevent this.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Forgetting to move "as of".&lt;/strong&gt; If &lt;code&gt;H1&lt;/code&gt; stays on January all year, months left never shrinks and the monthly amounts stay too low. Using the &lt;code&gt;EOMONTH(TODAY(),-1)+1&lt;/code&gt; version avoids that.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  The finished version
&lt;/h2&gt;

&lt;p&gt;If you'd rather not build all of this yourself, I sell a finished workbook built around the same ideas, called &lt;strong&gt;Year Map 2027&lt;/strong&gt;. It adds a 12-month bill calendar (monthly, quarterly, yearly or custom months), Funded / On track / Short status for up to 15 sinking funds, a month picker with planned vs actual, a net worth tracker and a dashboard. It works in Excel and Google Sheets with no macros: &lt;a href="https://najoomi-templates.najoomi.workers.dev/t/year-map-2027/" rel="noopener noreferrer"&gt;https://najoomi-templates.najoomi.workers.dev/t/year-map-2027/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Launch sale: 40% off with code LAUNCH40 until 19 Dec (applied automatically from the store page).&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I run the store that sells Year Map 2027. Every formula above works on its own without it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>excel</category>
      <category>googlesheets</category>
      <category>tutorial</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Build a self-scheduling Gantt chart in Excel with only formulas and conditional formatting (no macros)</title>
      <dc:creator>Daytrading</dc:creator>
      <pubDate>Tue, 01 Dec 2026 09:17:16 +0000</pubDate>
      <link>https://dev.to/daytrading_de698971ef7942/build-a-self-scheduling-gantt-chart-in-excel-with-only-formulas-and-conditional-formatting-no-12d0</link>
      <guid>https://dev.to/daytrading_de698971ef7942/build-a-self-scheduling-gantt-chart-in-excel-with-only-formulas-and-conditional-formatting-no-12d0</guid>
      <description>&lt;p&gt;Most spreadsheet Gantt charts are coloured cells someone fills in by hand. As soon as one task slips, the whole thing is out of date. This tutorial builds one that &lt;strong&gt;schedules itself&lt;/strong&gt;. You enter durations and dependencies, and the formulas work out the dates, skip weekends and holidays, and draw the bars. No macros, no chart objects, and it works in Excel 365/2021 and Google Sheets.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Two settings: your working week and your holidays
&lt;/h2&gt;

&lt;p&gt;Make a small settings area (another sheet is fine) and create two &lt;strong&gt;named ranges&lt;/strong&gt; (Formulas → Name Manager in Excel, Data → Named ranges in Sheets):&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Name&lt;/th&gt;
&lt;th&gt;Example value&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Weekend&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;&lt;code&gt;0000011&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;7 characters, Monday to Sunday. &lt;code&gt;1&lt;/code&gt; = day off.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;Holidays&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;a column of dates&lt;/td&gt;
&lt;td&gt;Days nobody works&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;The 7-character string is the trick here. &lt;code&gt;WORKDAY.INTL&lt;/code&gt; and &lt;code&gt;NETWORKDAYS.INTL&lt;/code&gt; accept it directly, so a team that works Sunday to Thursday just types &lt;code&gt;0000110&lt;/code&gt;. You don't need to change any formula.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. The task table
&lt;/h2&gt;

&lt;p&gt;Set up columns A to K on a sheet called &lt;code&gt;Tasks&lt;/code&gt;, with headers in row 1:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;&lt;/th&gt;
&lt;th&gt;A&lt;/th&gt;
&lt;th&gt;B&lt;/th&gt;
&lt;th&gt;C&lt;/th&gt;
&lt;th&gt;D&lt;/th&gt;
&lt;th&gt;E&lt;/th&gt;
&lt;th&gt;F&lt;/th&gt;
&lt;th&gt;G&lt;/th&gt;
&lt;th&gt;H&lt;/th&gt;
&lt;th&gt;I&lt;/th&gt;
&lt;th&gt;J&lt;/th&gt;
&lt;th&gt;K&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;ID&lt;/td&gt;
&lt;td&gt;Task&lt;/td&gt;
&lt;td&gt;Fixed start&lt;/td&gt;
&lt;td&gt;Depends on&lt;/td&gt;
&lt;td&gt;Days&lt;/td&gt;
&lt;td&gt;Start&lt;/td&gt;
&lt;td&gt;End&lt;/td&gt;
&lt;td&gt;% done&lt;/td&gt;
&lt;td&gt;Done through&lt;/td&gt;
&lt;td&gt;Plan %&lt;/td&gt;
&lt;td&gt;Status&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2&lt;/td&gt;
&lt;td&gt;T1&lt;/td&gt;
&lt;td&gt;Kickoff workshop&lt;/td&gt;
&lt;td&gt;2027-01-04&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;1&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;100%&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;3&lt;/td&gt;
&lt;td&gt;T2&lt;/td&gt;
&lt;td&gt;Wireframes&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;T1&lt;/td&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;60%&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;4&lt;/td&gt;
&lt;td&gt;T3&lt;/td&gt;
&lt;td&gt;Visual design&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;T2&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;0%&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;5&lt;/td&gt;
&lt;td&gt;T4&lt;/td&gt;
&lt;td&gt;Build&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;T3&lt;/td&gt;
&lt;td&gt;10&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;0%&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;6&lt;/td&gt;
&lt;td&gt;T5&lt;/td&gt;
&lt;td&gt;Client review&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;T4&lt;/td&gt;
&lt;td&gt;0&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;0%&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;td&gt;&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;You type into A to E and H. Everything else is a formula. &lt;code&gt;Days&lt;/code&gt; means &lt;strong&gt;working&lt;/strong&gt; days, and &lt;code&gt;0&lt;/code&gt; marks a milestone.&lt;/p&gt;

&lt;h3&gt;
  
  
  Start (F2)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(D2="",
    WORKDAY.INTL(C2-1, 1, Weekend, Holidays),
    WORKDAY.INTL(XLOOKUP(D2, $A$2:$A$300, $G$2:$G$300), 1, Weekend, Holidays))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;With no dependency, &lt;code&gt;WORKDAY.INTL(C2-1, 1, ...)&lt;/code&gt; "snaps" the fixed start to a working day. If C2 already is a working day you get C2 back. If it falls on a Saturday you get Monday.&lt;/li&gt;
&lt;li&gt;With a dependency, the task starts on the first working day after the predecessor's end date.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;No &lt;code&gt;XLOOKUP&lt;/code&gt; in your version? Use &lt;code&gt;INDEX($G$2:$G$300, MATCH(D2, $A$2:$A$300, 0))&lt;/code&gt; instead.&lt;/p&gt;

&lt;h3&gt;
  
  
  End (G2)
&lt;/h3&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(E2=0, F2, WORKDAY.INTL(F2, E2-1, Weekend, Holidays))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;-1&lt;/code&gt; is because the start day counts as day one. A 1-day task starts and ends on the same date. A milestone (0 days) is a single point.&lt;/p&gt;

&lt;p&gt;Fill F2:G2 down. Now change T2 from 5 days to 7 and watch T3, T4 and T5 all move. Holidays push them too.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;Watch for loops. If T3 depends on T4 and T4 depends on T3, you get a circular reference. That is a real planning error, so the warning is useful.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;h3&gt;
  
  
  Done through (I2)
&lt;/h3&gt;

&lt;p&gt;This is the last date covered by the completed part of the bar:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(ROUND(E2*H2, 0) = 0, F2-1,
    WORKDAY.INTL(F2, ROUND(E2*H2, 0) - 1, Weekend, Holidays))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;When nothing is done, it returns the day &lt;em&gt;before&lt;/em&gt; the start, so no cell in the grid will match.&lt;/p&gt;

&lt;h3&gt;
  
  
  Plan % (J2) and Status (K2)
&lt;/h3&gt;

&lt;p&gt;Plan % is how far along the task &lt;em&gt;should&lt;/em&gt; be today, counted in working days:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(E2=0, --(TODAY()&amp;gt;=F2),
    IF(TODAY()&amp;lt;F2, 0,
       MIN(1, NETWORKDAYS.INTL(F2, TODAY(), Weekend, Holidays) / E2)))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then a plain-English status:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=IF(H2&amp;gt;=1, "Done",
 IF(TODAY()&amp;gt;G2, "Overdue",
 IF(TODAY()&amp;lt;F2, "Upcoming",
 IF(H2 &amp;lt; J2-0.1, "Behind", "On track"))))
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;0.1&lt;/code&gt; is a tolerance, so a task that is 2% behind doesn't turn red. Format J as a percentage.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. The timeline header
&lt;/h2&gt;

&lt;p&gt;Leave column L empty as a spacer. In &lt;strong&gt;M1&lt;/strong&gt;, start the grid on the Monday of the week the project starts:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=MIN($F$2:$F$300) - WEEKDAY(MIN($F$2:$F$300), 3)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;WEEKDAY(date, 3)&lt;/code&gt; returns 0 for Monday through 6 for Sunday, so subtracting it always lands on a Monday.&lt;/p&gt;

&lt;p&gt;In &lt;strong&gt;N1&lt;/strong&gt; put &lt;code&gt;=M1+1&lt;/code&gt; and fill right for as many days as you need (182 columns gives 26 weeks). Then:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Give M1 onward the custom number format &lt;code&gt;d&lt;/code&gt; so each header shows just the day number.&lt;/li&gt;
&lt;li&gt;Set the column width to about 2.5 (Excel) or 22 px (Sheets).&lt;/li&gt;
&lt;li&gt;Optionally rotate the header text or add a row above with format &lt;code&gt;mmm&lt;/code&gt; for month labels.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  4. Drawing the bars with conditional formatting
&lt;/h2&gt;

&lt;p&gt;Select the grid body, e.g. &lt;strong&gt;M2:GL300&lt;/strong&gt;, and add these rules as "Use a formula to determine which cells to format". Write them for the top-left cell (M2). The mixed references (&lt;code&gt;M$1&lt;/code&gt;, &lt;code&gt;$F2&lt;/code&gt;) let each rule work across the whole range.&lt;/p&gt;

&lt;p&gt;Order matters. &lt;strong&gt;In Excel the rule at the top wins when two set the same fill. In Google Sheets the first matching rule wins.&lt;/strong&gt; Add them in this order:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Non-working day&lt;/strong&gt; (light grey):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   =OR(MID(Weekend, WEEKDAY(M$1, 2), 1) = "1", COUNTIF(Holidays, M$1) &amp;gt; 0)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;WEEKDAY(..., 2)&lt;/code&gt; returns 1 for Monday, which matches position 1 of the &lt;code&gt;Weekend&lt;/code&gt; string. One rule handles any working week.&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Milestone&lt;/strong&gt; (gold):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   =AND($E2 = 0, M$1 = $F2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Completed portion&lt;/strong&gt; (dark/solid):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   =AND(M$1 &amp;gt;= $F2, M$1 &amp;lt;= $I2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Overdue&lt;/strong&gt; (red):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   =AND(M$1 &amp;gt;= $F2, M$1 &amp;lt;= $G2, $G2 &amp;lt; TODAY(), $H2 &amp;lt; 1)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Planned work&lt;/strong&gt; (light brand colour):
&lt;/li&gt;
&lt;/ol&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;   =AND(M$1 &amp;gt;= $F2, M$1 &amp;lt;= $G2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Add one more rule on the header row only (&lt;strong&gt;M1:GL1&lt;/strong&gt;) to mark today: &lt;code&gt;=M1=TODAY()&lt;/code&gt; with bold text and a bright fill.&lt;/p&gt;

&lt;p&gt;Because rule 1 comes first, weekends inside a bar stay grey. You can see at a glance that a "5-day" task actually spans 7 calendar days.&lt;/p&gt;

&lt;p&gt;If your spreadsheet app rejects named ranges inside conditional formatting (Google Sheets may), replace &lt;code&gt;Weekend&lt;/code&gt; and &lt;code&gt;Holidays&lt;/code&gt; in rule 1 with absolute references such as &lt;code&gt;Settings!$B$1&lt;/code&gt; and &lt;code&gt;Settings!$B$4:$B$40&lt;/code&gt;. In Sheets you may need to wrap cross-sheet references in &lt;code&gt;INDIRECT("Settings!B1")&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Small touches that make it usable
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Freeze panes&lt;/strong&gt; at M2 so task names and dates stay visible while you scroll the timeline.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data validation&lt;/strong&gt; on column D: a list from &lt;code&gt;$A$2:$A$300&lt;/code&gt;, so dependencies can't be mistyped.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Data validation&lt;/strong&gt; on H: decimal between 0 and 1.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sort or filter by Status&lt;/strong&gt; to get an instant "what's late" view.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Keep the table at 300 rows&lt;/strong&gt; even if you only use 20. Empty rows just render as blank grid. Wrap F, G, I, J and K in &lt;code&gt;IF($E2="", "", ...)&lt;/code&gt; so they don't show errors.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  What you have now
&lt;/h2&gt;

&lt;p&gt;A plan where you only type durations, dependencies and progress. Dates follow your real working calendar, slips ripple downstream automatically, and the grid colours itself: done, planned, overdue, milestone, days off. It's around a dozen formulas and five formatting rules, and you can copy all of it from this post.&lt;/p&gt;

&lt;h2&gt;
  
  
  If you want the bigger version
&lt;/h2&gt;

&lt;p&gt;I took this same approach much further in a workbook I sell called &lt;strong&gt;Gantt Pilot&lt;/strong&gt;. It adds multiple projects with a project filter and hide-done switch, a week-offset scroller, a dashboard with weighted % complete against plan and RAG status per project, a needs-attention list, and an owner-by-week workload heatmap. It works in Excel and Google Sheets, with no macros. It's on Gumroad: &lt;a href="https://khalidmasscom.gumroad.com/l/gwpic" rel="noopener noreferrer"&gt;https://khalidmasscom.gumroad.com/l/gwpic&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I run the store that sells Gantt Pilot. Everything in this tutorial works on its own without it.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>excel</category>
      <category>productivity</category>
      <category>tutorial</category>
      <category>spreadsheets</category>
    </item>
    <item>
      <title>Build a dependency-free launch countdown + waitlist form with Tailwind CSS v4</title>
      <dc:creator>Daytrading</dc:creator>
      <pubDate>Mon, 30 Nov 2026 09:17:54 +0000</pubDate>
      <link>https://dev.to/daytrading_de698971ef7942/build-a-dependency-free-launch-countdown-waitlist-form-with-tailwind-css-v4-39f8</link>
      <guid>https://dev.to/daytrading_de698971ef7942/build-a-dependency-free-launch-countdown-waitlist-form-with-tailwind-css-v4-39f8</guid>
      <description>&lt;p&gt;Every product launch needs the same page: a headline, a countdown and an email box. You don't need React for that. Here's how to build one with &lt;strong&gt;plain HTML, Tailwind CSS v4 and ~40 lines of vanilla JavaScript&lt;/strong&gt;, accessible and themeable.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Theme with two variables
&lt;/h2&gt;

&lt;p&gt;Tailwind v4 moves configuration into CSS. Define your brand once:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight css"&gt;&lt;code&gt;&lt;span class="k"&gt;@import&lt;/span&gt; &lt;span class="s2"&gt;"tailwindcss"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="k"&gt;@theme&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="nv"&gt;--color-brand&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;oklch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.62&lt;/span&gt; &lt;span class="mf"&gt;0.21&lt;/span&gt; &lt;span class="mi"&gt;275&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="nv"&gt;--color-accent&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nf"&gt;oklch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mf"&gt;0.78&lt;/span&gt; &lt;span class="mf"&gt;0.15&lt;/span&gt; &lt;span class="mi"&gt;195&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now &lt;code&gt;bg-brand&lt;/code&gt;, &lt;code&gt;text-accent&lt;/code&gt;, &lt;code&gt;from-brand to-accent&lt;/code&gt; all exist, and changing two lines re-themes everything.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. A countdown driven by one attribute
&lt;/h2&gt;

&lt;p&gt;Keep the date in the markup so non-developers can change it:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"countdown"&lt;/span&gt; &lt;span class="na"&gt;data-launch&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"2027-02-01T09:00:00Z"&lt;/span&gt;
     &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"grid grid-cols-4 gap-3"&lt;/span&gt; &lt;span class="na"&gt;role&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"timer"&lt;/span&gt; &lt;span class="na"&gt;aria-live&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"polite"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"rounded-2xl border p-3"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;data-unit&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"days"&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text-3xl font-semibold tabular-nums"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;00&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
    &lt;span class="nt"&gt;&amp;lt;div&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"text-xs uppercase tracking-wider text-zinc-500"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Days&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
  &lt;span class="c"&gt;&amp;lt;!-- hours, minutes, seconds: same block with data-unit --&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/div&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;code&gt;tabular-nums&lt;/code&gt; stops the digits from jiggling every second — a small detail that makes it feel polished.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;box&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"countdown"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;box&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dataset&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;launch&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getTime&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;units&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Object&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;fromEntries&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;
  &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;box&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;querySelectorAll&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"[data-unit]"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;map&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;el&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;dataset&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;unit&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;el&lt;/span&gt;&lt;span class="p"&gt;]&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;
&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;pad&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;n&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="nb"&gt;String&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;n&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;padStart&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;2&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"0"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;

&lt;span class="kd"&gt;function&lt;/span&gt; &lt;span class="nf"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;max&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;target&lt;/span&gt; &lt;span class="o"&gt;-&lt;/span&gt; &lt;span class="nb"&gt;Date&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;now&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;units&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;days&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt;    &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;pad&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;86400&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;units&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;hours&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt;   &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;pad&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;86400&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;3600&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;units&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;minutes&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;pad&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="nb"&gt;Math&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;floor&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;3600&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;/&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;units&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;seconds&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nf"&gt;pad&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;%&lt;/span&gt; &lt;span class="mi"&gt;60&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;s&lt;/span&gt; &lt;span class="o"&gt;===&lt;/span&gt; &lt;span class="mi"&gt;0&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="nf"&gt;clearInterval&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;timer&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;timer&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;setInterval&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="mi"&gt;1000&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="nf"&gt;tick&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Using an ISO date with &lt;code&gt;Z&lt;/code&gt; means every visitor counts down to the same moment, whatever their time zone.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. A waitlist form that works without a backend
&lt;/h2&gt;

&lt;p&gt;Services like Formspree accept a normal form POST. Progressive enhancement: the form works without JS, and with JS we stay on the page.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight html"&gt;&lt;code&gt;&lt;span class="nt"&gt;&amp;lt;form&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"waitlist"&lt;/span&gt; &lt;span class="na"&gt;action&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"https://formspree.io/f/your-form-id"&lt;/span&gt; &lt;span class="na"&gt;method&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"post"&lt;/span&gt;
      &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"flex flex-col gap-3 sm:flex-row"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;label&lt;/span&gt; &lt;span class="na"&gt;for&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"sr-only"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Email address&lt;span class="nt"&gt;&amp;lt;/label&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;input&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;name&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;type&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"email"&lt;/span&gt; &lt;span class="na"&gt;required&lt;/span&gt; &lt;span class="na"&gt;placeholder&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"you@company.com"&lt;/span&gt;
         &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"flex-1 rounded-xl border px-4 py-3 outline-none focus:border-brand focus:ring-4 focus:ring-brand/15"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;
  &lt;span class="nt"&gt;&amp;lt;button&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"rounded-xl bg-zinc-900 px-5 py-3 font-semibold text-white"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&lt;/span&gt;Join waitlist&lt;span class="nt"&gt;&amp;lt;/button&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;/form&amp;gt;&lt;/span&gt;
&lt;span class="nt"&gt;&amp;lt;p&lt;/span&gt; &lt;span class="na"&gt;id&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"waitlist-msg"&lt;/span&gt; &lt;span class="na"&gt;aria-live&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"polite"&lt;/span&gt; &lt;span class="na"&gt;class&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt;&lt;span class="s"&gt;"mt-3 text-sm text-zinc-500"&lt;/span&gt;&lt;span class="nt"&gt;&amp;gt;&amp;lt;/p&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;





&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;form&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"waitlist"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;document&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;getElementById&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"waitlist-msg"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;addEventListener&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="s2"&gt;"submit"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="k"&gt;async&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="n"&gt;e&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;preventDefault&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Sending…"&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="k"&gt;try&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
    &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="k"&gt;await&lt;/span&gt; &lt;span class="nb"&gt;fetch&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;action&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
      &lt;span class="n"&gt;method&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"POST"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;body&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="k"&gt;new&lt;/span&gt; &lt;span class="nc"&gt;FormData&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;headers&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nc"&gt;Accept&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"application/json"&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
    &lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt; &lt;span class="o"&gt;?&lt;/span&gt; &lt;span class="s2"&gt;"You're on the list!"&lt;/span&gt; &lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Something went wrong."&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
    &lt;span class="k"&gt;if&lt;/span&gt; &lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;r&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;ok&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="n"&gt;form&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;reset&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
  &lt;span class="p"&gt;}&lt;/span&gt; &lt;span class="k"&gt;catch&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="n"&gt;msg&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;textContent&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="s2"&gt;"Network error. Try again."&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Accessibility notes: the visually hidden &lt;code&gt;&amp;lt;label&amp;gt;&lt;/code&gt; keeps screen readers happy, and &lt;code&gt;aria-live="polite"&lt;/code&gt; announces the result without stealing focus.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Dark mode for free
&lt;/h2&gt;

&lt;p&gt;Tailwind v4's &lt;code&gt;dark:&lt;/code&gt; variant follows the system setting by default, so &lt;code&gt;dark:bg-zinc-950 dark:text-zinc-100&lt;/code&gt; on &lt;code&gt;&amp;lt;body&amp;gt;&lt;/code&gt; is all you need for a one-pager.&lt;/p&gt;

&lt;h2&gt;
  
  
  Grab the finished page
&lt;/h2&gt;

&lt;p&gt;I packaged this as a free template, &lt;strong&gt;Launchpad&lt;/strong&gt; (countdown, waitlist form, feature cards, dark mode, Tailwind source + build): &lt;a href="https://najoomi-templates.najoomi.workers.dev/t/launchpad/" rel="noopener noreferrer"&gt;https://najoomi-templates.najoomi.workers.dev/t/launchpad/&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;Disclosure: I run the store that hosts it; Launchpad itself is free.&lt;/em&gt;&lt;/p&gt;

</description>
      <category>tailwindcss</category>
      <category>javascript</category>
      <category>html</category>
      <category>webdev</category>
    </item>
  </channel>
</rss>
