Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Help !, to find last 'text' date in text string
Newbie needs help, finding last 'text' date in text string ! I am trying to determine how many days ago (from TODAY or DATE) was a entry into a 'text' cell made, but I don't know to find the end of the text and search backward for the last date. In the cell are multiple text entries preceeded by the date of the entry, with the most recent entry appended to the end of the cells current text string. The typical text of the cell looks like below (note: the date entry is always shown as: ", mm/dd/yyyy:") lots of text,,more text,, , 12/28/2005: lots of text,,more text,, r , 12/29/2005: Sent e-mail lots of text,,more text,, r , 12/30/2005: lots of text,,more text,, r , 1/17/2006: lots of text,,more text,, , 1/19/2006: lots of text,,more text,, , 1/27/2006: lots of text,,more text,, , 1/30/2006: lots of text,,more text,, , 3/1/2006: lots of text,,more text,, , 3/1/2006: lots of text,,more text, text end. I think the pseudo code approach would look similiar to: dim todaydate as date dim founddate as ?? dim count as integer todaydate = date 'get and save todays date range(the_text_cell).value.select with selection .find ( here is where I am lost) [probably need something here to convert the found date 'text' value to date type] count = todaydate - founddate Thanks for any help you can provide :-) -- jay ------------------------------------------------------------------------ jay's Profile: http://www.excelforum.com/member.php...fo&userid=2377 View this thread: http://www.excelforum.com/showthread...hreadid=530718 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
How to Find Specific Text in a Text String | Excel Discussion (Misc queries) | |||
Search, find or lookup defined text in text string | Excel Worksheet Functions | |||
can you find specific text in a string ignoring any other text | Excel Discussion (Misc queries) | |||
Find Text within Text String | Excel Programming | |||
backwards find function to find character in a string of text | Excel Programming |