M
MrIainMacleod
I have a spreadsheet which derives project milestone dates. Within our
company’s process, there is a monthly meeting where the agenda
deadline is the 1st Thursday of every month.
In order to derive the first meeting that the project can be
discussed, I have used the following formula:
=WORKDAY(IF((AD15)>=((LOOKUP(MONTH(AD15),B69:F92,F69:F92))),(LOOKUP
(MONTH(AD15)+1,B69:F92,F69:F92)),(LOOKUP(MONTH
(AD15),B69:F92,F69:F92)))-1,1)
Here, AD15 is the date where everything is ready for the meeting
(which can be any time in the month), B69:F92 is a range of date-
related columns* and F69:F92 the dates of the meetings.
* e.g. Column A = month (Jan-Dec), Column B = month number (1-12),
Column F = agenda deadline dates (8th Jan, 5th Feb etc.)
The formula worked whilst I only had the meeting dates for 2009 in the
table (it was initially a demo, that has grown into something we want
to use in anger).
Now that I have added dates for 2010, it’s all gone wrong. If the date
‘should’ be a 2010 date, it always delivers the 2009 version – because
it is looking for the month number, so picks the first April (or
whatever) in the table.
I’m sure that this is an easy one for you guys, and there is probably
an easy =IF statement I can add, but I’ve been banging my head against
the desk for a while, and would appreciate any guidance.
Cheers
Iain
company’s process, there is a monthly meeting where the agenda
deadline is the 1st Thursday of every month.
In order to derive the first meeting that the project can be
discussed, I have used the following formula:
=WORKDAY(IF((AD15)>=((LOOKUP(MONTH(AD15),B69:F92,F69:F92))),(LOOKUP
(MONTH(AD15)+1,B69:F92,F69:F92)),(LOOKUP(MONTH
(AD15),B69:F92,F69:F92)))-1,1)
Here, AD15 is the date where everything is ready for the meeting
(which can be any time in the month), B69:F92 is a range of date-
related columns* and F69:F92 the dates of the meetings.
* e.g. Column A = month (Jan-Dec), Column B = month number (1-12),
Column F = agenda deadline dates (8th Jan, 5th Feb etc.)
The formula worked whilst I only had the meeting dates for 2009 in the
table (it was initially a demo, that has grown into something we want
to use in anger).
Now that I have added dates for 2010, it’s all gone wrong. If the date
‘should’ be a 2010 date, it always delivers the 2009 version – because
it is looking for the month number, so picks the first April (or
whatever) in the table.
I’m sure that this is an easy one for you guys, and there is probably
an easy =IF statement I can add, but I’ve been banging my head against
the desk for a while, and would appreciate any guidance.
Cheers
Iain