<?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: thienkrik - small shop</title>
    <description>The latest articles on DEV Community by thienkrik - small shop (@thienkrik).</description>
    <link>https://dev.to/thienkrik</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%2F4242500%2Ff579a58b-fa3d-4404-9010-4e5f84c12b11.png</url>
      <title>DEV Community: thienkrik - small shop</title>
      <link>https://dev.to/thienkrik</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/thienkrik"/>
    <language>en</language>
    <item>
      <title>How to Use SUMIFS in Excel to Total Values by Category and Month</title>
      <dc:creator>thienkrik - small shop</dc:creator>
      <pubDate>Fri, 13 Nov 2026 08:44:21 +0000</pubDate>
      <link>https://dev.to/thienkrik/how-to-use-sumifs-in-excel-to-total-values-by-category-and-month-45df</link>
      <guid>https://dev.to/thienkrik/how-to-use-sumifs-in-excel-to-total-values-by-category-and-month-45df</guid>
      <description>&lt;p&gt;If you keep a list of income and expenses in Excel, adding everything up by hand quickly becomes slow and error-prone. SUMIFS solves that problem: it adds only the numbers that match the conditions you set, such as a category, a month, or both.&lt;/p&gt;

&lt;p&gt;In this tutorial, you will learn the syntax of SUMIFS, work through a small example, and avoid the most common mistakes beginners make.&lt;/p&gt;

&lt;h2&gt;
  
  
  What SUMIFS does
&lt;/h2&gt;

&lt;p&gt;SUMIFS adds values in one column when the matching rows meet one or more conditions.&lt;/p&gt;

&lt;p&gt;The syntax is:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=SUMIFS(sum_range, criteria_range1, criteria1, criteria_range2, criteria2, ...)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;sum_range:&lt;/strong&gt; the numbers you want to add.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;criteria_range1:&lt;/strong&gt; the column Excel checks first.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;criteria1:&lt;/strong&gt; the condition that column must meet.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;You can add more pairs of criteria ranges and criteria after that. Every condition must be true for a row to be included.&lt;/p&gt;

&lt;p&gt;SUMIFS is different from SUMIF, which accepts only one condition. When you need two or more conditions, use SUMIFS.&lt;/p&gt;

&lt;h2&gt;
  
  
  Example data
&lt;/h2&gt;

&lt;p&gt;Suppose your data is in cells A1:C7:&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Date&lt;/th&gt;
&lt;th&gt;Category&lt;/th&gt;
&lt;th&gt;Amount&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;2026-11-02&lt;/td&gt;
&lt;td&gt;Food&lt;/td&gt;
&lt;td&gt;12&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2026-11-05&lt;/td&gt;
&lt;td&gt;Transport&lt;/td&gt;
&lt;td&gt;8&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2026-11-10&lt;/td&gt;
&lt;td&gt;Food&lt;/td&gt;
&lt;td&gt;15&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2026-11-18&lt;/td&gt;
&lt;td&gt;Food&lt;/td&gt;
&lt;td&gt;9&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2026-12-01&lt;/td&gt;
&lt;td&gt;Food&lt;/td&gt;
&lt;td&gt;20&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;2026-12-03&lt;/td&gt;
&lt;td&gt;Transport&lt;/td&gt;
&lt;td&gt;7&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;p&gt;Column A is the date, column B is the category, and column C is the amount.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 1: Total one category
&lt;/h2&gt;

&lt;p&gt;To add all Food amounts, use this formula:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=SUMIFS(C2:C7, B2:B7, "Food")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Excel checks each row in B2:B7. When the category is Food, it adds the matching amount from C2:C7. The result is 56 (12 + 15 + 9 + 20), because all four Food rows are included when there is no date filter.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 2: Total one category in one month
&lt;/h2&gt;

&lt;p&gt;To add only Food amounts in November 2026, add two date conditions:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=SUMIFS(C2:C7, B2:B7, "Food", A2:A7, "&amp;gt;=2026-11-01", A2:A7, "&amp;lt;=2026-11-30")
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Now Excel checks three things for each row: the category must be Food, the date must be on or after 1 November 2026, and the date must be on or before 30 November 2026. The result is 36 (12 + 15 + 9). The Food row dated 1 December, worth 20, is excluded because it falls outside November.&lt;/p&gt;

&lt;p&gt;For a cleaner formula, put the start and end dates in their own cells instead of typing them inside the formula. For example, put 2026-11-01 in E1 and 2026-11-30 in E2:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=SUMIFS(C2:C7, B2:B7, "Food", A2:A7, "&amp;gt;="&amp;amp;E1, A2:A7, "&amp;lt;="&amp;amp;E2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This makes the formula easier to read and lets you change the month by changing E1 and E2.&lt;/p&gt;

&lt;h2&gt;
  
  
  Step 3: Total a different category
&lt;/h2&gt;

&lt;p&gt;Change only the criteria to total Transport in November:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;=SUMIFS(C2:C7, B2:B7, "Transport", A2:A7, "&amp;gt;="&amp;amp;E1, A2:A7, "&amp;lt;="&amp;amp;E2)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The result is 8. You can copy the same pattern for any other category in your list.&lt;/p&gt;

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

&lt;p&gt;&lt;strong&gt;1. Ranges of different sizes.&lt;/strong&gt; Every range in SUMIFS must have the same number of rows. If sum_range is C2:C7 but a criteria range is B2:B10, Excel returns an error.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Text that does not match exactly.&lt;/strong&gt; "Food" and "food " are not the same to Excel. Extra spaces or different spelling will silently exclude rows, so keep category names consistent. Data validation with a drop-down list helps.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Dates stored as text.&lt;/strong&gt; If a date is stored as text, date comparisons such as "&amp;gt;=2026-11-01" will not work as expected. Make sure the date column is formatted as a date, not as text.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Forgetting the quotes.&lt;/strong&gt; Text criteria and comparison operators need double quotes, for example "Food" and "&amp;gt;=2026-11-01". When you refer to a cell, join it with &amp;amp;, as in "&amp;gt;="&amp;amp;E1.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;5. Using SUMIF for two conditions.&lt;/strong&gt; SUMIF accepts only one condition. If you need a category and a month, you need SUMIFS.&lt;/p&gt;

&lt;h2&gt;
  
  
  A quick practice exercise
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;Copy the example table above into a blank worksheet.&lt;/li&gt;
&lt;li&gt;In a new cell, write the formula for Food in November 2026 and check that you get 36.&lt;/li&gt;
&lt;li&gt;Change the formula to total Transport in December 2026. You should get 7.&lt;/li&gt;
&lt;li&gt;Add a row of your own, for example a Food amount in November, and confirm the total updates.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;SUMIFS is one of the most useful formulas in Excel for everyday totals. Start with one condition, then add a second one for the month, and keep your categories and dates consistent. Once this pattern feels natural, you can use the same idea for monthly summaries, category totals, and year-to-date totals without adding anything by hand.&lt;/p&gt;

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