+ Reply to Thread
Results 1 to 4 of 4

VBA code brands by conditions

  1. #1
    Registered User
    Join Date
    02-16-2013
    Location
    Zhiliga
    MS-Off Ver
    Excel 2007
    Posts
    6

    VBA code brands by conditions

    Hello Experts

    I need a vba code that does the following:

    Transfer to Sheet2 just the brands that have Green color , SIze L and available and should NOT have (blue color with XXL size and available).
    For example

    Brand1 has both (Green L YES) & (Blue XXL YES) so it shouldn´t be transfered to Sheet2 . Brand71 has (Green L Yes) &(Blue XXL but NO) so it can be transfered to Sheet2. Brand31 has (Green L Yes) but no (Blue XXL YES) so it can be transfered as well.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA code brands by conditions

    Have you checked out the standard Advanced Data Filtering functionality which will do exactly what you want? No need for VBA unless you want to encode the data filtering.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Registered User
    Join Date
    02-16-2013
    Location
    Zhiliga
    MS-Off Ver
    Excel 2007
    Posts
    6

    Re: VBA code brands by conditions

    Quote Originally Posted by Richard Buttrey View Post
    Have you checked out the standard Advanced Data Filtering functionality which will do exactly what you want? No need for VBA unless you want to encode the data filtering.
    Yes I want to encode it

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: VBA code brands by conditions

    If you perform the manual advanced data filter using your criteria and output ranges to produce an example of the results that you expect to see and upload the workbook again then I'll add the macro for you.

    Regards

+ 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