Hey,
Thank you in advance for the help. It means a lot, and will save me a lot of time and headaches.
I am trying to write a code which will take a column of text labelled "Market Cap", cut the text down to 5 characters, convert this to numerals, and then sum it up at the bottom of the column. Then in another column, labelled "Weights" It will take each of the values in the "Market Cap" column and divide it by the total and convert it to a percentage. I need help writing code which will find "Market Cap" and do this.
Ex: Market Cap Market Cap Weights
12.35B Change To 12.35 17.82%
43.54B -------> 43.53 62.81%
13.43B 13.43 19.20%
Sum 69.31
Bookmarks