I'm trying to build a table that lists a broker's volume from largest to smallest (top 10 firms only). If there are only 9 values in the data set, a zero will appear in the row.
To grab the volume, from largest to smallest, I'm using =LARGE($B$2:$B$63,1), =LARGE($B$2:$B$63,2), =LARGE($B$2:$B$63,3), ... =LARGE($B$2:$B$63,10). Then I'm doing a Vlookup to grab the corresponding firm. The issue arises when there is a duplicate volume number, it will grab the first firm in the data set multiple times instead of listing the second or third firm. How do I get excel to look for the next corresponding firm and IF there is a 0 in the volume row, to return a blank.
<tbody>
</tbody>
The table should look like:
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
<tbody>
</tbody>
<tbody>
</tbody>
To grab the volume, from largest to smallest, I'm using =LARGE($B$2:$B$63,1), =LARGE($B$2:$B$63,2), =LARGE($B$2:$B$63,3), ... =LARGE($B$2:$B$63,10). Then I'm doing a Vlookup to grab the corresponding firm. The issue arises when there is a duplicate volume number, it will grab the first firm in the data set multiple times instead of listing the second or third firm. How do I get excel to look for the next corresponding firm and IF there is a 0 in the volume row, to return a blank.
Firm | Volume |
National Bank | 12,000 |
CIBC World Markets | 10,000 |
TD Securities | 5,000 |
TD Securities | 5,000 |
TD Securities | 5,000 |
Interactive Brokers | 2,000 |
PI Financial | 1,000 |
PI Financial | 1,000 |
RBC Financial | 500 |
0 |
<tbody>
</tbody>
The table should look like:
****** id="cke_pastebin" style="position: absolute; top: 0px; width: 1px; height: 1px; overflow: hidden; left: -1000px;">
Firm | Volume |
National Bank | 12,000 |
CIBC World Markets | 10,000 |
TD Securities | 5,000 |
TD Securities | 5,000 |
TD Securities | 5,000 |
Interactive Brokers | 2,000 |
PI Financial | 1,000 |
PI Financial | 1,000 |
RBC Financial | 500 |
<tbody>
</tbody>
Firm | Volume |
National Bank | 12,000 |
CIBC World Markets | 10,000 |
TD Securities | 5,000 |
Morgan Stanley | 5,000 |
Scotia Capital | 5,000 |
Interactive Brokers | 2,000 |
PI Financial | 1,000 |
Haywood Securities | 1,000 |
RBC Financial | 500 |
0 |
<tbody>
</tbody>