excel_noob14
New Member
- Joined
- Feb 24, 2018
- Messages
- 3
I am a professed excel noob and so I need help writing this function. I need to write a function where a column of values will subtract from an original value until the value reaches zero.
If my original value is 125, I need the following table to look like this
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]B1[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]B2[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]B3[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]B4[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]B5[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]B6[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]B7[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
I need the function to be generic so that I can start with any original value and the function will subtract subtract 20 from that value until the value reaches less than 20 in the final cell.
hope this makes sense.
If my original value is 125, I need the following table to look like this
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]B1[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]B2[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]B3[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]B4[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]B5[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]B6[/TD]
[TD]20[/TD]
[/TR]
[TR]
[TD]B7[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]
I need the function to be generic so that I can start with any original value and the function will subtract subtract 20 from that value until the value reaches less than 20 in the final cell.
hope this makes sense.