+ Reply to Thread
Results 1 to 5 of 5

Summing every other column value in every row

  1. #1
    Registered User
    Join Date
    05-18-2013
    Location
    zg
    MS-Off Ver
    Excel 2010
    Posts
    4

    Summing every other column value in every row

    Greetings to everybody,

    I have table (aproximately 100x100), and i have to sum every odd or even value in row, also i have to do that in all rows,
    I manage to do in single row with
    =SUMPRODUCT(MOD( COLUMN($B$5:$LK$5)-1; 2 )*$B$5:$LK$5)

    but draging down formula in "sum" column, "5" is not chaning,

    is there any other way then manualy changing value "5" into proper row number?


    Cheers

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    15,231

    Re: Summing every other column value in every row

    Hi Helios and welcome to the forum.

    It seems you simply need to remove the dollar signs from in front of the "5" in your formula. Make it
    =SUMPRODUCT(MOD( COLUMN($B5:$LK5)-1; 2 )*$B5:$LK5)

    Hope that works.... Here is an example in the attached.

    Read http://www.exceltrick.com/formulas_m...te-references/ to see why we know this....
    Attached Files Attached Files
    Last edited by MarvinP; 05-18-2013 at 11:00 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Summing every other column value in every row

    HI Helios

    welcome to the forum

    Remove $ sign before 5 and drag again


    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey
    +91 9810929744
    dilipandey@gmail.com

  4. #4
    Registered User
    Join Date
    05-18-2013
    Location
    zg
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Summing every other column value in every row

    Thank you very much for your quick respond!
    You helped me a lot!

  5. #5
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Summing every other column value in every row

    Great..!!

    You are welcome helios_cro



    Regards,
    DILIPandey
    <click on below * if this helps>

+ 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