Formula or VBA for auto changing of qty based on a Value

RAMU

Active Member
Joined
Dec 11, 2009
Messages
321
Dear Friends,

Suppose I have a data like the following:

FRUITSQTYRATETOTAL
APPLE125405000
GUAVA83655395
ORANGE5210520
BANANA785390
GRAPE75.25453386.25
LEAMON32.515487.5
LITCHI38.52301155.6
DATES56.7562.53546.875
CHERRY23.228649.6
PAPAYA2616416
COCONUT1520300
GRAND TOTAL21246.83

<colgroup><col><col><col><col></colgroup><tbody>
</tbody>

Total column is simple multiplication of Rate & Qty and Grand Total is normal SUM formula.

"FRUIT" is in A1 & "21246.83" is in D13. In G13 I have put the same figure of Grand Total i.e. 21246.83 manually.

What I need basically a formula in a column or VBA by which if I change the value of G13, Constant the rates the qty of all fruits will be changed automatically on pro rata basis or percentage basis of total qty of fruits.

Thanks in advance.
Regards
RAMU
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Place this formula in cell E2 and copy to cell E12:
Code:
=B2*($G$13/$D$13)

I think that should give you what you want.
 
Upvote 0

Forum statistics

Threads
1,215,004
Messages
6,122,659
Members
449,091
Latest member
peppernaut

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