+ Reply to Thread
Results 1 to 6 of 6

Formula to add diagonally (A1, B2, C3, etc)

  1. #1
    Registered User
    Join Date
    06-12-2013
    Location
    Fairbury NE
    MS-Off Ver
    Excel 2007
    Posts
    70

    Formula to add diagonally (A1, B2, C3, etc)

    I need a formula to add diagonally. I know I could add the sum of each cell (A1, B2, C3, etc.), but is there a way to write a formula that would achieve this and can be copied over to the next column? I've tried to think of a way to do it, but have been unsuccessful.

    ADD DIAGONAL.jpg
    Last edited by maryren; 09-19-2013 at 12:57 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formula to add diagonally (A1, B2, C3, etc)

    =sumproduct(--(row(a1:g7) - row(a1) = column(a1:g7) - column(a1)), a1:g7)
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Formula to add diagonally (A1, B2, C3, etc)

    Perhaps this which needs to be entered with CTRL+SHIFT+ENTER.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formula to add diagonally (A1, B2, C3, etc)

    Quote Originally Posted by Norie
    =SUM(IF(ROW(A1:G7)=COLUMN(A1:G7),A1:G7,0))
    That's not going to copy right, Norie.

  5. #5
    Registered User
    Join Date
    06-12-2013
    Location
    Fairbury NE
    MS-Off Ver
    Excel 2007
    Posts
    70

    Re: Formula to add diagonally (A1, B2, C3, etc)

    Thanks for this, it works great, really appreciate it.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Formula to add diagonally (A1, B2, C3, etc)

    You're welcome.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. How do I split a cell diagonally?
    By Tupid in forum Excel General
    Replies: 7
    Last Post: 09-07-2019, 09:33 PM
  2. Is it possible to split a cell diagonally?
    By theo_c in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 04-03-2013, 01:44 PM
  3. Copy and paste formula diagonally
    By dhazi in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-20-2013, 10:18 AM
  4. [SOLVED] Pasting Diagonally
    By le_s in forum Excel General
    Replies: 2
    Last Post: 11-29-2012, 09:46 AM
  5. Jumping cells diagonally
    By Jumpy in forum Excel General
    Replies: 6
    Last Post: 03-22-2005, 06:06 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1