Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-26-2015, 04:20 AM
PRA007's Avatar
PRA007 PRA007 is offline Extract Data From Text file based on Pattern Windows 7 32bit Extract Data From Text file based on Pattern Office 2010 32bit
Competent Performer
Extract Data From Text file based on Pattern
 
Join Date: Dec 2014
Location: Ahmedabad, Gujrat, India
Posts: 145
PRA007 is on a distinguished road
Default Re: Extract Data From Text file based on Pattern.

I have Table like this in word (main.docx)




My search cell may contain multiple numbers.
I would like to search for first line only in every case.

I have another database word/Excel (database1.docx/xlsx) file containing following table.

4818798 19970406 EXP.
4818798 19961112 REM.
4818798 19921116 ASPN
4818798 19920810 M183
4894153 19980118 EXP.
4894153 19970826 REM.
4894153 19930715 M283
4896965 20020130 EXP.
4896965 20010821 REM.
4896965 19970203 M184
4896965 19930630 M183
5021423 19990606 EXP.
5021423 19981229 REM.
5021423 19941117 M183
5107211 19960421 EXP.
5107211 19951128 REM.
5117870 19960602 EXP.
5117870 19960109 REM.
5185937 20010218 EXP.

Column one contains patent nubers
Column two contains event date in yyyymmdd formate
Column three contains event code in short formate.

I Want to search (i): US ([3-9][0-9,RE]{7}) in my word document and search for corresponding \1 result in database1 file and put column 3 ^13 column 2 data in (i+1) cell.

In case of multiple result from database file I would like to consider event code with latest event date. Generally it is first entry but if possible I would like to consider the date as filter as in future USPTO may change the formate.

After putting the event code in target cell (i+1) I would like to replace it with real event from another two column database2 word/excel file(database2.docx/xlsx. I just want to find and replace Event code with real events as in table.


Files can be found at:
https://sites.google.com/site/rtsk2015/fo

I am not able to attach it in my office as it is forbidden because of cyberoam.

Sorry for setting up strict requrement as I am at learning stage.

Last edited by PRA007; 10-26-2015 at 10:38 PM. Reason: Editing Requested by admin
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Extract Data From Text file based on Pattern How to Extract Data from table based on pattern. PRA007 Word Tables 4 03-17-2015 11:05 PM
Retrieving data from data base based on text selection capitala PowerPoint 0 12-10-2014 08:10 AM
Extract Data From Text file based on Pattern Inserting text from one word file into another based on an excel input jmaxcy Excel 14 11-01-2013 04:07 PM
Inserting text from one word file into another based on an excel input jmaxcy Word 3 11-01-2013 01:26 AM
Is there a way to do this? (automatically enter text based on form data) TIKKI555 Word 0 05-26-2010 09:21 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:07 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft