Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • How to Create One and Two Variable Data Tables in Excel
  • How to calculate current stock or inventory in Excel
  • Create Scatter Chart in Excel
  • How to Create Column Chart in Excel
  • Everything about Charts in Excel

References

  • Count rows that contain specific values in Excel
  • Convert text string to valid reference in Excel using Indirect function
  • Lookup entire row in Excel
  • INDEX function: Description, Usage, Syntax, Examples and Explanation
  • Last row number in range

Data Validations

  • Excel Data validation whole percentage only
  • How To Create Drop-down List in Excel
  • Excel Data validation don’t exceed total
  • Excel Data validation must contain specific text
  • Excel Data validation must begin with

Sum if by year in Excel

by

This tutorial shows how to Sum if by year in Excel using the example below;

Formula

=SUMIFS(sum_range,date,">="&DATE(year),date,"<="&DATE(year,12,31))

Explanation

If you need to sum if by year, you can use the SUMIFS function with two criteria.

In the example shown, the formula in H6 is:

=SUMIFS(amount,date,">="&DATE(G6,1,1),date,"<="&DATE(G6,12,31))

The result is a total of amounts for 2011. When copied down, the formula also creates a total for 2012 and 2013.

How this formula works

The first argument for SUMIFs is always the range to sum (“sum_range”), and criteria are supplied as one or more range / criteria pairs.

In this example, the sum range is a named range called “amount” (E3:E2931), and the criteria are supplied in two pairs, both using a named range called “date” (B3:B2931).

In each case, the DATE function is used in the criteria to build two valid dates, both using with the same year:

1. The first day of 2011
2. The last day of 2011

These dates appear in the formula as follows:

date, ">="&DATE(G6,1,1) // date is >= to 1/1/2011
date, "<="&DATE(G6,12,31) // date is <= 12/31/2011

As a result, the formula returns a total sum for all amounts in the year 2011 only.

Because we are using a cell reference to supply the year, the formula can be copied down to create totals for 2012 and 2013 as well.

Post navigation

Previous Post:

How to use Excel CHOOSE Function

Next Post:

Customize Ribbon In Excel

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others

Logical Functions

  • OR function Examples in Excel
  • IF function: Description, Usage, Syntax, Examples and Explanation
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • How to use Excel OR Function
  • TRUE function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Get fiscal year from date in Excel
  • ISOWEEKNUM function: Description, Usage, Syntax, Examples and Explanation
  • How to calculate next scheduled event in Excel
  • Calculate date overlap in days in Excel
  • Add days to date in Excel

Grouping

  • Group arbitrary text values in Excel
  • Map inputs to arbitrary values in Excel
  • Group numbers with VLOOKUP in Excel
  • Group times into 3 hour buckets in Excel
  • Group times into unequal buckets in Excel

General

  • Count cells that do not contain errors in Excel
  • Check if multiple cells have same value with case sensitive in Excel
  • How to create dynamic named range with INDEX in Excel
  • How to calculate percent of students absent in Excel
  • How to count total number of cells in a rectangular range in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning