+ Reply to Thread
Results 1 to 13 of 13

Finding number of unique value based on another value

  1. #1
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    130

    Question Finding number of unique value based on another value

    Seeking solution of the following problem

    1. There are fixed number of member working under Area Manager
    2. In "Data" sheet I have to put monthly selling data in same format. Every month end I've to calculate incentive amount for Area Manager
    3. Not all members under Area Manager can sell. Few members can sell who comes in "Data" sheet
    4. Incentive amount varies with the number of member which is given under "Incentive Rules". Monthly limit may be changed in future, so amount per member may change.

    To get max incentive All Members under Area Manager has to sell. Incentive amount will be number of members who sold multiply incentive per member. My challenge is how can I find out unique number of member based on Area Manager.

    It would be nice if I get the formula in "F" Column where I put the figure manually (first I filter Area Manager, then I count member)

    Thanks
    Attached Files Attached Files

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

    Re: Finding number of unique value based on another value

    You have put some numbers in column F in sheet AM. However, I can not see HOW they were derived from the data in "Data". Please explain. If they are imaginary numbers, please replace them with REAL NUMBERS!!!!
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  3. #3
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    130

    Re: Finding number of unique value based on another value

    Thank you for your quick response. These are the REAL NUMBERS I provided as an example. If you go to Data Sheet you will find that 2 members (Mohammad Nasir Uddin-20110556 & Anika Anjum-20160826 given in H column) of AM Md. Nadim Sarker-20090401 managed to sell. I derived the numbers manually i.e by auto filtering of AM.

    I need this real numbers through formula which will derive from Data Sheet. Hope you understand.

    Thanks

  4. #4
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Finding number of unique value based on another value

    This would work if the integrity of your data were 100%, but it's not (there are anomalies):

    =COUNTIFS(DATA!J:J,AM!C4,DATA!G:G,"<>No Seller")
    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.

  5. #5
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    130

    Re: Finding number of unique value based on another value

    Thanks for your try. Actually my data is anomaly free. Team Member is the seller itself. "G" Column is not necessary here. If any one sells then his name comes to Data Sheet, otherwise not. So Team member in H column is the seller.

    Thanks

  6. #6
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,830

    Re: Finding number of unique value based on another value

    Sorry - this makes no sense to me at all.

  7. #7
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    130

    Re: Finding number of unique value based on another value

    It's okay. Actually I need how many number of team members are available in Data Sheet under each Area Manager. That number I need in AM sheet.

    Attachment 706339

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

    Re: Finding number of unique value based on another value

    This is it (I think):
    =SUM(INDEX((DATA!$J$2:$J$200=C4)*(DATA!$J$2:$J$200<>"")/COUNTIFS(DATA!$H$2:$H$200,DATA!$H$2:$H$200&"",DATA!$J$2:$J$200,DATA!$J$2:$J$200&""),0))

    This gives a count of the unique members per area manager.
    Attached Files Attached Files

  9. #9
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,419

    Re: Finding number of unique value based on another value

    F4 cell , Array formula

    HTML Code: 

  10. #10
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    130

    Thumbs up Re: Finding number of unique value based on another value

    Great!! This is exactly what I wanted

  11. #11
    Forum Contributor
    Join Date
    07-22-2008
    Location
    Dhaka, Bangladesh
    MS-Off Ver
    2007
    Posts
    130

    Re: Finding number of unique value based on another value

    Thank you very much. This is working well.

  12. #12
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,419

    Re: Finding number of unique value based on another value

    You're Welcome. Thank You for the feedback and for marking the thread as 'Solved'.

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

    Re: Finding number of unique value based on another value

    You're welcome.



    If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.

    It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.

+ 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] Max(if); Finding max number based on criteria
    By polishfc in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-20-2020, 10:02 PM
  2. [SOLVED] Finding the number of unique names working on the same project
    By Whoop92 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-05-2018, 11:12 PM
  3. [SOLVED] Number based on unique name
    By djfscouse in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-12-2015, 11:03 PM
  4. Replies: 5
    Last Post: 12-29-2014, 01:26 PM
  5. Finding last entry of data based on inquiry number and quotation number
    By arbelkasim in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-06-2014, 09:27 AM
  6. Replies: 11
    Last Post: 11-23-2011, 04:39 AM
  7. Finding unique number of customers
    By fibaroobi in forum Excel General
    Replies: 0
    Last Post: 08-25-2010, 11:39 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