Forum Discussion

Tsmarsco's avatar
Tsmarsco
Copper Contributor
Aug 23, 2024
Solved

How to Post a Cumulative Rank for a Stock to Each Quarters Data

Hi, I have 2000 stocks with quarter profits data by row for 26 years. I have summed up each firm total profits for all years on a Pivot table and got a Rank for them, e.g. Walmart is No. 1, Exxon no....
  • mathetes's avatar
    mathetes
    Aug 27, 2024

    Tsmarsco 

     

    As SergeiBaklan has said, the third parameter in your use of VLOOKUP is the error. It should be consistently the number 2, i.e., the second column in the table in which you're seeking the corresponding rank of the company.

     

    =VLOOKUP(C2,$C$2:$D$4,2,0)