Hi all...
So far, I've have used VBA to manipulate a file exported into Excel. Also, I have taken out all rows with data where the date is greater than today's date (i.e. keeping today and past dates only) using the date column. Here is an example of the file:
NB INSTRUMENT DATE VALUE
13243 ULU/ADB 17/01/02 132.14000000000
21344 ULU/ADB 18/01/02 132.73000000000
12323 ULU/ADB 22/01/02 134.34000000000
24343 ULU/ADB 23/01/02 97.05355000000
43541 ULU/ADB 02/01/02 132.08000000000
23124 EIT/ULU 17/01/02 0.88120000000
34134 EIT/ULU 18/01/02 0.88020000000
34254 EIT/ULU 22/01/02 0.88280000000
45454 EIT/ULU 23/01/02 0.98736100000
The part I need help on is for the fourth column (Value). I want to highlight the value where the percentage change is greater than +/-10% from the previous one, ie: highlight (say in red), 97.05355000000 and 0.98736100000. It will need to reset each time the instrument changes, so in this case from ULU/ADB ---> EIT/ULU.
So, for example, we could:
0.98736100000 - 0.88280000000 = 0.104561
Now, 0.104561 / 0.88280000000 = 0.118442455
0.118442455 * 100 = 11.8% ---> HIGHLIGHT IN RED
If anyone has any solutions or better ways of going about this issue, please let me know.
A BIG thank you in advance!
So far, I've have used VBA to manipulate a file exported into Excel. Also, I have taken out all rows with data where the date is greater than today's date (i.e. keeping today and past dates only) using the date column. Here is an example of the file:
NB INSTRUMENT DATE VALUE
13243 ULU/ADB 17/01/02 132.14000000000
21344 ULU/ADB 18/01/02 132.73000000000
12323 ULU/ADB 22/01/02 134.34000000000
24343 ULU/ADB 23/01/02 97.05355000000
43541 ULU/ADB 02/01/02 132.08000000000
23124 EIT/ULU 17/01/02 0.88120000000
34134 EIT/ULU 18/01/02 0.88020000000
34254 EIT/ULU 22/01/02 0.88280000000
45454 EIT/ULU 23/01/02 0.98736100000
The part I need help on is for the fourth column (Value). I want to highlight the value where the percentage change is greater than +/-10% from the previous one, ie: highlight (say in red), 97.05355000000 and 0.98736100000. It will need to reset each time the instrument changes, so in this case from ULU/ADB ---> EIT/ULU.
So, for example, we could:
0.98736100000 - 0.88280000000 = 0.104561
Now, 0.104561 / 0.88280000000 = 0.118442455
0.118442455 * 100 = 11.8% ---> HIGHLIGHT IN RED
If anyone has any solutions or better ways of going about this issue, please let me know.
A BIG thank you in advance!