+ Reply to Thread
Results 1 to 1 of 1

excel formula to add every 4th column

  1. #1
    Registered User
    Join Date
    10-14-2011
    Location
    South Africa
    MS-Off Ver
    Excel 2007
    Posts
    8

    excel formula to add every 4th column

    Hi there

    How do i edit the following formula to add every 4th column in excel?

    =SUMPRODUCT(MOD( COLUMN(B9:ABK9),2 )*B9:ABK9)

  2. #2
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: excel formula to add every 4th column

    I always use this syntax

    =SUMPRODUCT((MOD(COLUMN(Range)-MIN(COLUMN(Range)),n)=0)+0,Range)

    assuming Range is a row of values that will sum the first entry followed by every nth, so if you make it specific like

    =SUMPRODUCT((MOD(COLUMN(B9:ABK9)-MIN(COLUMN(B9:ABK9)),4)=0)+0,B9:ABK9)

    that will sum B9, F9, J9, N9 etc.

    adjust ranges as required
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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