+ Reply to Thread
Results 1 to 7 of 7

Marco to compile data to another worksheet based on criteria

  1. #1
    Registered User
    Join Date
    02-25-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    79

    Marco to compile data to another worksheet based on criteria

    Hi

    Could someone please help me out with this, I have a workbook with one sheet and a lot of data. What I am trying to do is this.

    I have Columns A – G

    In A column I have a Code and in G column I have a Pack Size

    What I am trying to do is this, I need a macro that would look at A column looking for a match, when it finds a match it would then look at G column, if the numbers in G column is different I need them listed on another work sheet.

    So if A1 & A125 were the same code lets say 00001 and G1 and G125 were different lets say G1 was 6 and G125 was 12 I need a new sheet listing A – G columns for both A1 and A125, I would like these together. In some cases I may have the A1 code listed 3 or 4 times in that case I would need all 3 or 4 listed

    Any help would be very much appreciated.

  2. #2
    Registered User
    Join Date
    02-25-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Marco to compile data to another worksheet based on criteria

    I have added a sample sheet to show you what i need. As you can see the ones highlighted in Grey need to be listed on another sheet as the G column is different

    The ones highlighted in Blue do not need to be listed as the G column is the same
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    02-25-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Marco to compile data to another worksheet based on criteria

    Can someone please help me with this or point me in the right direction. The workbook i have has over 50k rows so it is not easily sorted, this would be a great help if anyone can help, or just to let me know it can not be done will be fine.

    Many Thanks
    Last edited by SilverFox; 03-15-2012 at 07:43 AM.

  4. #4
    Registered User
    Join Date
    02-25-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Marco to compile data to another worksheet based on criteria

    Last try to see if anyone can help me out on this?

  5. #5
    Registered User
    Join Date
    02-25-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Marco to compile data to another worksheet based on criteria

    Ok thanks anyway guys you have been very helpful in the past, obviously this can't be done.

  6. #6
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Marco to compile data to another worksheet based on criteria

    Hey, you need to wait for a day atleast before you bump the post. You have already bumped it thrice today.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  7. #7
    Registered User
    Join Date
    02-25-2009
    Location
    London
    MS-Off Ver
    Excel 2003
    Posts
    79

    Re: Marco to compile data to another worksheet based on criteria

    Point taken, i was just in a hurry to get this job done, it won't happen again. I am going through it manually today.

    Cheers

+ 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