<?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: Office Skills Academy</title>
    <description>The latest articles on DEV Community by Office Skills Academy (@officeskillsacademy).</description>
    <link>https://dev.to/officeskillsacademy</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%2F4269739%2Fe312ce6b-f7e8-4f4f-8901-2a750accd81a.png</url>
      <title>DEV Community: Office Skills Academy</title>
      <link>https://dev.to/officeskillsacademy</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/officeskillsacademy"/>
    <language>en</language>
    <item>
      <title>Excel timesheet with overtime: the formulas that handle night shifts and breaks</title>
      <dc:creator>Office Skills Academy</dc:creator>
      <pubDate>Fri, 27 Nov 2026 21:49:43 +0000</pubDate>
      <link>https://dev.to/officeskillsacademy/excel-timesheet-with-overtime-the-formulas-that-handle-night-shifts-and-breaks-3nkf</link>
      <guid>https://dev.to/officeskillsacademy/excel-timesheet-with-overtime-the-formulas-that-handle-night-shifts-and-breaks-3nkf</guid>
      <description>&lt;p&gt;Tracking hours and overtime in Excel is simple once the formulas are set up right. Here is the layout I use, with the formulas that avoid the usual mistakes (night shifts, unpaid breaks, overtime pay).&lt;/p&gt;

&lt;h2&gt;
  
  
  Layout
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Col&lt;/th&gt;
&lt;th&gt;Header&lt;/th&gt;
&lt;th&gt;Example&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;A&lt;/td&gt;
&lt;td&gt;Date&lt;/td&gt;
&lt;td&gt;2026-11-02&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;B&lt;/td&gt;
&lt;td&gt;Start&lt;/td&gt;
&lt;td&gt;08:00&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;C&lt;/td&gt;
&lt;td&gt;End&lt;/td&gt;
&lt;td&gt;17:30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;D&lt;/td&gt;
&lt;td&gt;Unpaid break (minutes)&lt;/td&gt;
&lt;td&gt;30&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;E&lt;/td&gt;
&lt;td&gt;Hours worked&lt;/td&gt;
&lt;td&gt;formula&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;F&lt;/td&gt;
&lt;td&gt;Regular hours&lt;/td&gt;
&lt;td&gt;formula&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;G&lt;/td&gt;
&lt;td&gt;Overtime hours&lt;/td&gt;
&lt;td&gt;formula&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Format B and C as Time (hh:mm), and E to G as Number with 2 decimals.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Hours worked (works for night shifts too)
&lt;/h2&gt;

&lt;p&gt;If someone starts at 22:00 and ends at 06:00, &lt;code&gt;C2-B2&lt;/code&gt; is negative. Wrap it in &lt;code&gt;MOD&lt;/code&gt; so it wraps around midnight:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=MOD(C2-B2,1)*24-D2/60
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Excel stores a time as a fraction of a day, so multiplying by 24 gives hours.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Regular and overtime hours
&lt;/h2&gt;

&lt;p&gt;With an 8 hour daily limit:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;F2: =MIN(8,E2)
G2: =MAX(0,E2-8)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If your overtime starts after a weekly limit instead (for example 40 hours), sum the week and compare:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=MAX(0,SUM(E2:E8)-40)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;h2&gt;
  
  
  3. Pay with an overtime multiplier
&lt;/h2&gt;

&lt;p&gt;Put the hourly rate in &lt;code&gt;J1&lt;/code&gt; and the overtime multiplier (1.5) in &lt;code&gt;J2&lt;/code&gt;, then:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=SUM(F2:F8)*$J$1 + SUM(G2:G8)*$J$1*$J$2
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The &lt;code&gt;$&lt;/code&gt; signs lock the cells so the formula copies down safely.&lt;/p&gt;

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

&lt;ul&gt;
&lt;li&gt;Entering times as text ("8.30" instead of 08:30). Excel will not calculate with them.&lt;/li&gt;
&lt;li&gt;Forgetting to subtract the unpaid break.&lt;/li&gt;
&lt;li&gt;Using a plain subtraction for night shifts.&lt;/li&gt;
&lt;li&gt;Totals over 24 hours show wrong unless the cell format is &lt;code&gt;[h]:mm&lt;/code&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  If you would rather not build it
&lt;/h2&gt;

&lt;p&gt;I made ready-to-use Excel versions of this. They are paid, not free:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Timesheet &amp;amp; Overtime template, $5: &lt;a href="https://youssef1818.gumroad.com/l/timesheet" rel="noopener noreferrer"&gt;https://youssef1818.gumroad.com/l/timesheet&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Staff Shift Rota template, $6: &lt;a href="https://youssef1818.gumroad.com/l/shift-rota" rel="noopener noreferrer"&gt;https://youssef1818.gumroad.com/l/shift-rota&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;Complete Office Template Bundle (6 templates + guide), $29: &lt;a href="https://youssef1818.gumroad.com/l/bundle" rel="noopener noreferrer"&gt;https://youssef1818.gumroad.com/l/bundle&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The formulas above are all you need to build your own, though.&lt;/p&gt;

</description>
      <category>excel</category>
      <category>productivity</category>
      <category>beginners</category>
      <category>tutorial</category>
    </item>
  </channel>
</rss>
