+ Reply to Thread
Results 1 to 4 of 4

Populate data on table based on multiple criteria and value selected from drop-down

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

    Populate data on table based on multiple criteria and value selected from drop-down

    Hi all,

    Good day.

    Referring to the attached sample, I would like to populate the data from my raw using macro.
    Reason being, as my raw gets bigger (currently ~78k rows), it took some time to refresh everytime the users change the value from drop down. Also, the file size is quite big for email distribution.

    A senior of mine suggested me to use macro to do all the calculation directly from the raw instead of using formula and pivot.

    My intended result is :
    1) to show the sum of duration, of each segment, for each month, base on the name from drop down.
    2) to show the sum of duration, of each group, for each month, base on the name from drop down - group 1 = segment 1&2, group 2= segment 3&4, group = segment 5
    all calculated directly from raw without adding any helper column, like =month (I colored as yellow in my sample file)

    So far, I can understand the part of calculation using nested for each loop for the multiple criteria. My main obstacle is that I don't know how to populate the data to the table as I am only used to using formula to populate data.

    Hope my explanation is clear.

    Appreciate any assistance.

    Thank you!!!
    Attached Files Attached Files
    Last edited by hcyeap; 06-25-2015 at 09:42 AM. Reason: Typo

  2. #2
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Populate data on table based on multiple criteria and value selected from drop-down

    Maybe:

    Please Login or Register  to view this content.

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

    Re: Populate data on table based on multiple criteria and value selected from drop-down

    Hi John,

    Thank you for your prompt reply.

    It work.... but it's too complicated for me...
    I'll need to spend more time to fully understand though.

    Thank you very much!

  4. #4
    Forum Expert
    Join Date
    06-12-2012
    Location
    Ridgefield Park, New Jersey
    MS-Off Ver
    Excel 2003,2007,2010
    Posts
    10,241

    Re: Populate data on table based on multiple criteria and value selected from drop-down

    You're welcome. Glad to help out and thanks for the feedback. Please mark this thread as SOLVED.

+ 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. How do I populate a table based on multiple criteria
    By SMIengineering in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 03-12-2015, 02:14 PM
  2. Populate data in a table based on dropdown criteria
    By Ragsbr in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 07-08-2014, 03:23 AM
  3. [SOLVED] Automatically populate a table with slected data based on criteria
    By smithrog in forum Excel General
    Replies: 7
    Last Post: 07-01-2013, 03:52 AM
  4. [SOLVED] Populate Table with data from other sheets based on drop down selection
    By nhen.enry in forum Excel - New Users/Basics
    Replies: 13
    Last Post: 09-06-2012, 10:54 PM
  5. Populate Data Based on Multiple Criteria
    By Kumara_faith in forum Excel General
    Replies: 4
    Last Post: 01-31-2011, 09:52 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