+ Reply to Thread
Results 1 to 2 of 2

Copy, paste data based on a particular criteria

  1. #1
    Forum Contributor bonny24tycoon's Avatar
    Join Date
    04-02-2012
    Location
    Hell
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    405

    Copy, paste data based on a particular criteria

    Hi Team,

    I've been away for a month or so.. How are you all? Did I miss any fun??

    My query -

    I have a survey raw data; however, only need some specific info. Attached example sheet - Sample.xlsm

    Some information before we start -

    1. RawData Sheet: This is the actual dump of the data. Remember, column after SITE are the names of the categories. They contain either 1(Yes) or 0(No)

    2. Final Sheet: This is the sheet where I need the output with the mentioned format. I am looking to populate the category name here based on the raw data given.

    3. Every row has a Unique ID.

    4. Every Unique ID can have 1 in multiple columns/headers.

    5. There can be more than 5000 to 10000 Unique ID's and 100 Categories/ Yellow highlighted columns.

    I need a VBA to do the following -

    1. For every Unique ID it should identify the categories/yellow highlighted columns containing a "1"

    2. Copy the Unique ID, Name and Site alongwith the Concatenated column header names that contained a "1".

    For Eg (with the attached example) -

    Unique ID 2 - has "1" only under "Diapers" and "Feminine Care". So in sheet "Final", you would need to paste the row information i.e Unique ID, Name, Site and the concatenated headers "Diapers, Feminine Care".

    I hope I was able to explain this to its best.
    Thanks,

    Bonny Tycoon


  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,551

    Re: Copy, paste data based on a particular criteria

    See if this will work you?

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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