+ Reply to Thread
Results 1 to 3 of 3

Horizontal filtering

  1. #1
    Registered User
    Join Date
    02-11-2014
    Location
    London, England
    MS-Off Ver
    Excel 2010
    Posts
    27

    Horizontal filtering

    Hi,

    I need a VBA to do some sort of horiztonal filter in Excel. I assume the only real way of doing this is by hiding columns which is fine.

    The code needs to read the input from F1 and hide any columns where this input does not appear in cell 1 of that column i.e. only leave the columns which match the corresponding input.

    - Please only hide columns from G onwards (the code needs to read to the end of the non blank columns as I need to keep adding data columns)

    See screenshot below - in this instance the input is "GCM" in F1 so columns H, I and J would need to be hidden but columns K and L would remain visible.

    Thanks

    Jack
    Capture1.JPG

  2. #2
    Forum Contributor
    Join Date
    06-22-2011
    Location
    somerset
    MS-Off Ver
    365
    Posts
    328

    Re: Horizontal filtering

    Please Login or Register  to view this content.
    Last edited by Leon V (AW); 03-04-2014 at 12:36 PM.
    Sub Reputation()
    Dim Problem as Variant
    Dim Reputation as Integer
    For Each Problem in Forum.Threads
        If Problem.Title = "*[Solved]*" and Solver.Name = "Leon V (AW)" Then Reputation = Reputation + 1
    Next Problem
    End Sub

  3. #3
    Forum Contributor
    Join Date
    03-04-2014
    Location
    Canada Eh
    MS-Off Ver
    Excel 2010
    Posts
    199

    Re: Horizontal filtering

    Something like:
    Please Login or Register  to view this content.

+ 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. Horizontal Data Filtering - Drop down boxes
    By barqujo in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-07-2013, 12:26 PM
  2. [SOLVED] Copying and pasting Horizontal Data to Horizontal cells
    By jjin in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-11-2013, 01:14 AM
  3. Replies: 2
    Last Post: 03-11-2011, 09:02 AM
  4. [SOLVED] Horizontal Filtering
    By Ed in forum Excel General
    Replies: 5
    Last Post: 08-22-2006, 07:35 PM
  5. [SOLVED] trouble filtering a list. Why isn't column filtering?-number of criteria
    By Pat in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-18-2005, 11:05 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