Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
sai sai is offline
external usenet poster
 
Posts: 10
Default Need help with spreading logic

Here is a sample file with 4 columns
Gp Qty Change Reallocated
1 10 0
1 20 22.22222222
1 30 33.33333333
1 40 44.44444444
2 25
2 45
3
3
3

In the data above - Gp 1 has 100 units (10+20+30+40) allocated to it.
When a change to made to any of the quantities (changed to 0 from 10 in
row 1), that change needs to proportional distributed across the group
keeping the total the same. For instance if I reduce row 1 from 10 to
0, then row 2, 3 and 4 are changed to the numbers in the reallocated
column so that the sum is still 100 units.

Other groups are not affected. The change can be an increase or a
decrease.

I want to be able to do this through VBA - when a change is made to
column 3, I want to populate column 4.

Can someone please help?

Sai

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Spreading dates evenly in a row of cells OHNESORGE Excel Discussion (Misc queries) 2 March 12th 09 02:26 PM
Copy from another sheet but spreading the data out down the col Peter Excel Worksheet Functions 3 July 4th 08 08:05 AM
spreading equally D Pingger Excel Worksheet Functions 8 August 24th 07 05:28 AM
Spreading Formulas across the whole document Vlad Excel Discussion (Misc queries) 6 July 23rd 07 02:22 PM
Spreading a list. JIMMY Excel Discussion (Misc queries) 3 February 26th 05 12:07 PM


All times are GMT +1. The time now is 11:49 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"