Hi all,
I have a set of data in Excel, which is sorted with dates. I want to search for the following month's data and compare like data for like. So I start on 5th March, and search and sort up to and including 5th April.
However, if I start on 19th September, and 19th October is a weekend, I won't have any data for 19th October, but the next data may be 21st October.
Is there any way to program this so that Excel VBA can search for and make allowances for missing days (due to weekends or other cause), and go to the next date which is at least 1 month in the future, and stop the loop???
I need this to work over several years, so I can't use a date specific solution. It really should work for any date and 1 month forward.
If any of you have any solution, then I'd appreciate it as it is beyond me.
Thanks!
I have a set of data in Excel, which is sorted with dates. I want to search for the following month's data and compare like data for like. So I start on 5th March, and search and sort up to and including 5th April.
However, if I start on 19th September, and 19th October is a weekend, I won't have any data for 19th October, but the next data may be 21st October.
Is there any way to program this so that Excel VBA can search for and make allowances for missing days (due to weekends or other cause), and go to the next date which is at least 1 month in the future, and stop the loop???
I need this to work over several years, so I can't use a date specific solution. It really should work for any date and 1 month forward.
If any of you have any solution, then I'd appreciate it as it is beyond me.
Thanks!