+ Reply to Thread
Results 1 to 10 of 10

help with grouping data

  1. #1
    Registered User
    Join Date
    07-22-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    4

    help with grouping data

    Hi hope you can help and you do not laugh at either my incompetency or my paint.jpg drawing

    helpfile.jpg

    I have a list of data

    I need to
    1) confirm item description and sku match
    2) export in one row and list years.


    I really hope this makes sense, I am sure it is not hard but as they say, its easy when you know how.


    Thanks for looking and any help
    Attached Files Attached Files

  2. #2
    Registered User
    Join Date
    03-15-2017
    Location
    United States
    MS-Off Ver
    2016
    Posts
    63

    Re: help with grouping data

    Are you trying to compare the original data to the collated data?

  3. #3
    Registered User
    Join Date
    07-22-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    4

    Talking Re: help with grouping data

    No sorry I think I mislead you, The collated data and sku must match and report back the year in the same row

    basically instead of having the same data with different years in different rows to have the data in one row and corresponding years adjacent.


    thank you for looking at this.

    James

  4. #4
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: help with grouping data

    This solution provides the information you want, but not in the exact format you want. It is a pivot table solution. The 1's indicate where the the year applies to the product.

    If you need an exact solution, I can take it one step further with VBA.
    Attached Files Attached Files
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  5. #5
    Forum Expert jaslake's Avatar
    Join Date
    02-21-2009
    Location
    Atwood Lake in Mid NE Ohio...look it up.
    MS-Off Ver
    Excel 2010 2019
    Posts
    12,749

    Re: help with grouping data

    Hi James

    Take a look at this Code in the attached...CTRL + q will fire the Code...
    Please Login or Register  to view this content.
    Attached Files Attached Files
    John

    If you have issues with Code I've provided, I appreciate your feedback.

    In the event Code provided resolves your issue, please mark your Thread as SOLVED.

    If you're satisfied by any members response to your issue please use the star icon at the lower left of their post.

  6. #6
    Registered User
    Join Date
    03-15-2017
    Location
    United States
    MS-Off Ver
    2016
    Posts
    63

    Re: help with grouping data

    I see what you're trying to accomplish here. Un Momento unless someone gets to it before I do.

  7. #7
    Registered User
    Join Date
    07-22-2013
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: help with grouping data

    Hi jaslake



    When I run an awful lot of data 50k lines I get a memory error "close applications or use less data. when i close the first error message i get a debug pop up reading "Run time error 1004 delete method or range class failed"

    I will just use smaller chunks of data. I am testing the maximum I can use in one extraction.

    Thank you
    Last edited by jamesg123; 01-30-2018 at 03:34 PM.

  8. #8
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: help with grouping data

    I took the second step. You can hide the pivot sheet if you want.
    Attached Files Attached Files

  9. #9
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: help with grouping data

    Slight modification - this one calculates the complete model name.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    03-15-2017
    Location
    United States
    MS-Off Ver
    2016
    Posts
    63

    Re: help with grouping data

    I am not a pro and when it comes to simple macros as such, I create very easy structural scripts which makes it a lot easier to understand the code while learning it at the same time. I didn't use any special formula so please feel free to take a look. It's best you type any codes given by anybody so you can learn them, but examples given like what @jaslake gave; Albeit more efficient, It can look confusing at first and even more confusing on where to start at learning all the functions and syntax.

    Please Login or Register  to view this content.

+ 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. [SOLVED] Combining data in different rows into one cell, grouping by common data
    By isabelle.r in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-01-2017, 08:08 AM
  2. Replies: 0
    Last Post: 12-10-2015, 08:24 AM
  3. Grouping data in excel and Copy pasting data in Notepad
    By harshit_0078 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-15-2015, 09:49 AM
  4. Replies: 4
    Last Post: 07-26-2014, 02:35 AM
  5. Replies: 6
    Last Post: 06-07-2012, 09:32 AM
  6. Want to get a Series with Grouping and Sub-Grouping based on 2 criterias.
    By e4excel in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-02-2011, 05:46 AM

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