+ Reply to Thread
Results 1 to 32 of 32

Reverse proportional distribution

  1. #1
    Registered User
    Join Date
    07-18-2023
    Location
    United States
    MS-Off Ver
    2021
    Posts
    12

    Reverse proportional distribution

    we have a list of items and their assigned ranking and their number of reviews. we want to take the total ranking and distribute it among the items based on their number of reviews. What's important to note, is that the higher the number of reviews, the lower the ranking. instead of the other way around.

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

    Re: Reverse proportional distribution

    Welcome to the forum.

    There are instructions at the top of the page explaining how to attach your sample workbook (yellow banner: HOW TO ATTACH YOUR SAMPLE WORKBOOK). Screenshots are of little practical use as we cannot manipulate them.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, worked examples where required, relevant cells highlighted and a few explanatory notes.
    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
    Banned User!
    Join Date
    05-13-2023
    Location
    Venera
    MS-Off Ver
    2007
    Posts
    79

    Re: Reverse proportional distribution

    Please upload .xls example.

  4. #4
    Registered User
    Join Date
    07-18-2023
    Location
    United States
    MS-Off Ver
    2021
    Posts
    12

    Re: Reverse proportional distribution

    Items Reviews Ranking New Rank
    A 161 499
    B 6774 500
    C 5744 504
    D 9484 498
    E 30 500


    The item ranking is not accurate and is currently divided almost evenly among the items. but the total ranking is accurate for all items together. so we would like to redistribute the total ranking in accordance to the review count, and being that a lower ranking number is better than a higher ranking number, a high number of reviews will reflect a lower ranking.
    Last edited by Joeleet; 07-18-2023 at 07:13 AM.

  5. #5
    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,916

    Re: Reverse proportional distribution

    We asked you to upload a workbook. Please read post #2 and follow the instructions. Include expected results. Thanks.

  6. #6
    Registered User
    Join Date
    07-18-2023
    Location
    United States
    MS-Off Ver
    2021
    Posts
    12

    Re: Reverse proportional distribution

    Please see attached
    Attached Files Attached Files

  7. #7
    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,916

    Re: Reverse proportional distribution

    There are no expected results. You need to add these. We need to see what you need the formula to calculate.

    Also, how are you calculating the rank? What is the formula that you have used for that?
    Last edited by AliGW; 07-18-2023 at 07:21 AM.

  8. #8
    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,916

    Re: Reverse proportional distribution

    Here's a wild guess in the absence of any expected results. In D2 copied down:

    =(SUM($C$2:$C$6)/SUM($B$2:$B$6))*B2

    Is this anywhere close to what you are looking for?

  9. #9
    Registered User
    Join Date
    07-18-2023
    Location
    United States
    MS-Off Ver
    2021
    Posts
    12

    Re: Reverse proportional distribution

    I am not sure what the results are. but I know that Reviews/SUM(Reviews)*SUM(Rankking) gives me the opposite of what I want.

    And the current rank is static data meaning we get it that way

  10. #10
    Registered User
    Join Date
    07-18-2023
    Location
    United States
    MS-Off Ver
    2021
    Posts
    12

    Re: Reverse proportional distribution

    This would give the items with higher reviews a higher ranking

  11. #11
    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,916

    Re: Reverse proportional distribution

    Explain what the opposite of what my formula produces would be - what are you expecting? "I am not sure" really isn't going to help.

    In the absence of any clarity on your part, I am not sure how we can help you.

  12. #12
    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,916

    Re: Reverse proportional distribution

    This would give the items with higher reviews a higher ranking
    Sorry - I have no clue what you want. It's much too vague (for me).

  13. #13
    Registered User
    Join Date
    07-18-2023
    Location
    United States
    MS-Off Ver
    2021
    Posts
    12

    Re: Reverse proportional distribution

    Well, that's what I am looking for the formula to do. by opposite, I mean instead of giving the large fraction a larger number, to give the large fraction a smaller number.

    Say students get rewarded for attendance, there is a total reward of $1500 to be divided among 5 students. each student gets a point when missing attendance and receives less reward.
    Student 1 has 6 points
    Student 2 has 2 points
    Student 3 has 1 point
    Student 4 has 4 points
    Student 5 has 14 points

    what would be the formula to divide 1500 between the students according to their points? more points, less reward.

  14. #14
    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,916

    Re: Reverse proportional distribution

    Well, that's what I am looking for the formula to do.
    When you come here and ask for a formula, you are asking us to automate a claculation that YOU know how to make manually. It seems that it's the maths that you are struggling with rather than anything else.

    In answer to your question above, are more points good or bad? If the latter, what's the maximum number of negative points that a pupil could get?

  15. #15
    Registered User
    Join Date
    07-18-2023
    Location
    United States
    MS-Off Ver
    2021
    Posts
    12

    Re: Reverse proportional distribution

    Yes, more points are worse. and there is no limit to the points

  16. #16
    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,916

    Re: Reverse proportional distribution

    Then it can't be done as far as I can tell. Without a maximum number of points you can't work out a proportional ranking.

  17. #17
    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,916

    Re: Reverse proportional distribution

    Administrative Note:

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not told us about this. You are required to do so.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important: https://excelguru.ca/a-message-to-forum-cross-posters/

    (Note: this requirement is not optional. As you are new here, I shall do it for you this ONCE: https://www.mrexcel.com/board/thread...ution.1241410/)

  18. #18
    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,063

    Re: Reverse proportional distribution

    LoL... a formula to calculate something you don't know how to calculate manually...

    A guess...

    =($C$7*$B$7/B2)/SUM($B$7/B$2:B$6)

    see file.
    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.

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

  19. #19
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Reverse proportional distribution

    the higher the number of reviews, the lower the ranking
    Your question is too vague, because there are infinitely many possible distributions that meet your question.

    One of the possible distribution that meet your question is:

    Please try in D2 and copy down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files

  20. #20
    Registered User
    Join Date
    07-18-2023
    Location
    United States
    MS-Off Ver
    2021
    Posts
    12

    Re: Reverse proportional distribution

    Thank you Glenn! Those are the desired results. Any way to achieve that without adding a row for the totals? so it can be used in a sheet with many different items

    And thank you all for helping out. it's been a tough one to crack because I didn't have the desired results in front of me.

  21. #21
    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,916

    Re: Reverse proportional distribution

    You can change Glenn's formula to this:

    =(SUM($B$2:$B$6)*SUM($C$2:$C$6)/B2)/SUM(SUM($B$2:$B$6)/B$2:B$6)

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

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  22. #22
    Registered User
    Join Date
    07-18-2023
    Location
    United States
    MS-Off Ver
    2021
    Posts
    12

    Re: Reverse proportional distribution

    Thank you! The only issue still left is the B$2:B$6 at the end. I will be using SUMIFS to look up and sum up these totals. and it seems that I won't be able to do that with SUM($B$2:$B$6)/"""B$2:B$6"""). I'm fairly new to Excel and the method of how dividing by B$2:B$6 is used here is unclear to me. is it a spill range?
    Last edited by AliGW; 07-18-2023 at 09:23 AM. Reason: Please do NOT quote unnecessarily!

  23. #23
    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,916

    Re: Reverse proportional distribution

    Provide sample data that requires a SUMIFS function and we can check for you.

  24. #24
    Forum Guru HansDouwe's Avatar
    Join Date
    06-21-2022
    Location
    Nederland
    MS-Off Ver
    365 V2403 (Build 17330.20000)
    Posts
    6,435

    Re: Reverse proportional distribution

    Thanks for the rep.

  25. #25
    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,063

    Re: Reverse proportional distribution

    You PM'd me... here's the reply. As I thought, there WAS a lot of redundancy in that. Occam's Razor proves its value once again.

    Revised formula:

    =SUM($C$2:$C$6)/B2/SUM(1/$B$2:$B$6)

    See file for explanation.
    Attached Files Attached Files

  26. #26
    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,063

    Re: Reverse proportional distribution

    You PM'd me, stating that you'd prefer a distribution like:

    589
    34
    36
    27
    1815

    in your words "because it moves the weight slightly away from the higher reviews".

    Now you begin to stray from mathematics into... "alternative truth", cookery, art... You need to provide RULES, as Excel cannot understand the niceties of "slightly away".

  27. #27
    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,063

    Re: Reverse proportional distribution

    Of course you could simple whack 100 points off the total of 2501... distribute the 100 evenly amongst all 5 (20 each) and the balance (2401) on the basis of a strict mathematical relationship. But why 100 and not 50, or 200... or any other number that occurs to you?

    Can you JUSTIFY the logical basis of the choice of any such adjustment (to yourself/your boss... not to me)??
    Last edited by Glenn Kennedy; 07-18-2023 at 12:05 PM.

  28. #28
    Registered User
    Join Date
    07-18-2023
    Location
    United States
    MS-Off Ver
    2021
    Posts
    12

    Re: Reverse proportional distribution

    Okay. my apologies for not being clearer, let me explain. These are items sold on E-commerce platforms. Ranking (a value given by the platform) usually indicates the item's popularity (rank 1 being the most popular rank). In this case, it's 5 of the same item but different colors. In a case of such, the popularity of each individual variant becomes unknown because the ranking is distributed among the variants. so instead, we use the number of reviews on each variant to determine its fraction of the ranking. this is the reason we don't know the exact desired result because it's a theoretical rank.

    The logic for wanting to move the weight slightly away from the higher reviews, meaning, to give those variants with a high review count slightly higher ranking (such as variant D from 7 to 27) is because we found that its closer to reality

  29. #29
    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,063

    Re: Reverse proportional distribution

    OK... Can I ruminate on this one?? (it's beer o'clock in Ireland)

    You can take a look at this. Vary the value in B8 from 0 (original solution... to 1 - equal ranking). It works as suggested in Post 27. The % of 2501 set in B8 is divided by 5 and allocated to each of A-E. The remainder is allocated in proportion to the reciprocal of the values.

    Have a play with it and see if you can decide on a value that gives you an end result that comes close to what you need.
    Attached Files Attached Files

  30. #30
    Registered User
    Join Date
    07-18-2023
    Location
    United States
    MS-Off Ver
    2021
    Posts
    12

    Re: Reverse proportional distribution

    This is great! thank you. at the end of the formula, where it's summing the reciprocal SUM(1/$B$2:$B$6), is there a way to achieve this without knowing the row only the id's in another column, and use something like SUMIFS instead?

  31. #31
    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,063

    Re: Reverse proportional distribution

    1. Delete all expected results.

    2. Use:
    =LET(Z,B2:C20,Y,FILTER(Z,INDEX(Z,,1)<>""),B,INDEX(Y,,1),C,INDEX(Y,,2),G1*SUM(C)/ROWS(B)+((1-G1)*SUM(C)/B/SUM(1/B)))

    no copy paste. The formula spills results down.

    3. Adjust (only) the bit in red to whatever suits - that is sensible (not 1,000,000, but which is future-proof).
    Attached Files Attached Files

  32. #32
    Registered User
    Join Date
    07-18-2023
    Location
    United States
    MS-Off Ver
    2021
    Posts
    12

    Re: Reverse proportional distribution

    Thank you very much! the introduction to the possibilities of using LET is a treasure.
    THis is what I ended up using.
    =IF(OR([@[Parent ASIN]]="",COUNTIFS(V:V,[@[Parent ASIN]])=1),[@RNKavg],ROUND(LET(AR,V:X,SKU,FILTER(AR,INDEX(AR,,1)=[@[Parent ASIN]]),RVW,INDEX(SKU,,2),RNK,INDEX(SKU,,3),0.1*SUM(RNK)/ROWS(RVW)+((1-0.1)*SUM(RNK)/[@Reviews]/SUM(1/RVW))),0))

+ 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] Proportional Distribution of leave taking
    By smbyrnecarey in forum Excel General
    Replies: 27
    Last Post: 11-13-2023, 07:55 PM
  2. Replies: 6
    Last Post: 07-13-2023, 06:45 AM
  3. [SOLVED] Proportional distribution upto the CAP
    By andrei461 in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 10-11-2020, 07:18 AM
  4. [SOLVED] VBA problem - reverse an alphanumeric string, but reverse only letters and leave digits wh
    By mati_WAR in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-18-2019, 10:39 PM
  5. How to plot frequency distribution graph with 2 distribution plots
    By escpolina in forum Excel Charting & Pivots
    Replies: 18
    Last Post: 08-16-2017, 10:22 AM
  6. Plotting F Distribution Probability Distribution Function
    By diggetybo in forum Excel Charting & Pivots
    Replies: 2
    Last Post: 02-23-2015, 01:36 PM
  7. Calculation the Proportional Distribution
    By Aston01 in forum Excel General
    Replies: 4
    Last Post: 06-05-2012, 07:48 PM

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