+ Reply to Thread
Results 1 to 6 of 6

Formulas to for table data compile/crunching

  1. #1
    Forum Contributor
    Join Date
    11-21-2013
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    168

    Formulas to for table data compile/crunching

    Hi all,

    Happy New Year!

    I have a data in tabular format and am having difficulties in compiling them.
    Refering to the attached, my data is consist of 3 parts: date, code and time in a day (48 * 15 mins inetrval).

    My intended result is to display the total of each code for each interval (if any) for each date.

    For example, the codes I have AUTCHI and BREAK. I would like to show the total of these codes at these intervals 1500, 1515, 1530, 1545, maybe 3,3,3,4.
    Refering to the attached, the header of the code columm STATE_CODE_1 is corressponding to the time column STATE_TIME_1, from 1 to 10.
    I am having problem to match each STATE_CODE_x to each STATE_TIME_x, not to mention I have another condition which is the date.

    It's a bit difficult to explain, hence I have drafted my intended table on the second sheet.

    Appreciate if anyone is able to assist. Please let me know if I can explain more clearly.

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formulas to for table data compile/crunching

    Hi,

    Are you able to change the raw data layout so that you have columns for

    Date
    State (Values State1, State2..etc)
    Code (Values SCHOFF, AUTCHI...etc
    Time

    i.e. you'll have a table of approx 4400 rows.

    If you can then the task will be simplified immensely since a straightforward pivot table could analyse it.
    Even if you can't obtain the data in that format I suggest that a pre-processing macro to put the data into that layout would be the best way forward.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  3. #3
    Forum Contributor
    Join Date
    11-21-2013
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    168

    Re: Formulas to for table data compile/crunching

    Hi Richard,

    Thank you for your reply.

    I can't change the raw data layout, so I will go ahead with your second suggestion.
    Can you further elaborate on how should I change the layout? (I might have problem on the macro part)
    For example. are you suggesting that to compile all states into 1 column?

    Thank you!
    Last edited by hcyeap; 01-02-2015 at 11:22 PM. Reason: typo

  4. #4
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formulas to for table data compile/crunching

    Hi,

    See attached

    The Create Normalised data buttoin runs a macro that reorders your data in the 4 column list. Your summary table can then use that. Or indeed you may find the Pivot table easier to use and more useful.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    11-21-2013
    Location
    KL
    MS-Off Ver
    Excel 2010
    Posts
    168

    Re: Formulas to for table data compile/crunching

    Hi Ricahrd,

    Thank you very much!
    That helps me a lot.

    Thank you!!
    Really appreciate.

  6. #6
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formulas to for table data compile/crunching

    Hi,

    Glad to have helped and thanks for the rep.

+ 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. Data Crunching
    By Freer in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 11-14-2013, 12:33 AM
  2. Just relaxing crunching numbers....
    By Bembs21 in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 04-18-2012, 09:13 AM
  3. compile table with data from other tables
    By Dazzle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2010, 08:43 PM
  4. searching by date and crunching associated data
    By matthew72128 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-25-2008, 06:57 AM
  5. Massive Statistical Number Crunching
    By spl3001 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-16-2008, 05:47 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