+ Reply to Thread
Results 1 to 3 of 3

How to sum every 5th cell in a row??

  1. #1
    Registered User
    Join Date
    06-19-2014
    Location
    hk
    MS-Off Ver
    2010
    Posts
    1

    Unhappy How to sum every 5th cell in a row??

    I want to sum the 5th number in a roll starting with column F, e.g. F7, K7, P7, U7........ until HV7.
    Can someone tell me how to do it?? Thanks!!

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: How to sum every 5th cell in a row??

    welcome to the forum, parco. maybe:
    =SUMPRODUCT((MOD(COLUMN(F7:HV7)-6,5)=0)*F7:HV7)

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,967

    Re: How to sum every 5th cell in a row??

    Do columns F, K, P, U........ until HV7 have the same heading?

    If so, then another method would be to use SUMIF()...

    =SUMIF($F$1:$HV$1,$F$1,F7:HV7)
    You could replace ,$F$1, with the name is you want
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

+ 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. [SOLVED] When one cell equals value of another cell, then third cell displays text of fourth cell?
    By spookymyo in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-12-2021, 02:12 PM
  2. If Cell A is equal to Cell B replace the data from Cell A with Cell C. How can I do this.
    By tristanhathaway in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 03-01-2014, 08:05 PM
  3. [SOLVED] How to create/run "cell A equals Cell B put Cell C info in Cell D
    By abmb161 in forum Excel General
    Replies: 7
    Last Post: 02-05-2014, 02:20 AM
  4. Replies: 1
    Last Post: 11-06-2013, 02:56 AM
  5. Replies: 1
    Last Post: 11-03-2012, 09:05 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