Hey guys..this is a bit complicated so bear with me but it should be a suitable challenge for you experts!
I basically need to know what will be outstanding at the end of the month that is OVER 45 days (at the end of the month though..not now!) The issue is that the end of month command isn't sufficient because it might fall on a weekend so I can't say it's the 1st of this month or the 2nd of this month because it's not on a set day, it's on the first working day of the month so for example the next 3 months it will be 1st November, 3rd December, 2nd January. Is there any code I can use to do this?
I need it to delete anything that isn't within the above range so then I can manipulate the data as I plan to. From the below example the top line would be deleted as by the 1st of November which is the first working day of the month it will be only 25 days old so therefore not over 45 days at the end of the month (or beginning of the next month if that command is easier?!) The second line will be included because although it's only 41 days old today on the 24th October 2012, it will be 49 days old by the time it hits 1st November. Hope that makes sense
Any help would be incredibly appreciated, I'm stumped on this one..
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Company
[/TD]
[TD]Alpha
[/TD]
[TD]Long
[/TD]
[TD]Invoice Date
[/TD]
[TD]Invoice Age
[/TD]
[TD]Total O/S
[/TD]
[TD]CC Section
[/TD]
[/TR]
[TR]
[TD]130
[/TD]
[TD]Test1
[/TD]
[TD]Testlonger1
[/TD]
[TD]08/10/12
[/TD]
[TD]17
[/TD]
[TD]1231.54
[/TD]
[TD]Tom
[/TD]
[/TR]
[TR]
[TD]147
[/TD]
[TD]Test2
[/TD]
[TD]Testlonger2
[/TD]
[TD]14/09/12
[/TD]
[TD]41
[/TD]
[TD]3527.23
[/TD]
[TD]Laura
[/TD]
[/TR]
[TR]
[TD]147
[/TD]
[TD]Test3
[/TD]
[TD]Testlonger3
[/TD]
[TD]11/11/11
[/TD]
[TD]349
[/TD]
[TD]129.42
[/TD]
[TD]Tom
[/TD]
[/TR]
[TR]
[TD]130
[/TD]
[TD]Test4
[/TD]
[TD]Testlonger4
[/TD]
[TD]03/05/12
[/TD]
[TD]175
[/TD]
[TD]1532.98
[/TD]
[TD]Steph
[/TD]
[/TR]
</TBODY>[/TABLE]
I basically need to know what will be outstanding at the end of the month that is OVER 45 days (at the end of the month though..not now!) The issue is that the end of month command isn't sufficient because it might fall on a weekend so I can't say it's the 1st of this month or the 2nd of this month because it's not on a set day, it's on the first working day of the month so for example the next 3 months it will be 1st November, 3rd December, 2nd January. Is there any code I can use to do this?
I need it to delete anything that isn't within the above range so then I can manipulate the data as I plan to. From the below example the top line would be deleted as by the 1st of November which is the first working day of the month it will be only 25 days old so therefore not over 45 days at the end of the month (or beginning of the next month if that command is easier?!) The second line will be included because although it's only 41 days old today on the 24th October 2012, it will be 49 days old by the time it hits 1st November. Hope that makes sense
Any help would be incredibly appreciated, I'm stumped on this one..
[TABLE="width: 500"]
<TBODY>[TR]
[TD]Company
[/TD]
[TD]Alpha
[/TD]
[TD]Long
[/TD]
[TD]Invoice Date
[/TD]
[TD]Invoice Age
[/TD]
[TD]Total O/S
[/TD]
[TD]CC Section
[/TD]
[/TR]
[TR]
[TD]130
[/TD]
[TD]Test1
[/TD]
[TD]Testlonger1
[/TD]
[TD]08/10/12
[/TD]
[TD]17
[/TD]
[TD]1231.54
[/TD]
[TD]Tom
[/TD]
[/TR]
[TR]
[TD]147
[/TD]
[TD]Test2
[/TD]
[TD]Testlonger2
[/TD]
[TD]14/09/12
[/TD]
[TD]41
[/TD]
[TD]3527.23
[/TD]
[TD]Laura
[/TD]
[/TR]
[TR]
[TD]147
[/TD]
[TD]Test3
[/TD]
[TD]Testlonger3
[/TD]
[TD]11/11/11
[/TD]
[TD]349
[/TD]
[TD]129.42
[/TD]
[TD]Tom
[/TD]
[/TR]
[TR]
[TD]130
[/TD]
[TD]Test4
[/TD]
[TD]Testlonger4
[/TD]
[TD]03/05/12
[/TD]
[TD]175
[/TD]
[TD]1532.98
[/TD]
[TD]Steph
[/TD]
[/TR]
</TBODY>[/TABLE]