+ Reply to Thread
Results 1 to 3 of 3

Count Unique values based on 2 criteria and paste answer

  1. #1
    Registered User
    Join Date
    12-01-2017
    Location
    New Jersey
    MS-Off Ver
    2016
    Posts
    63

    Count Unique values based on 2 criteria and paste answer

    I would like to count unique values in Column B where the value in Column A is the same. Sample data is below with manually entered answer as an example. In the example the first 3 lines have the same value in Column A but the column B number are the same so the unique count is 1. If you look to lines 4 & 5 Column A is the same but Column B has 2 different Del# matching to the same value in Column A so the unique count of B for row 4&5 is 2 Hopefully this helps. I can't seem to come up wit a formula so my only thought is to achieve this from a macro. The Shipment number will always ne in column A and the Del# in Column B. I will need the answer to be placed in column Q same row. The example shows exactly how I need the data to calculate, but I removed rows in between Thanks

    Ship Number Del # Correct Answer
    2008139101 128700832 1
    2008139101 128700832 1
    2008139101 128700832 1
    2008135642 128700635 2
    2008135642 128700642 2
    2008171448 128716173 1
    2008171448 128716173 1
    2008171448 128716173 1
    2008142401 128678504 1
    2008083763 128531095 1
    2008066536 128600471 5
    2008066536 128600472 5
    2008066536 128600473 5
    2008066536 128600474 5
    2008066536 128600475 5
    2008153500 128695885 5
    2008153500 128695853 5
    2008153500 128697045 5
    2008153500 128695813 5
    2008153500 128697060 5

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Count Unique values based on 2 criteria and paste answer

    I think it can be done by the formula though...
    VBA
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-01-2017
    Location
    New Jersey
    MS-Off Ver
    2016
    Posts
    63

    Re: Count Unique values based on 2 criteria and paste answer

    Solved The VBA worked out perfectly
    Thank You

+ 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] Count Unique Values based on 2 criteria
    By spyac in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 02-15-2018, 01:04 AM
  2. count unique values based on between dates with a criteria
    By FUN2BALA in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 11-22-2017, 04:55 AM
  3. Using sum if frequency to count unique values based on certain criteria
    By Matthew_Smith86 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-08-2015, 05:27 AM
  4. [SOLVED] Count unique values based on criteria without using array
    By jonpaulson in forum Excel General
    Replies: 14
    Last Post: 10-10-2014, 06:30 PM
  5. [SOLVED] Count unique values in columns based on 2 criteria
    By t83357 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-12-2013, 04:33 PM
  6. Count unique values based on several criteria
    By evilgrin in forum Excel General
    Replies: 2
    Last Post: 10-10-2010, 03:50 PM
  7. how to count unique values in excel based on criteria
    By Jorge in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-13-2005, 10:06 AM

Tags for this Thread

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