+ Reply to Thread
Results 1 to 8 of 8

Adding up every other cell in a column

Hybrid View

  1. #1
    Registered User
    Join Date
    08-23-2008
    Location
    Iowa
    Posts
    7

    Adding up every other cell in a column

    I have been trying to add up every other cell in a column with no luck. I know you can do it this way =sum(A1+C1,E1,G1) etc.. but that will take awhile plus I believe it is limited at how many you can put in it. I have tried a MOD version but I couldn't get that to work. Anyone know how to do that? Thanks

  2. #2
    Forum Expert
    Join Date
    12-15-2009
    Location
    Chicago, IL
    MS-Off Ver
    Microsoft Office 365
    Posts
    3,177

    Re: Adding up every other cell in a column

    Enter the formula with Ctrl + Shift + Enter keys together since it is an array formula

    =SUM(IF(MOD(ROW(A1:A11)/2,1),A1:A11,0))
    Attached Files Attached Files

  3. #3
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Adding up every other cell in a column

    The MOD method is generally accepted as the best way.

    =SUM(IF(MOD(COLUMN($A$1:$O$1),2)=1,$A$1:$O$1,0))

    Are you sure you're entering the formula as an array?

    With the cursor in the cell, hold Ctrl+Shift and hit Enter. This will put braces in the formula.
    Make Mom proud: Add to my reputation if I helped out!

    Make the Moderators happy: Mark the Thread as Solved if your question was answered!

  4. #4
    Registered User
    Join Date
    08-23-2008
    Location
    Iowa
    Posts
    7

    Re: Adding up every other cell in a column

    I'm not very familiar with MOD's so I must be missing some thing. This is what I got. Trying to add up B4, D4, F4, etc.. But it is not working.

    excel.JPG
    Attached Images Attached Images
    Last edited by backinblack; 01-22-2015 at 05:05 PM.

  5. #5
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Adding up every other cell in a column

    Neither of your formulas are entered as Arrays.

    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer. Press F2 on that cell and try again.

  6. #6
    Forum Expert Ace_XL's Avatar
    Join Date
    06-04-2012
    Location
    UAE
    MS-Off Ver
    2016
    Posts
    6,074

    Re: Adding up every other cell in a column

    Try this regular formula

    =SUMPRODUCT(A4:P4*(MOD(COLUMN(A4:P4),2)=MOD(COLUMN($B4),2)))
    Life's a spreadsheet, Excel!
    Say thanks, Click *

  7. #7
    Registered User
    Join Date
    08-23-2008
    Location
    Iowa
    Posts
    7

    Re: Adding up every other cell in a column

    Ok got it to work. Found out that it will not work in merged cells. I had 2 cells merged together and it did not like that.

    Thanks for all the help everyone!

  8. #8
    Forum Guru
    Join Date
    05-24-2011
    Location
    India
    MS-Off Ver
    Office 2021
    Posts
    2,237

    Re: Adding up every other cell in a column

    Hello,

    Looks like you are totaling "Equip." column. SO you can simply use SUMIF,

    =SUMIF(6:6,"Equip*",4:4)

    6;6 is sixth row, 4:4 is fourth row.
    Regards,
    Haseeb Avarakkan

    __________________________________
    "Feedback is the breakfast of champions"

+ 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. Adding to the last cell of a column
    By Millenium in forum Excel General
    Replies: 4
    Last Post: 09-12-2011, 05:17 PM
  2. adding value from cell to last value above in a column
    By gdarling in forum Excel General
    Replies: 2
    Last Post: 12-20-2010, 05:26 PM
  3. Adding values in different column / cell
    By rz6657 in forum Excel General
    Replies: 1
    Last Post: 07-23-2007, 10:16 PM
  4. [SOLVED] adding values in column D where cell in column A contains certain
    By William Francis in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-25-2005, 07:36 AM
  5. Adding every third cell in a column
    By Jack Thiel in forum Excel General
    Replies: 3
    Last Post: 04-21-2005, 09:07 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