Hello all,
I am looking to get a macro for the results I have in cols BJ:BO. I have resulted the first 5 x names by filter.
To explain I will go to the name Billy Bunter as he has all expected results for all 6 x cols BJ:BO.
Each name is in ascending order by date, the oldest date to the newest date.
Col AP is counting how many starts each name has had.
Col BG is the number of days since each names last run, so this is looking back at the date of their last run and resulting how many days.
Each name is individual, and the results only refer to that one name.
There are names in here that have had only one start, so col BG will be 0, zero. There will not be any results in cols BJ:BO as there is nothing to refer back to.
The results in col BJ:BO are always referencing back over each name past history only.
Exact finish and exact margin.
Here we see Billy has in cell BG25 the number 11, this is an exact match in cell BG20, so results come from cols AL and AO. 4 and 3.3
Lower finish and lower margin.
This is looking back for the next smallest number in col BG.
Cell BG19 says 45, so looking back there is only one run, cell BG18 says 0, zero. So, results come from cols AL and AO being 15 and 8.6
Higher finish and Higher margin.
This is doing the same thing, except its looking for the closest number that is higher than the number in col BG.
Cell BG24 is 49, so the closest highest number to 49 is 109 in cell BG22. result in cols BN and BO are 5 and 3.5
I think I have explained everything, but I have a record of leaving things out, happy to take all questions and I hope I can get a result.
I have 580,000 rows to process, and I know some macros need time to work, I'm happy to let computer do its thing.
Thanks.
Bookmarks