+ Reply to Thread
Results 1 to 6 of 6

Selecting every nth column in Excel

  1. #1
    Registered User
    Join Date
    12-29-2009
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Selecting every nth column in Excel

    I have a need to select every 3 column in a large spreadsheet.

    Please see the attachment (this shows only 3 months of data, The original has 72 months)

    I need to select every 3rd cell in row 3 (C3, F3, I3, etc.) I also need to select every thrid cell in row 6. The cells are merged for each month, when unmerging the data resides in the first cell, so I need A6, D6, G6, etc for this row.

    What I ultimately do is:

    1) keep a running tab of number of units
    2) keep a 12 motnh rolling average of the data in row 6
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor rwgrietveld's Avatar
    Join Date
    09-02-2008
    Location
    Netherlands
    MS-Off Ver
    XL 2007 / XL 2010
    Posts
    1,671

    Re: Selecting every nth column in Excel

    We could provide you with a solution, but I won't.

    data manipulation is made easier if you use tables with records and attributes. Then you no longer need to have every third cell in a column.

    next is the merging. You bring yourself in great difficulty to have merged cells. Please try to avoid that in the data section.

    In the visualisation sector it can be done, but please avoid it in the data section.

    When your data would look like
    HTML Code: 
    Then your live would be a lot easier.
    Looking for great solutions but hate waiting?
    Seach this Forum through Google

    www.Google.com
    (e.g. +multiple +IF site:excelforum.com/excel-general/ )

    www.Google.com
    (e.g. +fill +combobox site:excelforum.com/excel-programming/ )

    Ave,
    Ricardo

  3. #3
    Registered User
    Join Date
    12-29-2009
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Selecting every nth column in Excel

    Thank you for your reply. I 100% agree with you about merging and tables. However the data I have presented to you is from a seperate program (one I have no influence over). So I am stuck with having to mine data from the 3rd colmun.

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

    Re: Selecting every nth column in Excel

    You can use SUMIF to sum all the "Net" values, e.g.

    =SUMIF(A$2:J$2,"Net",A3:J3)

  5. #5
    Registered User
    Join Date
    12-29-2009
    Location
    Chicago, USA
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Selecting every nth column in Excel

    Thank you.

    Any tips on selecting every 3rd column for the %?

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Selecting every nth column in Excel

    In, say, A14, =AVERAGE(A6:R6) averages months 1 through 6 of data. If you copy it to D14, you get months 2 to 7.
    Entia non sunt multiplicanda sine necessitate

+ 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