Hello, I've used excel in a very basic sense for years but am getting frustrated with time consuming tasks that I'm sure could be automated. I have a problem I'm trying to create a macro for but the macro screws up the cell references. Is there any way for me to automate the following:
I have a large dataset and will recreate the issue with a small made up example.
A
1) 200
2) 250
3) 285
4) 178
5) =if(A1/A4*100>110,"e",if(A1/A4*100<90,"i","-"))
6) =if(A2/A3*100>110,"e",if(A1/A4*100<90,"i","-"))
A is a dataset of a soil analysis which lists the values of soil elements from different sites. The criterion is pretty random and required me to go into the data to see which value should divide by another. ie it was not a case of making the formula and copying it down.
Now I wish to modify the formula to:
=if(A1/A4*100>150,"E",if(A1/A4*100>110,"e",if(A1/A4*100<66,"I",if(A1/A4*100<66,"i","-"))))
A long and tedious copy and paste procedure. I really don't want to do this 90 times!
As I said I created a macro which goes through the process of altering the formula but it changes the cell references when I apply it. Is there a way to do a macro that changes the formula keeping the cell refs intact?
Thanks
Bookmarks