Finding Start and End Date

eluna

Board Regular
Joined
May 30, 2005
Messages
92
Hey Guys,

I would like to write in column AL the start date and in column AM the end date of the events in column B.
Example:
Allured starts 11/12/05 and ends on 11/10/05
American Geophicist starts 12/01/05 and ends on 12/10/05
American Academy starts 2/26/06 and ends on 2/28/06

How would do this using VBA.

THanks
Daily for MAR update.XLS
ABCDEFGHIJKLMNOPQRS
1;;November;200511/01/0511/02/0511/03/0511/04/0511/05/0511/06/0511/07/0511/08/0511/09/0511/10/0511/11/0511/26/0511/27/0511/28/0511/29/0511/30/05;
2DAllured;Publishing;Corporation;-;2005;Face;&Body;Spa;&Healthy;Aging;Conference;&Exhibition;[Moscone;Approved;Definite;-;Moscone;W]01001003003001000000000000;
3;;December;200512/01/0512/02/0512/03/0512/04/0512/05/0512/06/0512/07/0512/08/0512/09/0512/10/0512/11/0512/26/0512/27/0512/28/0512/29/0512/30/0512/31/05
4DAmerican;Geophysical;Union;-;Fall;Meeting;[Moscone;Approved;Definite;-;Moscone;W]1176633,2373,7833,9003,9003,2371,4432731170000000
5DThe;American;Society;for;Cell;Biology;-;Annual;[Moscone;Approved;Definite;-;Moscone;S]000000601501,1402,8203,000000000
6;;January;200601/01/0601/02/0601/03/0601/04/0601/05/0601/06/0601/07/0601/08/0601/09/0601/10/0601/11/0601/26/0601/27/0601/28/0601/29/0601/30/0601/31/06
7DIDG;World;Expo;(Macworld);-;Macworld;Conference;&Expo;[Moscone;Approved;Definite;-;Moscone;N;&S]0000681284008683,2203,9324,000000000
8DSociety;of;Critical;Care;Medicine;-;Annual;Congress;[Moscone;Approved;Definite;-;Moscone;W]000194941,1971,8811,9001,8241,330342000000
9;;February;200602/01/0602/02/0602/03/0602/04/0602/05/0602/06/0602/07/0602/08/0602/09/0602/10/0602/11/0602/26/0602/27/0602/28/06;;;
10DAmerican;Academy;of;Dermatology;-;Annual;National;Meeting;[Definite;-;Moscone;N;&S]000000000006565130;;;
11TAnheuser-Busch;Companies;-;2006;Anheuser-Busch;Regional;Sales;Meeting;[Tentative;-;Moscone;S]8,0008,0008,00000000000000;;;
12DAnnual;Dialysis;Conference;-;2006;Annual;Dialysis;Conference;[Moscone;Approved;Definite;-;Moscone;W]000000000002,2502,160877;;;
Moscone
 

Some videos you may like

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.

eluna

Board Regular
Joined
May 30, 2005
Messages
92
That would not help, because the row where the dates are changes.
 

PaddyD

MrExcel MVP
Joined
May 1, 2002
Messages
14,234
I disagree. Rather than:

"That would not help, because the row where the dates are changes."

...from your data, I would have said:

"That's not a general solution - your example picks start / end dates from a single row, whereas my target row will change"

...to which the response would be - either you can detail a regularity about the target rows so we can try and identify them (which I don't think you've done), or you'll have to adjust the ranges manually.
 

Tazguy37

MrExcel MVP
Joined
May 28, 2004
Messages
4,237
PaddyD said:
...to which the response would be - either you can detail a regularity about the target rows so we can try and identify them (which I don't think you've done), or you'll have to adjust the ranges manually.

Along that line, perhaps a reorganization of your tables is in order. A formula-based (therefore VBA) solution can be found, but it gets complicated (at least for me) when looking for the row of dates that applies to the rows in each group. Perhaps a new worksheet for each month would work.
 

Watch MrExcel Video

Forum statistics

Threads
1,118,057
Messages
5,569,955
Members
412,300
Latest member
Chaneycr
Top