+ Reply to Thread
Results 1 to 4 of 4

How to get summary table with unique count and sum value using VBA

  1. #1
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    How to get summary table with unique count and sum value using VBA

    Dear Forum experts,

    It is a continuity of my previous thread and link has been given below. One of the expert helped me a lot and as much as he can, where as I did not pen down my requirement properly. But now, i have properly listed my requirements and model excel sheet has been attached for your kind reference and looking for VBA code / Macro.

    I have a set of individual hospital data, which provides services by month wise and I want to extract only new hospital which newly joined in this month and provides services. We can easily identify the "New" hospital in the column J and which has been indicated as "1". In a month, those new hospital might have been reported 2 times. We want to get unique hospital details based on Hospital Unique ID in the column "E". All the requirement has been clearly given in the attached excel sheet.

    Requirement : 1- Unique count value based on multiple criteria (State/Province wise and Month wise) as well as particular column cell has "1" value.

    Requirement : 2- Unique sum (cumulative) value based on multiple criteria (State/Province wise and Month wise) as well as particular column cell has "1" value.

    Thanks for your support.
    Attached Files Attached Files
    Last edited by bala04msw; 01-18-2021 at 12:51 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    07-14-2017
    Location
    Poland
    MS-Off Ver
    Office 2010
    Posts
    528

    Re: How to get summary table with unique count and sum value using VBA

    I think my code is working fine, but the execution time is not short (a few seconds).
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Best Regards,
    Maras.

  3. #3
    Forum Contributor
    Join Date
    08-19-2016
    Location
    Chennai, India
    MS-Off Ver
    2007
    Posts
    300

    Re: How to get summary table with unique count and sum value using VBA

    Dear Mr. Maras,

    Thank so much for your work and time. Code works perfectly. Hope you dont mind... Requesting you to explain the process, it would really a great learning for me. Could you please?

    Regards

  4. #4
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: How to get summary table with unique count and sum value using VBA

    Please try

    Please Login or Register  to view this content.
    Attached Files Attached Files

+ 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 sum and count function in a pivot table summary
    By jjacob84 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-10-2020, 02:11 PM
  2. Use individual to create summary table (only count clients once) vlookup?
    By Marvin85 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2015, 02:13 PM
  3. Count of unique items after Autofilter to another summary sheet
    By Kiran2012 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-18-2014, 07:21 AM
  4. Replies: 0
    Last Post: 03-22-2012, 08:44 PM
  5. Replies: 2
    Last Post: 02-11-2012, 09:33 PM
  6. Count unique value in pivot table
    By minkus in forum Excel General
    Replies: 4
    Last Post: 11-29-2010, 02:49 PM
  7. summary count of unique numbers
    By Dave Edge in forum Excel General
    Replies: 5
    Last Post: 11-11-2005, 08:10 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