+ Reply to Thread
Results 1 to 6 of 6

Button to choose A/B/C values from one column & show them all

  1. #1
    Registered User
    Join Date
    02-17-2021
    Location
    Helsinki, Finland
    MS-Off Ver
    365
    Posts
    31

    Button to choose A/B/C values from one column & show them all

    G- column indentifies different locations per row. G5 can have value "London", G6 can be "Frankfurt", and G7 "Manchester" etc.
    If the user would only want to see rows that are related to London, it should be able to do with a button click, which would filter the G-column results. Or if the user would like to see "Frankfurt" related rows, it should be filtered by a click of button.

    Manually filtering is possible but to make it easy for the user, how should I do it? I want the user to be able to:
    - filter per one city
    - clear the filtering , so that all the cities -> rows can be seen.

    Is that done with VBA and if so, what kind of code should I try? I've done one VBA previously so please response as you would for a total beginner. I do know how to assign the VBA to a button but the code - alert box or similar??

    Could this be solved with one button, with four options "London", "Frankfurt", "manchester" and "clear filtering".
    Thank you .
    Last edited by Tsinos; 03-18-2021 at 01:11 PM.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Button to choose A/B/C values from one column & show them all

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    02-17-2021
    Location
    Helsinki, Finland
    MS-Off Ver
    365
    Posts
    31

    Question Re: Button to choose A/B/C values from one column & show them all

    Thank you Logit! I did not know that is possible! One final question, can the filtering be done so that it searches only based on three first letters of the City? Partial match.
    Can there be a universal solution as when manually filtering there is an option "begins with".
    Last edited by Tsinos; 03-18-2021 at 04:09 AM. Reason: Partial Match

  4. #4
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Button to choose A/B/C values from one column & show them all

    .
    Please Login or Register  to view this content.
    Column Headers in ROW #1

    Data begins in ROW #2

  5. #5
    Registered User
    Join Date
    02-17-2021
    Location
    Helsinki, Finland
    MS-Off Ver
    365
    Posts
    31

    Thumbs up Re: Button to choose A/B/C values from one column & show them all

    Fantastic! Now it works like a dream. Thank you for your input!
    Last edited by Tsinos; 03-18-2021 at 01:08 PM. Reason: SOLVED

  6. #6
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Button to choose A/B/C values from one column & show them all

    Glad to help.

+ 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] Retrieve values from 1 column and only show non-duplicate values.
    By whoisdane in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-29-2020, 01:57 AM
  2. Only show values from in specifc column if other column match
    By jeppenedved in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 05-04-2019, 06:54 PM
  3. Replies: 6
    Last Post: 08-06-2018, 09:44 PM
  4. [SOLVED] Toggle Button -Show Hide Column Range Fails
    By sl729 in forum Excel General
    Replies: 5
    Last Post: 05-22-2016, 09:17 PM
  5. Replies: 10
    Last Post: 01-17-2013, 01:42 PM
  6. Form - vba to choose which label to show
    By jamesryan in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2010, 06:12 AM
  7. choose cells in a column which are preceded by at least 2 good values
    By seafarer in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-06-2008, 04:24 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