+ Reply to Thread
Results 1 to 6 of 6

Grouping Data by Category and SubCategories and Summarizing unique data

  1. #1
    Registered User
    Join Date
    10-31-2014
    Location
    Albany, New York
    MS-Off Ver
    2010
    Posts
    32

    Post Grouping Data by Category and SubCategories and Summarizing unique data

    Dear Experts,
    I need help with writing a VBA code that will group data under a category and sub-categories and summarize unique data by using data suffix.

    Attached is the sample spreadsheet.

    Output1: From the raw file, group each data (File ID) under each category (Folder) and sub-category (Sub-Folder)

    Output 2:
    ColA: Summarize all File IDs
    ColB: Unique suffix data (value before first dash of the File ID)
    ColC: Value of Concatenated ColB Data, separated by Vertical Bar Pipe


    Thank you!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Grouping Data by Category and SubCategories and Summarizing unique data

    Try
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-31-2014
    Location
    Albany, New York
    MS-Off Ver
    2010
    Posts
    32

    Re: Grouping Data by Category and SubCategories and Summarizing unique data

    @jindon. Super! That works! Thank you!

  4. #4
    Registered User
    Join Date
    10-31-2014
    Location
    Albany, New York
    MS-Off Ver
    2010
    Posts
    32

    Re: Grouping Data by Category and SubCategories and Summarizing unique data

    @Jindon - I expanded my data and I am having "Runtime Error Mismatch 13" on this line:

    x = Split(Split(Application.Trim(r(3)), ": ")(1), ", ")

    It happens when characters after "FIleIDs:" go beyond 235 characters.

    Example:
    Location
    Folder 3
    SubFolder2 FileIDs: 12346-4, 56787-6, 56787-11, 56787-4, 789014-5, 11111-1, 111111-2, 1111111-3, 1111111-5, 1111111-6, 12111113-1, 12346-4, 56787-6, 56787-11, 56787-4, 789014-5, 11111-1, 111111-2, 1111111-3, 1111111-5, 1111111-6, 12111113-1, XYZ-1, 11334-1
    Last edited by mgcarino14; 12-04-2019 at 01:02 PM.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Grouping Data by Category and SubCategories and Summarizing unique data

    Try change that line to
    Please Login or Register  to view this content.

  6. #6
    Registered User
    Join Date
    10-31-2014
    Location
    Albany, New York
    MS-Off Ver
    2010
    Posts
    32

    Re: Grouping Data by Category and SubCategories and Summarizing unique data

    Thank you @Jindon, that fixed that error.

+ 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. Grouping and Summarizing Data
    By kpwork in forum Excel General
    Replies: 2
    Last Post: 05-22-2017, 03:58 PM
  2. Replies: 7
    Last Post: 07-02-2015, 05:19 PM
  3. Item Category & SubCategories
    By jayeshmachining in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-23-2014, 08:07 AM
  4. Replies: 14
    Last Post: 05-23-2012, 08:09 PM
  5. Merging data for subcategories
    By SiGardner in forum Excel General
    Replies: 0
    Last Post: 10-26-2010, 12:27 PM
  6. Summarizing Expenses by Category
    By Pink Floyd in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 10-16-2007, 12:06 AM
  7. [SOLVED] Summarizing category
    By SigmaX in forum Excel General
    Replies: 1
    Last Post: 11-04-2005, 03:15 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