Results 1 to 3 of 3

VBA code to extract data to another sheet based on conditions

Threaded View

  1. #1
    Registered User
    Join Date
    05-09-2020
    Location
    Yerevan
    MS-Off Ver
    Office 365
    Posts
    20

    VBA code to extract data to another sheet based on conditions

    Hello, I would really appreciate if you could help with the following.

    As seen the attachment I have three columns named Row Number, Person Name & Fruit.

    I want to write a VBA code and extract the rows only whereby people with different names eat the same fruit.

    So, I have two sheets in the excel file- the "Input" sheet which presents the raw data, and "output" sheet which is what I want to get.

    So, I want to be able easily filter out the data based on the logic above. So in my case, output will only be the below, as these are the only raws which satisfy the condition i.e. people with different names eat the same fruit.


    Is there a way I can write an VBA code and get an "output" in excel sheet similar to what I have in excel file? Thank you very much.

    See the excel file
    Attached Files Attached Files

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] if formula based on several criteria to extract data based on conditions
    By JEAN1972 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-17-2018, 12:46 PM
  2. [SOLVED] Extract data based on table of conditions
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 11-06-2015, 01:32 PM
  3. Replies: 3
    Last Post: 12-18-2014, 10:27 AM
  4. Extract the data to another sheet based on variable conditions
    By Villalobos in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-25-2014, 06:10 PM
  5. Extract Data based on conditions on multiple columns
    By checkoncomp in forum Excel General
    Replies: 6
    Last Post: 07-03-2013, 01:54 PM
  6. Replies: 2
    Last Post: 06-01-2012, 09:24 AM
  7. Replies: 0
    Last Post: 07-21-2011, 05:13 PM

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