shahsavand
Board Regular
- Joined
- Dec 8, 2014
- Messages
- 74
i want to allocate the extra quantity of column G to one of the (A to D) if they filled with a number.i just wanna add the extera number to one of those column not all of them.
i would be very grateful if anybody could help me with a VBA code.
[TABLE="width: 687"]
<colgroup><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]XS4020-34403
[/TD]
[TD]XS4020S-34503[/TD]
[TD]XS5020-34603[/TD]
[TD]XS5020S-34702[/TD]
[TD]TOTAL NEED[/TD]
[TD]Total RECEIVE[/TD]
[TD]EXTRA[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]4012[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000
[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]12000[/TD]
[TD="align: right"]8000[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]4216[/TD]
[TD="align: right"]216[/TD]
[/TR]
[TR]
[TD="align: right"]2000[/TD]
[TD="align: right"]3000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]3000[/TD]
[TD="align: right"]10000[/TD]
[TD="align: right"]18000[/TD]
[TD="align: right"]8000[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]12000[/TD]
[TD="align: right"]8000[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]2000[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2208[/TD]
[TD="align: right"]208[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2208[/TD]
[TD="align: right"]208[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]10000[/TD]
[TD="align: right"]8000[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2304[/TD]
[TD="align: right"]304[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2560[/TD]
[TD="align: right"]560[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]2000[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]6000[/TD]
[TD="align: right"]2000[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2940[/TD]
[TD="align: right"]940[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]10000[/TD]
[TD="align: right"]8000[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]5000[/TD]
[TD="align: right"]3000[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]3040[/TD]
[TD="align: right"]1040[/TD]
[/TR]
[TR]
[TD="align: right"]2000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]8000[/TD]
[TD="align: right"]40000[/TD]
[TD="align: right"]32000[/TD]
[/TR]
</tbody>[/TABLE]
i would be very grateful if anybody could help me with a VBA code.
[TABLE="width: 687"]
<colgroup><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]XS4020-34403
[/TD]
[TD]XS4020S-34503[/TD]
[TD]XS5020-34603[/TD]
[TD]XS5020S-34702[/TD]
[TD]TOTAL NEED[/TD]
[TD]Total RECEIVE[/TD]
[TD]EXTRA[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]4012[/TD]
[TD="align: right"]12[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000
[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]12000[/TD]
[TD="align: right"]8000[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]4216[/TD]
[TD="align: right"]216[/TD]
[/TR]
[TR]
[TD="align: right"]2000[/TD]
[TD="align: right"]3000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]3000[/TD]
[TD="align: right"]10000[/TD]
[TD="align: right"]18000[/TD]
[TD="align: right"]8000[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]12000[/TD]
[TD="align: right"]8000[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]2000[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2208[/TD]
[TD="align: right"]208[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2208[/TD]
[TD="align: right"]208[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]10000[/TD]
[TD="align: right"]8000[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2304[/TD]
[TD="align: right"]304[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2560[/TD]
[TD="align: right"]560[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]2000[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]4000[/TD]
[TD="align: right"]6000[/TD]
[TD="align: right"]2000[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2940[/TD]
[TD="align: right"]940[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]10000[/TD]
[TD="align: right"]8000[/TD]
[/TR]
[TR]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]5000[/TD]
[TD="align: right"]3000[/TD]
[/TR]
[TR]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]1000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]3040[/TD]
[TD="align: right"]1040[/TD]
[/TR]
[TR]
[TD="align: right"]2000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]2000[/TD]
[TD="align: right"]8000[/TD]
[TD="align: right"]40000[/TD]
[TD="align: right"]32000[/TD]
[/TR]
</tbody>[/TABLE]