Excel formula

Posted on 2014-08-16
Last Modified: 2014-08-16
is there a formula that will add like this?

A       B       C       D       E       F       G       H       i
10     20     30     40      50    60     70      80     90

and this can keep going on to the right to AN
So in AN I want to total A,D,G etc etc
in AO I want to total B,E,H etc
and in AP I want to total C,F,I etc.


Question by:Jagwarman
    LVL 27

    Accepted Solution

    Since you're adding every third column, one can use the MOD function in combination with a SUMPRODUCT to get these results.

    Assuming your original data is in cells A2:AM2, insert this formula in cell AN2 and copy to the right two cells:

    or, a little more transparent:
    AN2: =SUMPRODUCT(--(MOD(COLUMN($A$2:$AM$2),3)=1),$A$2:$AM$2)
    AO2: =SUMPRODUCT(--(MOD(COLUMN($A$2:$AM$2),3)=2),$A$2:$AM$2)
    AP2: =SUMPRODUCT(--(MOD(COLUMN($A$2:$AM$2),3)=0),$A$2:$AM$2)


    Author Comment

    Thanks Glenn Brilliant
    LVL 27

    Expert Comment

    by:Glenn Ray
    You're welcome.

    Featured Post

    What Is Threat Intelligence?

    Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

    Join & Write a Comment

    User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
    The new Microsoft OS looks great, is easier than ever to upgrade to, it is even free.  So what's the catch?  If you don't change the privacy settings, Microsoft will, in accordance with the (EULA) you clicked okay to without reading, collect all the…
    This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
    This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

    734 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    24 Experts available now in Live!

    Get 1:1 Help Now