Forum Discussion

calof1's avatar
calof1
Iron Contributor
Dec 12, 2019
Solved

Help finding the biggest (absolute terms) movement in order

Hi,

 

I have a large set of data i update each day. I am hoping to fix a formula so i can find the large movement (either positive or negative) each day. I am looking to find the top 10 movers each day. I am looking for the value and code to populate automatically each day

 

I have a formula i am trying in the spreadsheet attached (highlighted yellow).

 

Can someone please help with this formula.

 

Many thanks,

 

I a

  • calof1's avatar
    calof1
    Dec 15, 2019

    HiSergeiBaklan 

     

    Thank you again for your assistance.

     

    Extremely helpful as always, much appreciated.

     

4 Replies

  • SergeiBaklan's avatar
    SergeiBaklan
    Diamond Contributor

    calof1 

    If take sign into account that could be

    =AGGREGATE(14,6,ABS($G$48:$G$2049),ROW()-ROW($B$9))*SIGN(INDEX($G$48:$G$2049,MATCH(AGGREGATE(14,6,ABS($G$48:$G$2049),ROW()-ROW($B$9)),ABS($G$48:$G$2049),0)))

    and for the name

    =INDEX($A$48:$A$2049,MATCH($B10,$G$48:$G$2049,0))
    • calof1's avatar
      calof1
      Iron Contributor

      HiSergeiBaklan 

       

      Thanks for your help,it has worked perfectly.

       

      I did notice from the results that in this example i have many investments which are recorded a few times. Is there a way to tweek the formula to show the sum of these in the Contribution for each investment, and show in the order of movement as before?

       

      Thank you again for your assistance.

      • SergeiBaklan's avatar
        SergeiBaklan
        Diamond Contributor

        calof1 

        That's not my business, but are you sure that shall be the sum? I checked repeating names, for all of them Contribtuion to Portfolio Movement (%) is exactly the same. It looks like you already have cumulative figure here which are repeated for each name entry.

         

        If that assumption is wrong I'd suggest to add helper column with SUMIF() of contribution % for each name and use this column in initial formula instead of Contribtuion to Portfolio Movement (%).

          

    • calof1's avatar
      calof1
      Iron Contributor

      HiSergeiBaklan 

       

      Thank you again for your assistance.

       

      Extremely helpful as always, much appreciated.

       

Resources