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

Data Analysis

  • Example of COUNTIFS with variable table column in Excel
  • Excel Bar Chart
  • How to Use Solver Tool in Excel
  • How to calculate average last N values in a table in Excel
  • Filter Data Based on Date in Excel

References

  • How to create dynamic named range with OFFSET in Excel
  • To count total rows in a range in Excel
  • How to get last column number in range in Excel
  • Two-column Lookup in Excel
  • Multi-criteria lookup and transpose in Excel

Data Validations

  • Prevent invalid data entering in specific cells
  • Excel Data validation exists in list
  • Data validation must not exist in list
  • Excel Data validation unique values only
  • Excel Data validation must not contain

Sum by week number in Excel

by

This tutorial shows how to Sum by week number in Excel using the example below;

Formula

=SUMIFS(sumrange,weekrange,week)

Explanation

To sum by week, you can use a formula based on the SUMIFS function. In the example shown, the formula in H5 is:

=SUMIFS(total,color,$G5,week,H$4)

where “total” is the named range D5:D16, “color” is the named range B5:B16, and “week” is the named range E5:E16.

How this formula works

The SUMIFS function can sum ranges based on multiple criteria.

In this problem, we configure SUMIFS to sum amounts in the named range “total” by week number using two criteria:

  1. color equal to the value column G
  2. week equal to the value in row 4
=SUMIFS(total,color,$G5,week,H$4)

Note $G5 and H$4 are both mixed references, so that the formula can be copied throughout the table.

Column E is a helper column, and contains the WEEKNUM function:

=WEEKNUM(C5)

Week numbers in row 4 are numeric values using the custom number format “Wk “0.

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

  • How to use IFS function in Excel
  • AND function: Description, Usage, Syntax, Examples and Explanation
  • SWITCH function example in Excel
  • How to use Excel FALSE Function
  • IFS function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • Get fiscal quarter from date in Excel
  • DATEDIF function: Description, Usage, Syntax, Examples and Explanation
  • TODAY function: Description, Usage, Syntax, Examples and Explanation
  • Convert decimal hours to Excel time
  • YEARFRAC function: Description, Usage, Syntax, Examples and Explanation

Grouping

  • How to randomly assign people to groups in Excel
  • Group times into 3 hour buckets in Excel
  • Map inputs to arbitrary values in Excel
  • Group numbers at uneven intervals in Excel
  • Categorize text with keywords in Excel

General

  • How to calculate percentage of total in Excel
  • How to calculate profit margin percentage in Excel
  • Hide and Unhide Columns or Rows in Excel
  • How to test a range for numbers in Excel
  • Sum by group in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning