+ Reply to Thread
Results 1 to 22 of 22

Can I do custom filter in multiple columns?

  1. #1
    Registered User
    Join Date
    06-28-2016
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    80

    Can I do custom filter in multiple columns?

    Can I do custom filter in multiple columns?
    Please refer to the file attached for expected output.
    Attached Files Attached Files
    Last edited by cmokasak; 07-06-2016 at 11:46 PM.

  2. #2
    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
    53,048

    Re: Can I do custom filter in multiple columns?

    The way you are trying to do it - no.

    What are you filtering on - duplicate entries?

    From the looks of your data, you will never get BB1 on column B to show if it has CC1 next to it and you dont want CC1 shown
    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

  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
    53,048

    Re: Can I do custom filter in multiple columns?

    Just to add in...when you filter data, an entire row is hidden (or shown), not just part of it

  4. #4
    Registered User
    Join Date
    06-28-2016
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    80
    Can I used the following method?

    Step 1 Remove value without prefix "AA" and "BB"
    Step 2 Delete all blank cell resulted from step 1

    Please advise how to do for each step
    Thank you in advances.

    N.B. Edited requirements to simplify the problem
    Last edited by cmokasak; 07-02-2016 at 09:08 PM.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Can I do custom filter in multiple columns?

    how about this solution.

    See the bleu cells and then filter out CC
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  6. #6
    Registered User
    Join Date
    06-28-2016
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    80

    Re: Can I do custom filter in multiple columns?

    Hi oeldere,

    Your solution is great. You are my hero.
    This can also be done in reverse way by removing value without prefix "AA" and "BB".

    Could you please tell me steps to do it?

    Like
    1. Transform data to the vertical view:...
    2. Filter steps:... Then,...
    3. Transform data back to horizontal view:...

    Therefore, I can work with 400+ columns and 200+ rows

    Thank you in advances.
    Last edited by cmokasak; 07-03-2016 at 04:18 AM.

  7. #7
    Registered User
    Join Date
    06-28-2016
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    80

    Re: Can I do custom filter in multiple columns?

    Could you please help me?
    This becomes urgent.

  8. #8
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Can I do custom filter in multiple columns?

    Therefore, I can work with 400+ columns and 200+ rows
    Then show us an excel file to work with.

    Please also add the expected result in your file.

    To re-arange the 400 columns I will use VBA.

    Is this an acceptable alternative?

  9. #9
    Registered User
    Join Date
    06-28-2016
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    80

    Re: Can I do custom filter in multiple columns?

    Hi oeldere,

    Quote Originally Posted by oeldere View Post
    how about this solution.
    See the bleu cells and then filter out CC
    Can you please share your steps that you have done on 07-02-2016?
    Then, I can use your steps to apply to my work.
    Please noted that some of my data are sticky confidential.

    Thank you and have a nice day.

  10. #10
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Can I do custom filter in multiple columns?

    Here is the code to rearange the data.

    Please Login or Register  to view this content.

  11. #11
    Registered User
    Join Date
    06-28-2016
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    80

    Re: Can I do custom filter in multiple columns?

    It's great.

    If I would like to add more filters such as EE, FF in addition to AA and BB, where I can put it on your code?

    Can I put the rest of data from filters to 3rd sheet?

    Just for my knowledge, could you please tell me steps that you have done without VBA coding on 02 07 2016?

    Thank you and have a nice day.
    Last edited by cmokasak; 07-04-2016 at 08:47 PM.

  12. #12
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Can I do custom filter in multiple columns?

    First of all, did you tried my code?

    What was the result?

    If I would like to add more filters such as EE, FF in addition to AA and BB, where I can put it on your code?
    Then anser your question in #11 yourself and post it on this forum.


    On 02-07-2016 I did not use any code, i just re-aranged the data manualy to show you.

  13. #13
    Registered User
    Join Date
    06-28-2016
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    80

    Re: Can I do custom filter in multiple columns?

    It's great.
    Could you please provide me VBA that transform back from the vertical way to horizontal alignment (original)?
    Thank you and have a nice day
    Last edited by cmokasak; 07-06-2016 at 03:02 AM.

  14. #14
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Can I do custom filter in multiple columns?

    Although I think you don't answer my questions in #12, I will answer yours

    Could you please provide me VBA that transform back from the vertical way to horizontal alignment (original)?
    After running the VBA code the original data stays in the same format (horizontal).

    I think you don't run the VBA code, am I right?

  15. #15
    Registered User
    Join Date
    06-28-2016
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    80

    Re: Can I do custom filter in multiple columns?

    I am running your VBA code. Sorry for my miscommunication.
    Edited: Could you please provide me VBA that transform filtered data back to horizontal alignment?
    Thank you and have a nice day

  16. #16
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Can I do custom filter in multiple columns?

    See my comment in #8

    Then show us an excel file to work with.

    Please also add the expected result in your file.

  17. #17
    Registered User
    Join Date
    06-28-2016
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    80

    Re: Can I do custom filter in multiple columns?

    Hi oeldere,

    I have created a function formula instead of VBA programming.
    Therefore, my work has been completed.
    Thank you for your great help.

    Have a nice day

  18. #18
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Can I do custom filter in multiple columns?

    You're welcome. We appreciate the feedback!

    Thanks for marking the thread solved.

    It'd also be appreciated if you were to click the add Reputation button at the foot of any of the posts of those who helped you reach a solution.


    It'd also be appreciated if you post your solution on this forum, so other forummembers also can learn from it.

  19. #19
    Registered User
    Join Date
    06-28-2016
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    80

    Re: Can I do custom filter in multiple columns?

    Hi oeldere,

    Thank you for your reply.
    I have added a reputation to your profile.
    Have a nice day

    Hi everyone,

    Thank you for your visit.

  20. #20
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Can I do custom filter in multiple columns?

    I have added a reputation to your profile.
    I did not receive a rep.

  21. #21
    Registered User
    Join Date
    06-28-2016
    Location
    Bangkok
    MS-Off Ver
    2010
    Posts
    80

    Re: Can I do custom filter in multiple columns?

    Quote Originally Posted by oeldere View Post
    I did not receive a rep.
    Please check your reputation again.

  22. #22
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Can I do custom filter in multiple columns?

    thanks for the rep.

+ 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. Print Button that removes columns before printing from custom pivot table filter
    By TheWhiteJamal in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-30-2015, 11:14 AM
  2. Replies: 5
    Last Post: 11-24-2014, 11:58 AM
  3. Using filter to highlight/filter duplicates in multiple columns but within 1 day
    By DaveBre in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-25-2014, 04:07 AM
  4. Macro to filter multiple columns of data to multiple work sheets
    By LISSANN in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-10-2014, 07:24 PM
  5. Filter multiple columns based on multiple data validation fields
    By Jhunnieboy in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 01-30-2014, 03:41 PM
  6. Custom Sorting of Multiple Columns
    By garungaha1 in forum Excel General
    Replies: 3
    Last Post: 06-24-2013, 09:30 AM
  7. Replies: 2
    Last Post: 06-15-2012, 05:34 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