• cannot get proper sorting

    Author
    Topic
    #491094

    Hello everyone;

    I need help.

    Attachment is a spreadsheet where table A list symbols of stock and their corresponding prices.

    In table B, I tried to assign to them a ranking according to increasing price.

    My problem is that the formula I created doesn’t work when two stocks have the SAME price.

    Please notice that BNS.PR.L and TD.PR.O both quoted 25.25 , but table B returned repeatedly BNS.PR.L ; disregarding TD.PR.O (highlighted cells illustrate this)

    I tried to used Vlookup (that offers an EXACT match), but cannot get a satisfactory result either (probably I am not using it correctly).

    Any helps, suggestion, assistance will be very much appreciated.

    Thanks in advance

    Daniel Rozenberg

    Viewing 1 reply thread
    Author
    Replies
    • #1413343

      To adjust for dups, you need a countif in the formula. See the attached.

      • #1413345

        hi kweaver;

        thank you very much for you help.

        i am not familiar with the INDEX function, so i will “chew & digest” on your solution, and will get back when more acquainted.

        THANKS again

        daniel rozenberg.

    • #1413347

      Thank of indexing as sub-scripting an array for a (row, col)

      • #1413386

        hi kweaver;

        i printed the help for rank, and the two formats of index commands.
        read them (several times, until properly digested, i think), and now i feel much more confident to what i want to do.
        in fact what i sent in original post is an extract of larger sheet; my intend is more ambitious.
        THANK YOU VERY MUCH again, for pointing to me the use of those commands.

        daniel rozenberg.

    Viewing 1 reply thread
    Reply To: cannot get proper sorting

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: