+ Reply to Thread
Results 1 to 14 of 14

summarize input table

  1. #1
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    summarize input table

    I am enclosing a file to help identify the input file and the output desired.

    Input file similar to cols A,B,C and D.
    Output like that shown in cols L,M,N,O,P

    I am not sure the best approach to get the desired output...open to suggestions.

    if you need additional information or if i have confused you please let mknow.
    Attached Files Attached Files

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

    Re: summarize input table

    Please Login or Register  to view this content.

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: summarize input table

    Another option...
    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: summarize input table

    what does this mean/do?

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: summarize input table

    jindon, found something else i wanted to ask you about

    what does this do and does it have any limitations for "size" like if num of rows is large

    Please Login or Register  to view this content.

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

    Re: summarize input table

    I'm not with my pc, so my reply will be tomorrow.

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: summarize input table

    Just out of interest...Did you try code in post 3...

  8. #8
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: summarize input table

    sintek, not yet but i plan to. thanks again.

  9. #9
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,239

    Re: summarize input table

    !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Thanks.gif

  10. #10
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: summarize input table

    Jindon,

    I have another question regarding this step:
    Please Login or Register  to view this content.
    I looked at "w" before and after this assignment. "w" is a 5 element array where element 1 "w(1)" is the protocol and "w(2)" is a dictionary. Elements 3,4, and 5...
    not sure what they are for.......but regardless.........how is it that when you say

    Please Login or Register  to view this content.
    that it knows to update not just the dictionary but also w(1) element of the protocol........i dont get it

    what exactly is going on when you make this assignment. sorry to bother you but i just dont understand.

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

    Re: summarize input table

    Quote Originally Posted by welchs101 View Post
    what does this mean/do?

    Please Login or Register  to view this content.
    Use like If function in a cell, see
    https://docs.microsoft.com/en-us/off...p/iif-function

    Quote Originally Posted by welchs101 View Post
    what does this do and does it have any limitations for "size" like if num of rows is large

    Please Login or Register  to view this content.
    It converts Jugged Array(arrays in an array) to 2D array when each element are 1D array with the same size.
    Limitstions;
    No element should not have more than 255 characters.
    Number of Array should not exceed 65536, if I remember correctly.

    If your actual data is like above, you will need to prepare another array for output.

    Quote Originally Posted by welchs101 View Post
    Please Login or Register  to view this content.
    I looked at "w" before and after this assignment. "w" is a 5 element array where element 1 "w(1)" is the protocol and "w(2)" is a dictionary. Elements 3,4, and 5...
    not sure what they are for.......but regardless.........how is it that when you say

    Please Login or Register  to view this content.
    Because your output table has 5 columns, it should be so.
    Each array, w, represents the line of output for unique "Protocol"
    w(2) = sub-dictionary for counting its unique site and will be converted to its count later.

    HTH

  12. #12
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: summarize input table

    jindon, this may be a stupid question but where/when do you assign the protocol to the parent dictionary? what line of code?

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

    Re: summarize input table

    Please Login or Register  to view this content.
    If you want, add a variable like dic and replace above line with
    Please Login or Register  to view this content.
    Last edited by jindon; 11-22-2019 at 11:12 AM.

  14. #14
    Forum Contributor
    Join Date
    12-01-2007
    Location
    USA-North Carolina
    MS-Off Ver
    MS Office 2016
    Posts
    2,662

    Re: summarize input table

    thanks for the info....

+ 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. Using data in a table to summarize in another. How?
    By Gedon88 in forum Excel General
    Replies: 9
    Last Post: 05-04-2018, 12:47 AM
  2. [SOLVED] VBA code to summarize and count input
    By mpatsis in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-11-2017, 11:33 PM
  3. Summarize an array depending on the values in two input parameter cells
    By perpersson in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-19-2016, 03:47 PM
  4. VBA Multipage Userform - Summarize User Input in one of the pages for review
    By harinikidambi in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-27-2016, 04:18 PM
  5. Summarize a table
    By fageh in forum Excel Charting & Pivots
    Replies: 4
    Last Post: 06-29-2015, 02:38 AM
  6. Pivot Table to summarize data in a table
    By ppalmerirs in forum Excel Charting & Pivots
    Replies: 10
    Last Post: 11-18-2014, 04:49 PM
  7. summarize table
    By sugargenius in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-11-2005, 01:15 PM

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