+ Reply to Thread
Results 1 to 3 of 3

Grouping columns depending on a row's values

  1. #1
    Registered User
    Join Date
    12-23-2014
    Location
    ECU
    MS-Off Ver
    2010
    Posts
    3

    Grouping columns depending on a row's values

    Hello, please your help with a code for the following:

    Grouping the range of columns which values in a row is greater than x number, for example:

    Row 3 of a spreadsheet contains the number of the period:C3=1, D3=2, E3=3, F3=4, G3=5, H3=6...Q3=15

    Cell A1 contains the number of periods to report. Let's assume that we want to report the first 5 periods, so A1=5

    Now, assuming the above, the required code should group and hide columns H to Q.

    Thanks in advance for your help!

  2. #2
    Valued Forum Contributor WasWodge's Avatar
    Join Date
    08-02-2010
    Location
    Hampshire,England
    MS-Off Ver
    Office 365 and Office 2010
    Posts
    882

    Re: Grouping columns depending on a row's values

    Possibly

    Please Login or Register  to view this content.
    or even

    Please Login or Register  to view this content.
    Last edited by WasWodge; 12-23-2014 at 07:42 PM.
    If my solution worked (or not) please let me know. If your question is answered then please remember to mark it solved

    Computers are like air conditioners. They work fine until you start opening windows. ~Author Unknown

  3. #3
    Registered User
    Join Date
    12-23-2014
    Location
    ECU
    MS-Off Ver
    2010
    Posts
    3

    Re: Grouping columns depending on a row's values

    Thank you very much WasWodge. Really appreciated. I'll go with alternative #1.

+ 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. Grouping rows (with VBA) depending on three levels/columns
    By toblju in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-13-2013, 12:05 PM
  2. [SOLVED] Grouping data and pasting values across columns
    By Armani90210 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-24-2012, 06:24 PM
  3. [SOLVED] A macro for grouping of same values of several columns and totals
    By novice_excel_2012 in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 06-03-2012, 07:09 AM
  4. Replies: 1
    Last Post: 02-16-2012, 09:18 AM
  5. Replies: 16
    Last Post: 01-11-2012, 10:51 AM

Tags for this Thread

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