Greasle
New Member
- Joined
- Jul 24, 2017
- Messages
- 21
Hi all,
I'm logging events in a Table. A column called "log" (F column) collects all dates when certain events happened. (Every row has its own event) Below you see the content of a cell in this Column
The cell uses the text format.
24/07/17 -- 00/01/00 -- 00/01/00 -- 24/05/17 -- 23/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 20/05/17 -- 19/05/16 -- 19/05/16 -- 19/05/16 -- 19/04/15 -- 18/04/15 -- 04/03/15
The sheet is growing in size and i like have a script to remove all dates older than 2 years using VBA from this text string in each cell of the column keeping the format.
The 00/01/00 , within the string, is a error result what is the fiction date 0 January 1900 and has to be removed as well.
"Remove all dates from a text string older than... " but "remove the years 2015 and below" will do as well.
(I'm not a schooled coder and work mostly with a lot of copy/paste and try & error. In this case I tried starting with wild-card search en replace but stranded.)
I'm logging events in a Table. A column called "log" (F column) collects all dates when certain events happened. (Every row has its own event) Below you see the content of a cell in this Column
The cell uses the text format.
24/07/17 -- 00/01/00 -- 00/01/00 -- 24/05/17 -- 23/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 22/05/17 -- 20/05/17 -- 19/05/16 -- 19/05/16 -- 19/05/16 -- 19/04/15 -- 18/04/15 -- 04/03/15
The sheet is growing in size and i like have a script to remove all dates older than 2 years using VBA from this text string in each cell of the column keeping the format.
The 00/01/00 , within the string, is a error result what is the fiction date 0 January 1900 and has to be removed as well.
"Remove all dates from a text string older than... " but "remove the years 2015 and below" will do as well.
(I'm not a schooled coder and work mostly with a lot of copy/paste and try & error. In this case I tried starting with wild-card search en replace but stranded.)