+ Reply to Thread
Results 1 to 2 of 2

Count Unique Values Conditionally -Code

  1. #1
    Registered User
    Join Date
    04-18-2013
    Location
    Chicago
    MS-Off Ver
    Excel 2010
    Posts
    49

    Count Unique Values Conditionally -Code

    Hi,

    I have a table that looks like that :

    Untitled.png

    I 'd need a macro that would summarize the sales person's name, number of orders and revenue:

    Untitled2.png

    my problem is that I don't know how to handle orders because each item on the order is listed on a separate line and I need to count unique orders for each sales person separately


    I know that there is a way to do this with an array formula, but i am really simplifying my data- in reality it's 30 thousand records which would take a long time to recalculate

    Thanks!

  2. #2
    Valued Forum Contributor
    Join Date
    01-08-2011
    Location
    Portsmouth, England
    MS-Off Ver
    Excel 2007 to 2016
    Posts
    456

    Re: Count Unique Values Conditionally -Code

    A pivot table would do the job for you.

    If you could upload a small sample workbook I can show you how to do this if you're not sure. You can attach a file by clicking on the Go Advanced button and scrolling down to Manage Attachments. You can then browse for a select your file, then click on the Upload button.
    Excel is a constant learning process and it's great to help each other. If any of us have helped you today, a click on the "reputation" star on the left is appreciated.

+ 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. Replies: 2
    Last Post: 08-19-2015, 10:22 AM
  2. [SOLVED] Count then Delete Duplicate Values and put count next to now unique value
    By flipjarg in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-12-2014, 04:22 PM
  3. Replies: 6
    Last Post: 10-27-2014, 07:19 AM
  4. [SOLVED] Unique Total Value Count per Unique Lookup Values
    By KnightVision in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-02-2014, 05:03 AM
  5. [SOLVED] count unique values based on unique values
    By neetu.aggarwal in forum Excel General
    Replies: 13
    Last Post: 10-23-2012, 04:00 AM
  6. [SOLVED] How To Count Unique Values in COL A Subject for each unique value in COL B ??
    By amirtehrani in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-06-2012, 03:00 AM
  7. Replies: 17
    Last Post: 08-24-2009, 08:58 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