top of page

If you have a long column in an Excel spreadsheet which contains document descriptions for which dates are given in a nonstandard format, you follow the below workaround to extract the dates into a separate column.

1. Begin by using this formula posted here by Extend Office :

=MID(A2,MIN(IFERROR(MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789",1)),LEN(A2)+1)),LOOKUP(1,0*MID(A2,ROW(INDIRECT("1:"&LEN(A2))),1),ROW(INDIRECT("1:"&LEN(A2)))) + 1 - MIN(IFERROR(MIN(FIND({0,1,2,3,4,5,6,7,8,9},A2&"0123456789",1)),LEN(A2)+1)))

. . . to extract out numerical dates. This formula will extract dates separated with both forward slashes, periods and hyphens. Simply place it in a column adjacent to the column with the document descriptions and then pull it down alongside for all of the descriptions.

2. The formula will extract out dates entered in a numerical format but it will also return values for descriptions which do not have dates in this format. In order to account for these, in a third column set the format to the MM/DD/YYYY date format.

3. Then copy and paste the dates returned by the formula to NotePad to get clean, plain text. Paste the dates back into the new Excel column and the correctly extracted dates will be in date format.

Even though the formula extracts dates separated with periods It's necessary to find and replace them with slashes in the new Excel column, even though this is not necessary for the hyphens.

4. The next step is to parse out the spelled out dates. To do this we will prepare a SUBSTITUTE formula to run multiple find and replaces so there is a pipe delimiter before each month and after each year.


. . . although this formula may look detailed it is not difficult to write. Type January in a cell in column J and then pull it down 11 cells so each of the months is listed. Then enter the year which is the earliest for which there are documents in your set, and then pull it down to the end of the documents' date range. In the column to the right enter a pipe delimiter before the months and after the years like this:

The first column will have the values that the SUBSTITUTE formula searches for and then the second will have the values that it adds in as replacements.

5. Next enter "SUBSTITUTE(" in a column for all of the months and years, and then enter absolute references for the cells with the values to be searched for in one column, and then those with the replacement values in another column. In between these columns enter a column with just a comma in each cell, and to the right enter a column with ").".

6. Copy and paste the 'SUBSTITUTE(' entries in a Word document and then remove all of the paragraph breaks by finding and replacing "^p". Then do the same for the other columns on the right but remove the tabs by finding and replacing "^t".

7. In between the SUBSTITUTE command and the rest of the formula enter a reference to the first cell in the Excel spreadsheet with the document descriptions. You should get a formula which functions this way:

8. The formula should put delimiters around the spelled out dates which you can use to separate them into a new column using the Text to Columns tool on the Data tab. Copy and paste the formula results as values first.

9. In the column with the reformatted dates from the first formula filter for only the non-date entries

10. Then simply add the values for the spelled out dates using a reference to the column with the parsed out data.

11. We are left with one column with all of the dates in the descriptions.

This process does not take long. See this demonstration video:

19 views0 comments

You can use javascript code in Adobe Acrobat to extract set ranges of pages from a PDF file and then save and rename each extracted PDF range as a new file.

A user named vvb posted the following code here:

/* Extract Pages to Folder */var re = /.*\/|\.pdf$/ig; var filename = this.path.replace(re,""); var lastPage=this.numPages-1; { for ( var i = 0; i < this.numPages; i = i + 2 ) this.extractPages ({ nStart: i, nEnd: i + 1, cPath : filename + "_page_" + (i+1) + ".pdf" }); };

This code can be inserted in Acrobat and edited so that it takes 5 pages at a time from a source PDF file and then names them sequentially with a prefix.

In Acrobat go to More Tools and select Action Wizard. On the top toolbar select the option for 'New Action'. In the 'More Tools' menu select the 'Execute Javascript' option - doubleclick on it so it appears in the right pane.

Uncheck the 'Prompt User' option, and then click on 'Specify Settings'.

Edit the code so that the line beginning, " for ( var i = 0; i < this.numPages; i = i + " specifies how many pages you want each PDF to be., and the line beginning "nEnd: i + " ends with one number less. Modify the line beginning, " cPath : " so that it has the letter prefix for each file. The script will name each extracted file with the page number from the original file that the excerpt begins with.

/* Extract Pages to Folder */var re = /.*\/|\.pdf$/ig;

var filename = this.path.replace(re,"");

var lastPage=this.numPages-1;


for ( var i = 0; i < this.numPages; i = i + 5 )



nStart: i,

nEnd: i + 4,

cPath : "ACME" + (i+1) + ".pdf"



Save and name the action.

Click on the action in the Actions List and then select the files that you want to run it on. Click the 'Start' button.

The script will create a new file (in the same folder as the source file(s)) named with the prefix you enter in the code and the page number on which the excerpt begins.

74 views0 comments

The Litigation Support Tip of the Night for February 7, 2017 described how to remove thumbnail image files which could not be deleted through the normal right click process. Lately I have found when working in Windows 11 that the technique of deleting the files in the 'Content' view no longer works. I get an error message like this:

This week I was able to successfully implement the solution posted here by Anand Khanse which recommends a change in the Registry Editor. Browse to HKEY_CURRENT_USER\Software\Policies\Microsoft\Windows and right click and select New . . . Key

Create a new folder named, 'Explorer' and then right click on it and again select New

. . . select the option for 'DWORD (32-bit) Value', and name the DWORD as DisableThumbsDBOnNetworkFolders

If you double-click on this file a dialog box will open which allow you to set the value data to 1

When I made this change in RegEdit I was able to successfully delete thumbnail .db file after I rebooted Windows.

As always exercise great caution when making changes in Registry Editor.

25 views0 comments
bottom of page