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
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
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.
 
Upvote 0
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.
 
Upvote 0

Forum statistics

Threads
1,213,510
Messages
6,114,034
Members
448,543
Latest member
MartinLarkin

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top