Secret Chimpanzee
Board Regular
- Joined
- Jun 21, 2012
- Messages
- 141
Hi,
It's been a few years since I've done any vba coding and I can no longer stitch together small codes by searching for answers across different forums - so I'm hoping someone will be able to help me with the entire code...
What I need is:
1) In row 4, if the value in the first month being April (column E) is less than zero, then
2) Take that value and distribute it as an ABSOLUTE value across all the "New Capacity" rows from row 8 onwards, but using the following criteria:
a) "New Capacity" row must also have "Voice" in column B
b) Value in Column E must be greater than zero
c) Using the distribution splits of the cells that meet the criteria
3) Then it needs to do the same thing in reverse and subtract from the "New Capacity" cells that are less than zero and do this for all the months
The purpose is to have all the "New Capacity" rows as balanced as possible so that they are all showing a value either less than or greater than zero (think of it as distributing wealth)
I can't really do this in excel as it would return a circular reference and to do it manually for all months would take quite some time. I have tried to make the request as simple as possible so apologies if there is any detail lacking.
Thanks,
Secret Chimpanzee
It's been a few years since I've done any vba coding and I can no longer stitch together small codes by searching for answers across different forums - so I'm hoping someone will be able to help me with the entire code...
What I need is:
1) In row 4, if the value in the first month being April (column E) is less than zero, then
2) Take that value and distribute it as an ABSOLUTE value across all the "New Capacity" rows from row 8 onwards, but using the following criteria:
a) "New Capacity" row must also have "Voice" in column B
b) Value in Column E must be greater than zero
c) Using the distribution splits of the cells that meet the criteria
3) Then it needs to do the same thing in reverse and subtract from the "New Capacity" cells that are less than zero and do this for all the months
The purpose is to have all the "New Capacity" rows as balanced as possible so that they are all showing a value either less than or greater than zero (think of it as distributing wealth)
I can't really do this in excel as it would return a circular reference and to do it manually for all months would take quite some time. I have tried to make the request as simple as possible so apologies if there is any detail lacking.
Thanks,
Secret Chimpanzee