+ Reply to Thread
Results 1 to 21 of 21

rank desired number of large value without duplicate in other table

Hybrid View

  1. #1
    Forum Contributor kar2rost's Avatar
    Join Date
    07-02-2022
    Location
    Here
    MS-Off Ver
    Pro Plus 2021 (Windows 11 21H2 64-bit)
    Posts
    139

    rank desired number of large value without duplicate in other table

    Hello, I have tried different ways but I could not solve this problem
    I have searched a lot on the internet, but it still didn't work
    I ask my friends to solve this for me
    I want to find the top example 30 items without duplicate data from column H and insert them into the table shown
    The desired number is entered in the yellow cell
    The only important point here is that at the end of each column there is an H number that should not be included in the calculations
    h38 h71 h93 and etc.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: rank desired number of large value without duplicate in other table

    How you rank the highest/lowest value?

  3. #3
    Forum Contributor kar2rost's Avatar
    Join Date
    07-02-2022
    Location
    Here
    MS-Off Ver
    Pro Plus 2021 (Windows 11 21H2 64-bit)
    Posts
    139

    Re: rank desired number of large value without duplicate in other table

    hi @belinda200

    highest
    i think must use large fx

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 insider Version 2504 Win 11
    Posts
    24,705

    Re: rank desired number of large value without duplicate in other table

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

    crossposted: https://www.mrexcel.com/board/thread...table.1210152/
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,610

    Re: rank desired number of large value without duplicate in other table


  6. #6
    Forum Contributor kar2rost's Avatar
    Join Date
    07-02-2022
    Location
    Here
    MS-Off Ver
    Pro Plus 2021 (Windows 11 21H2 64-bit)
    Posts
    139

    Re: rank desired number of large value without duplicate in other table

    Everyone says Cross posted at.....
    But no one helps here and there
    If any of my friends know how to solve this problem
    Thankful

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2503 (Windows 11 Home 24H2 64-bit)
    Posts
    90,502

    Re: rank desired number of large value without duplicate in other table

    People WILL help if they can - the likelihood is that you have not explained the problem with enough clarity.

    Nonetheless, you DO need to abide by our rules. At the moment, you seem unwilling to do so. This cannot be tolerated - sorry.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  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 2406
    Posts
    44,662

    Re: rank desired number of large value without duplicate in other table

    Try this:

    =IFERROR(INDEX(LARGE(IF($B$5:$B$93<>"",$H$5:$H$93),ROW($1:$100)),MATCH(0,INDEX(COUNTIF($T5:$T$5,LARGE(IF($B$5:$B$93<>"",$H$5:$H$93),ROW($1:$100))),0),0)),"")

    You seem to be using an older version of Excel than me. So, please refer to the attached file. If the formulae are enclosed within a pair of { }, these are array formulae.

    These are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see the curly brackets { } appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    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

  9. #9
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: rank desired number of large value without duplicate in other table

    In T5 then copy down
    Formula: copy to clipboard
    =IFERROR(AGGREGATE(14,6,$H$5:$H$93/(ISERROR(MATCH($H$5:$H$93,$M$5:$M5,0))*($D$5:$D$93<>"sum")),1),"")
    Attached Files Attached Files
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

  10. #10
    Forum Contributor kar2rost's Avatar
    Join Date
    07-02-2022
    Location
    Here
    MS-Off Ver
    Pro Plus 2021 (Windows 11 21H2 64-bit)
    Posts
    139

    Re: rank desired number of large value without duplicate in other table

    @Glenn Kennedy
    @kvsrinivasamurthy


    Hello to two smart and genius men
    It was a great pair of solutions
    And thank you for solving this problem for me
    one thing to ask if possible. is it possible
    to do that number of ranks by entering any number in the yellow cell
    Number 1 is only the first large number
    If the number 10 is entered, ten more will be ranked
    Enter the number 40 and the top 40 will be ranked
    thank you again

    RANGE3.png
    Last edited by kar2rost; 07-09-2022 at 06:57 PM.

  11. #11
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: rank desired number of large value without duplicate in other table

    In T5 then copy down to T93 (as required)
    Formula: copy to clipboard
    =IF(ROWS($T$5:$T5)>$L$5,"",IFERROR(AGGREGATE(14,6,$H$5:$H$93/(ISERROR(MATCH($H$5:$H$93,$M$5:$M5,0))*($D$5:$D$93<>"sum")),1),""))
    Attached Files Attached Files

  12. #12
    Forum Contributor kar2rost's Avatar
    Join Date
    07-02-2022
    Location
    Here
    MS-Off Ver
    Pro Plus 2021 (Windows 11 21H2 64-bit)
    Posts
    139

    Re: rank desired number of large value without duplicate in other table

    @kvsrinivasamurthy
    this is great
    I really thank you
    If I want to fill in the table, I should fill in the obtained value, age, gender, family and...
    Use V lookup function or index-match ?
    which one is faster thanks

  13. #13
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: rank desired number of large value without duplicate in other table

    Pl see file.
    I have removed merged cells by deleting columns. Because it is not possible to use formulas in merged cells.
    Avoid using merged cells.
    Columns N to Q are formatted for Custom --> # to avoid display of 0.
    In N6 and copied to N,O,P and Q columns.

    =IF($R6="","",INDEX(C$5:C$93,MATCH($R6,$G$5:$G$93,0)))
    Attached Files Attached Files

  14. #14
    Forum Contributor kar2rost's Avatar
    Join Date
    07-02-2022
    Location
    Here
    MS-Off Ver
    Pro Plus 2021 (Windows 11 21H2 64-bit)
    Posts
    139

    Re: rank desired number of large value without duplicate in other table

    @kvsrinivasamurthy

    Hello again
    And thank you very much for your answer
    I added the sum field and the index formula works fine
    Now, if I want to rank in such a way that only female gender that have code 1300 is displayed, what should I do?

    That is, the rank function ranked by two criteria who have the correct gender of the letter "f" and have code "1300" (column F) and (column B)
    Naturally, the index finds the same

    It means The result is this
    range7.png
    not this
    raneg6.png
    Attached Files Attached Files
    Last edited by kar2rost; 07-10-2022 at 04:21 AM.

  15. #15
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: rank desired number of large value without duplicate in other table

    Formulas are changed. Pl see file.
    It is always better to give all requirements in the beginning. Every time we have to change the formula. When upload file Pl show some examples also.
    Pl come back for any problem.
    Attached Files Attached Files

  16. #16
    Forum Contributor kar2rost's Avatar
    Join Date
    07-02-2022
    Location
    Here
    MS-Off Ver
    Pro Plus 2021 (Windows 11 21H2 64-bit)
    Posts
    139

    Re: rank desired number of large value without duplicate in other table

    @kvsrinivasamurthy
    I apologize for not asking my question completely

    Excellent and good
    really thank you

    There is only one small problem
    If the gender or code cell is empty in the table, it ranks the values that have an empty gender or code

    I want to show the result if it is empty according to other conditions

    For example, if the code is 1200 and gender is empty, it will rank only the items that have the code 1200
    And if the gender option is filled later, the gender will be included among the items with code 1200
    Last edited by kar2rost; 07-10-2022 at 09:15 AM.

  17. #17
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: rank desired number of large value without duplicate in other table

    In R5
    =IF(AND($K$6="",$K$7=""),"",IF(ROWS($R$5:$R5)>$K$5,"",IFERROR(AGGREGATE(14,6,$G$5:$G$93/(ISERROR(MATCH($G$5:$G$93,$R$5:$R5,0))*($D$5:$D$93<>"sum")*(UPPER($F$5:$F$93)=UPPER($K$6))*($B$5:$B$93=$K$7)),1),"")))

  18. #18
    Forum Contributor kar2rost's Avatar
    Join Date
    07-02-2022
    Location
    Here
    MS-Off Ver
    Pro Plus 2021 (Windows 11 21H2 64-bit)
    Posts
    139

    Re: rank desired number of large value without duplicate and Two depend criteria

    @kvsrinivasamurthy

    I think I did not convey my meaning correctly
    I mean, I explained in the photo
    In any case, thank you for your answer
    Thank you for your time

    if gender and code is empty All data is checked and ranked based on numbers only

    range10.png


    if remove gender and fill code ranked by code and number
    if remove code and fill gender ranked by gender and number
    if fill both ranked by code & gender and number
    if both is empty ranked by just number Now whatever is gender & code
    I want the formula to work either without condition or with one condition or with two conditions
    @Glenn Kennedy
    hi can you help me?
    Attached Files Attached Files
    Last edited by kar2rost; 07-11-2022 at 08:23 AM.

  19. #19
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: rank desired number of large value without duplicate in other table

    In R5
    =IF(ROWS($R$5:$R6)>$K$5,"",IFERROR(AGGREGATE(14,6,$G$5:$G$93/(ISERROR(MATCH($G$5:$G$93,$R$5:$R6,0))*($D$5:$D$93<>"sum")*((((UPPER($F$5:$F$93)=UPPER($K$6))+(($K$6="")*(ROW($F$5:$F$93)>0)))*(($B$5:$B$93=$K$7)+(($K$7="")*(ROW($F$5:$F$93)>0))))>0)),1),""))
    In N5 copied up to Q column.
    =IF($R6="","",LOOKUP(1,1/(($G$5:$G$93=$R6)*(((UPPER($F$5:$F$93)=UPPER($K$6))+($K$6="")*(ROW($F$5:$F$93)>0))*(($B$5:$B$93=$K$7)+($K$7="")*(ROW($F$5:$F$93)>0)))),C$5:C$93))
    Attached Files Attached Files

  20. #20
    Forum Contributor kar2rost's Avatar
    Join Date
    07-02-2022
    Location
    Here
    MS-Off Ver
    Pro Plus 2021 (Windows 11 21H2 64-bit)
    Posts
    139

    Re: rank desired number of large value without duplicate in other table

    @kvsrinivasamurthy
    Exactly right
    You are such a genius
    India's flag is really high in the matter of programming and formula writing
    really thank you
    india.jpg

  21. #21
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: rank desired number of large value without duplicate in other table

    Thank you very much. Have good day.

+ 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. How to group large duplicate values from pivot table
    By Jason Phang in forum Excel General
    Replies: 1
    Last Post: 10-07-2019, 10:29 AM
  2. Replies: 4
    Last Post: 08-17-2017, 02:22 AM
  3. Replies: 2
    Last Post: 04-27-2015, 08:50 AM
  4. [SOLVED] Rank - Maintain Series if duplicate rank found
    By ascool_asice in forum Excel General
    Replies: 2
    Last Post: 10-11-2014, 12:35 PM
  5. Large Table with Duplicate Values - Minimum Value Needed
    By kma27 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-28-2012, 10:10 PM
  6. RANK, duplicate ranking but no gaps in rank
    By arron laing in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-06-2012, 07:15 AM
  7. Large formula not returning desired results
    By Climaxgp in forum Excel General
    Replies: 2
    Last Post: 04-21-2010, 06: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