+ Reply to Thread
Results 1 to 5 of 5

Formula that can count a distinct value of one column and get filtered by another

Hybrid View

  1. #1
    Registered User
    Join Date
    12-17-2020
    Location
    Los Angeles, CA
    MS-Off Ver
    Microsoft 2016
    Posts
    23

    Formula that can count a distinct value of one column and get filtered by another

    Hello friends,

    I need to figure out a formula that can count a distinct value of one column and get filtered by another.

    My situation:

    This tab is from Report! workpage. I need in column F to have a formula that will calculate how many of quantity (orders) in column All_orders!R:R have a unique merchant_id (All orders!B:B)

    Report

    2.JPG

    All_orders

    3.JPG
    4.JPG

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,274

    Re: Formula that can count a distinct value of one column and get filtered by another

    There are instructions at the top of the page explaining how to attach your sample workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    12-17-2020
    Location
    Los Angeles, CA
    MS-Off Ver
    Microsoft 2016
    Posts
    23

    Re: Formula that can count a distinct value of one column and get filtered by another

    In Report!F3 I need how many quantity orders of a specifc ASIN (All_orders!R:R) have a unique_merchant_id (All_orders!B:B).

    If someone may know. I really appreciate your help.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    12-17-2020
    Location
    Los Angeles, CA
    MS-Off Ver
    Microsoft 2016
    Posts
    23

    Re: Formula that can count a distinct value of one column and get filtered by another

    Does anyone know how it can be done?

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,407

    Re: Formula that can count a distinct value of one column and get filtered by another

    Most of your ASIN numbers don't appear on All Orders. I checked about 3 that DO appear on All_orders and NONE of them had duplicate Merchant ID's. So your sample wasn't great!!

    however this works:

    =SUM(INDEX((All_orders!$N$2:$N$50=B3)*(All_orders!$N$2:$N$50<>"")/COUNTIFS(All_orders!$B$2:$B$50,All_orders!$B$2:$B$50&"",All_orders!$N$2:$N$50,All_orders!$N$2:$N$50&""),0))
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help 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. Replies: 2
    Last Post: 11-23-2020, 12:03 PM
  2. Replies: 3
    Last Post: 10-05-2020, 06:29 AM
  3. Count Distinct Values With A Criteria In A Filtered List
    By JonnyBoy333 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-31-2019, 02:52 AM
  4. [SOLVED] count distinct value in range with filtered data
    By 9599lorenzo in forum Excel Programming / VBA / Macros
    Replies: 18
    Last Post: 03-07-2018, 11:20 AM
  5. [SOLVED] How to count distinct values in a column
    By marchandoj in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 01-21-2014, 12:23 PM
  6. Replies: 1
    Last Post: 03-21-2012, 07:06 PM
  7. Trying to count text for filtered column based on formula
    By dtg_denver in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-16-2005, 02:05 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