hassanleo1987
Board Regular
- Joined
- Apr 19, 2017
- Messages
- 56
Hi,
I have a table range to 30 columns and 100 rows with some blank cells in it. The cells values are 6 , 8 , 10 , SL , VC and RE other than the blanks.
Lets suppose the current sum of table range mentioned above is 6000. I need a VBA code that will target the cells with numerical values only ignoring the blanks and other values i.e. SL, VC or RE, change it to a specific value of 8 until the sum of table range is 5560.
The targeted cells that are being changed must be random and loop should continue until the target sum of 5560 is achieved.
Target sum value is in a fixed range along with specific value "8" . (Fixed cell references in the same sheet for reference in VBA code).
Actual application is a big table of more than 100 columns and 6000 rows, doing it manually takes a lot of time!
Can somebody please help with this!
I have a table range to 30 columns and 100 rows with some blank cells in it. The cells values are 6 , 8 , 10 , SL , VC and RE other than the blanks.
Lets suppose the current sum of table range mentioned above is 6000. I need a VBA code that will target the cells with numerical values only ignoring the blanks and other values i.e. SL, VC or RE, change it to a specific value of 8 until the sum of table range is 5560.
The targeted cells that are being changed must be random and loop should continue until the target sum of 5560 is achieved.
Target sum value is in a fixed range along with specific value "8" . (Fixed cell references in the same sheet for reference in VBA code).
Actual application is a big table of more than 100 columns and 6000 rows, doing it manually takes a lot of time!
Can somebody please help with this!