+ Reply to Thread
Results 1 to 4 of 4

need macro code or any function to consolidate the data with counts

  1. #1
    Registered User
    Join Date
    01-26-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    14

    need macro code or any function to consolidate the data with counts

    Hi Team,

    Need macro code or any function to consolidate the data by count wise in excel. Below the data how i need.

    Sheet 1 - Summary tab
    Sheet 2 - order processed
    Sheet 3 - order completed

    Sheet 2 contains below data:

    date order
    processed name
    01/25/2014 123 MR Xyz
    01/25/2014 321 MR Xyz
    01/25/2014 456 MR Zxy
    01/26/2014 789 MR Zxy
    01/26/2014 1011 MR Zxy
    01/26/2014 1213 MR XyZ
    01/27/2014 1314 Mr XYZ

    Sheet 3 Contains data below:

    date order
    completed name
    01/25/2014 1231 MR Zxy
    01/25/2014 3212 MR Xyz
    01/25/2014 4563 MR Zxy
    01/26/2014 7894 MR XyZ
    01/26/2014 10115 MR Zxy
    01/26/2014 12136 MR XyZ
    01/27/2014 13147 Mr XYZ

    I need the data below in Summary sheet.(it would be better if i get date also so that i can get the production of whole month for an employees, if i select the particular date I should get the count of employee per day for both order processed and completed)

    Name count of order processed count of order completed
    MR XYZ
    Mr ZXY

    Please let us know if you need further information. Thank you very much for your help in advance.

    Regards,
    Girish

  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: need macro code or any function to consolidate the data with counts

    Hi,

    The best advice I can offer is have one sheet with a single which contains both orders processed and order completed. The fields for the table would be

    Date
    Name
    Order Ref
    Order State 'which would contain either "P" or "C" for Processed or completed.

    Then use a Pivot table to get the desired output.
    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
    Registered User
    Join Date
    01-26-2014
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: need macro code or any function to consolidate the data with counts

    thanks for the reply, i need to auto capture the data in summary sheet if the employee update the data in sheet 1 & sheet 2 since if i do pivot table i need to work it manually daily. Please let us know if their any function,

    i have few more columns in sheet 1 and sheet 2 so i can't merge both order processed and order completion in one sheet.
    Last edited by girishhb; 01-26-2014 at 10:45 AM. Reason: missed some information

  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: need macro code or any function to consolidate the data with counts

    Quote Originally Posted by girishhb View Post
    thanks for the reply, i need to auto capture the data in summary sheet if the employee update the data in sheet 1 & sheet 2 since if i do pivot table i need to work it manually daily. Please let us know if their any function,

    i have few more columns in sheet 1 and sheet 2 so i can't merge both order processed and order completion in one sheet.
    I'm not saying merge the sheets (as they are). What I am saying though is bring all the data onto one sheet. And if one sheet has more columns than another, no matter. Just create a single sheet with as many unique fields as necessary. Some fields may be blank for some records - but that's fine.

    You really should bring all this together on one sheet and use a PT.

+ 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] Expanding a summary cell into individual counts...opposite of consolidate?
    By blin100 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-06-2015, 09:10 AM
  2. Code to consolidate data on a single tab
    By alchavar in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 10-31-2013, 12:24 PM
  3. [SOLVED] HELP With VBA Code to consolidate lines of data using an identifier
    By kenadams378 in forum Excel Programming / VBA / Macros
    Replies: 33
    Last Post: 07-27-2012, 11:09 AM
  4. VB Code to Consolidate data from different files / tabs
    By tt388 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-29-2011, 11:53 AM
  5. A function (or a Macro) that counts a specific kind of cells
    By buch84 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-16-2010, 07:31 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