excelsishya
Board Regular
- Joined
- Jul 25, 2010
- Messages
- 107
Hi all ,
Is there Any code to identify cell with formula but only with referenced ones in a selection?
My aim is to divide selected range of cells by 1000 by checking if cell is hard coded or formula with or without cell reference.
Eg A1 =10000 hard coded
A2=50000 hard coded
A3= 10000 Formula (=9000+1000)
A4= SUM(A1:A3) FORMULA
When i select range A1:A4 and run code A1 to A3 Should be divided by 1000.
Real data is with thousands of rows where in many of cell in between A3 kind of formula is there .
Currently i am using 2 Kind of VBA divider code - one which divides only constant and another only formula by checking if not cellhasformula=true/false
both will not serve my purpose in above case.
Thanks
Is there Any code to identify cell with formula but only with referenced ones in a selection?
My aim is to divide selected range of cells by 1000 by checking if cell is hard coded or formula with or without cell reference.
Eg A1 =10000 hard coded
A2=50000 hard coded
A3= 10000 Formula (=9000+1000)
A4= SUM(A1:A3) FORMULA
When i select range A1:A4 and run code A1 to A3 Should be divided by 1000.
Real data is with thousands of rows where in many of cell in between A3 kind of formula is there .
Currently i am using 2 Kind of VBA divider code - one which divides only constant and another only formula by checking if not cellhasformula=true/false
both will not serve my purpose in above case.
Thanks