How to sum diagonal of a range in Excel?

When you do some arithmetic calculations, you may need to sum numbers diagonally in a table. In fact, you can also sum diagonal numbers in Excel which doesn’t require you to sum the numbers one by one. If you want to know more about this question, please read the following article.

Sum diagonal cells of a range in Excel

Office Tab Enable Tabbed Editing and Browsing in Office, and Make Your Work Much Easier...
Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%
  • Reuse Anything: Add the most used or complex formulas, charts and anything else to your favorites, and quickly reuse them in the future.
  • More than 20 text features: Extract Number from Text String; Extract or Remove Part of Texts; Convert Numbers and Currencies to English Words.
  • Merge Tools: Multiple Workbooks and Sheets into One; Merge Multiple Cells/Rows/Columns Without Losing Data; Merge Duplicate Rows and Sum.
  • Split Tools: Split Data into Multiple Sheets Based on Value; One Workbook to Multiple Excel, PDF or CSV Files; One Column to Multiple Columns.
  • Paste Skipping Hidden/Filtered Rows; Count And Sum by Background Color; Send Personalized Emails to Multiple Recipients in Bulk.
  • Super Filter: Create advanced filter schemes and apply to any sheets; Sort by week, day, frequency and more; Filter by bold, formulas, comment...
  • More than 300 powerful features; Works with Office 2007-2019 and 365; Supports all languages; Easy deploying in your enterprise or organization.

arrow blue right bubble Sum diagonal cells of a range in Excel


Supposing I have the following data range, and now I want to get the result of the summation of the diagonal cells.

doc-sum-diagonal-1

1. Sum cells diagonal down and to the right

If you want to sum the cells diagonal from top left corner to lower right corner(A1+B2+C3+D4), the following formulas can help you.

Please enter this formula =SUM(A1:D4*(ROW(A1:D4)=COLUMN(A1:D4))) into a blank cell, see screenshot:

doc-sum-diagonal-1

And then press Ctrl + Shift + Enter keys together, and you will get the result as you want.

doc-sum-diagonal-1

2. Sum cells diagonal up and to the right

To sum the diagonal cells from lower left corner to top right corner (A4+B3+C2+D1), you should apply the following formula: =SUM(A1:D4*(ROWS(A1:D4)+1-ROW(A1:D4)=COLUMN(A1:D4))), and press Ctrl + Shift + Enter keys to get the correct result. See screenshots:

doc-sum-diagonal-4
-1
doc-sum-diagonal-5

Notes:

1. The arguments A1: D4 is the data range that you want to sum the diagonal cells.

2. These formulas only are applied to the range cells which have the same column number and row number, such as 5 column and 5 row.


Related article:

How to sum all digits in a number in Excel?


The Best Office Productivity Tools

Kutools for Excel Solves Most of Your Problems, and Increases Your Productivity by 80%

  • Reuse: Quickly insert complex formulas, charts and anything that you have used before; Encrypt Cells with password; Create Mailing List and send emails...
  • Super Formula Bar (easily edit multiple lines of text and formula); Reading Layout (easily read and edit large numbers of cells); Paste to Filtered Range...
  • Merge Cells/Rows/Columns without losing Data; Split Cells Content; Combine Duplicate Rows/Columns... Prevent Duplicate Cells; Compare Ranges...
  • Select Duplicate or Unique Rows; Select Blank Rows (all cells are empty); Super Find and Fuzzy Find in Many Workbooks; Random Select...
  • Exact Copy Multiple Cells without changing formula reference; Auto Create References to Multiple Sheets; Insert Bullets, Check Boxes and more...
  • Extract Text, Add Text, Remove by Position, Remove Space; Create and Print Paging Subtotals; Convert Between Cells Content and Comments...
  • Super Filter (save and apply filter schemes to other sheets); Advanced Sort by month/week/day, frequency and more; Special Filter by bold, italic...
  • Combine Workbooks and WorkSheets; Merge Tables based on key columns; Split Data into Multiple Sheets; Batch Convert xls, xlsx and PDF...
  • More than 300 powerful features. Supports Office/Excel 2007-2019 and 365. Supports all languages. Easy deploying in your enterprise or organization. Full features 30-day free trial. 60-day money back guarantee.
kte tab 201905

Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier

  • Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
  • Open and create multiple documents in new tabs of the same window, rather than in new windows.
  • Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!
officetab bottom
Say something here...
symbols left.
You are guest ( Sign Up? )
or post as a guest, but your post won't be published automatically.
Loading comment... The comment will be refreshed after 00:00.
  • To post as a guest, your comment is unpublished.
    hazel · 3 months ago
    Thanks.
    What formula do i use to sum everything to right or the left of the diagonal?
  • To post as a guest, your comment is unpublished.
    Celesta · 3 years ago
    Thanks for finally writing about >How to sum diagonal of a range
    in Excel?
  • To post as a guest, your comment is unpublished.
    phil · 3 years ago
    Thank you so much for your good information, I would like to know how I can multiply a triangular range say a triangle SUM of triangle A1,E1,A5, (this triangle is static and used as the "multiplier"). So this range of cells multiplies the range of cells G1,K1,G5 then the results are put in the range of cells I1,M1,I5. Once this is done I want to be able to slide down the triangle G1 because G2, K1 becomes K2 and G5 becomes G6. and so on with all the results put in the triangle where I1 become I2 and so on. Thank you so much for your help
  • To post as a guest, your comment is unpublished.
    phil · 3 years ago
    This is great! how can I SUM the triangle in figure 2? Imagine a triangle that has the following 3 corners A1 D1 A4 thank you so much!!!
  • To post as a guest, your comment is unpublished.
    Karl Ranson · 5 years ago
    Hi there,
    What would the formula be if I wanted for 2nd scenario if the matrix started on, say, D22?
    In other words, how do I compensate for larger row/column numbers than starting at 1 (ie A1)?
    Thanks, Karl
    • To post as a guest, your comment is unpublished.
      Scott Noyes · 3 years ago
      Instead of ROW(A1:D4) = COLUMN(A1:D4), use: (ROW(A1:D4)-COLUMN(A1:D4))=(ROW()-COLUMN())