Formula for calculating percentages in a table column?

Mr. Snrub

Board Regular
Joined
May 22, 2005
Messages
147
Office Version
  1. 365
Platform
  1. Windows
I have an Excel table that displays my stock portfolio through the years, like so:

DateStockShare PricwNumber of SharesValue
11/26/2020AAPL$116.035$580.15
11/26/2020PINS$67.424$269.68
11/26/2020ROKU$278.062$556.12
11/27/2020AAPL$116.595$582.95
11/27/2020PINS$69.724$278.88
11/27/2020ROKU$275.342$550.68


I want to add a column called "Percentage" that will take the Value column and calculate what the percentage of that stock is for my entire portfolio for that date. So, for example, AAPL for 11/26/2020 would be $580.15 / ($580.15 + $269.68 + $556.12) = 41.26%. How do I do this?
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
try a SUMIF()
=SUMIF(A:A,A2,E:E)
That gives the TOTAL Value for the date
NOW
E2/SUMIF(A:A,A2,E:E)
Assuming the columns above start at column A

Book1
ABCDEF
1dateValueTotalPercent
21/1/2011111%
31/2/2022221%
41/3/2033331%
51/1/20101119%
61/2/20202229%
71/3/20303339%
81/1/2010011190%
91/2/2020022290%
101/3/2030033390%
Sheet1
Cell Formulas
RangeFormula
E2:E10E2=SUMIF(A:A,A2,C:C)
F2:F10F2=C2/SUMIF(A:A,A2,C:C)
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top