+ Reply to Thread
Results 1 to 4 of 4

Sum Product - Macro - Unique value

  1. #1
    Forum Contributor
    Join Date
    06-12-2009
    Location
    Banglore
    MS-Off Ver
    Excel 2007
    Posts
    129

    Sum Product - Macro - Unique value

    Hi,

    I have some data in the DATA work sheet. I need a macro which will create a summary based on the Current Status and Severity in the Summary sheet.

    It should create a table where all unique Current status are listed and with the count of all based on the seveirity and final column with total. Sample is kept for you reference.

    Note the Data sheet willl vary daily and hence the unique Current Status will vary to any number.

    Many Thanks,
    Santanu
    Attached Files Attached Files
    Last edited by santanuKD; 10-20-2010 at 08:47 AM.
    Shan

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Sum Product - Macro - Unique value

    Why not just use a Pivot Table ?

    First create Dynamic Named Range for use as source of Pivot:

    Please Login or Register  to view this content.
    Then create the Pivot using _PTData as Source:
    Set Severity as Row Label and Current Status as Column Label
    Set Current Status as Data Field (set to COUNT)
    You can use VBA if really necessary to automate the "refresh" of the Pivot Cache as and when the Data sheet is altered else just right click on Pivot and click Refresh as and when needed.

  3. #3
    Forum Contributor
    Join Date
    06-12-2009
    Location
    Banglore
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: Sum Product - Macro - Unique value

    I am aware of Pivot Table but not aware how this "Dynamic Named Range for use as source of Pivot". It would be indeed great if you could edit my excel with what ever changes u have suggested, with that I could learn as well.

    Many Thanks,
    Santanu

  4. #4
    Forum Contributor
    Join Date
    06-12-2009
    Location
    Banglore
    MS-Off Ver
    Excel 2007
    Posts
    129

    Re: Sum Product - Macro - Unique value

    We can use the below dynamic range for Pivot.

    =OFFSET(Sheet1!$A$1,0,0,COUNTA(Sheet1!$A:$A),1)

    Thanks.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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