Formula to get quantity as a percentage of cell value

redspanna

Well-known Member
Joined
Jul 27, 2005
Messages
1,604
Office Version
  1. 365
Platform
  1. Windows
Hi all
So on the example shown I have the current 'Holding' value stored in H8
Once user inputs the % to sell into cell D11:D15 I would like that percentage shown in E11:E15 as a current value of cell H8

DCA Calc.xlsm
BCDEFGHIJK
2
3
4
5
6HOLDING123,456.00
7
8123,456.00
9
10PRICE% TO SELLQUANTITY
11
12
13
14
15
16
Sheet1 (2)
Cell Formulas
RangeFormula
H8H8=SUM(D6)-(SUM(E11:E15))
Cells with Data Validation
CellAllowCriteria
D5:E5List=$AB$4:$AB$11


So for example:
If user inputs 10 into D11, the formula needed in cell E11 would equate to what 10% of the current value in cell H8 is = so the result in E11 would be 12,345.60 and H8 will reduce to 111,110.40
if the user then inputs 10 into D12, the formula needed in cell E12 would equate to what 10% of the current value in cell H8 is = so H8 will now hold 111,110.40 (123,456.60 - 10%), therefor the result now in E12 would be 111,110.40 - 10% so 11,111.04, and so on with any inputs added to cells in D13:D15

FYI - the original starting balance for cell H8 is held in Cell D6

hope this makes sense
 

Excel Facts

Is there a shortcut key for strikethrough?
Ctrl+S is used for Save. Ctrl+5 is used for Strikethrough. Why Ctrl+5? When you use hashmarks to count |||| is 4, strike through to mean 5.
How about
Excel Formula:
=IF(D11="","",0.1*($D$6-SUM(E$10:E10)))
 
Upvote 1
Solution
How about
Excel Formula:
=IF(D11="","",0.1*($D$6-SUM(E$10:E10)))
Changed slightly to

Excel Formula:
=IF(D11="","",D11%*($D$6-SUM(E$10:E10)))

so instead of the 0.1 (10%) being hard coded into the formula , I changed it as required to indicate the value (as a %) in D11

Thanks a lot
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

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