Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
We are converting to new software and want to import project data from the
old system. I import the text file (I think its a print file as text) and skip the first two columns. This eliminates the group headers and leaves me with a list of cost references that I need to concatenate with a Project Code, ie; M102 (col A) added to H-003-GM (col B) to become "M102-H-003-GM". Cols C has the Actual $ and Col D the Budget $. Row 13 has the project actual revenue in Col B and budget in Col C, but has no reference in Col A, so I would want to create a temporary one ie; "M102-REV" Because I've skipped importing the first two group header cols from the text file, I'm left with the page headers and group footers/totals in Col B & C. My Questions a 1. The Project Code is not imported due to skipping the first two default columns so I need to extract the Project Code from the text file before I do this. Data starts at Row 3 with the words "COMPNAME CONTRACTORS PTY LTD M102 PROJNAME". (there are 5 spaces between LTD and M102). I need the M102 which can be more than 4 characters. The first col must be formatted to text due to some reference codes converting to date (ie; 10-04) Is it possible to do this and import the Fixed Width text at Col Breaks 42, 60, 78 and 94 using VBA? 2. The text file contains page headers that need to be eliminated. Each page header is the same as rows 3 to 12. (rows 1 & 2 are blank). There is also an "**End or Report**" that would need to be deleted. I would then sort by Col A (now containing only project and reference and delete any rows after the last reference. These are the group totals with only $$$'s in col B so Col A will be blank. The end result is a new list of just reference codes, their actual and budget. This will be imported into the new software to start the projects off. Unfortunately, there are dozens of projects so Id like a more automated way of doing this. Any help would be appreciated. -- Jim |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Data Extraction | Excel Discussion (Misc queries) | |||
Complicated extraction of text | Excel Discussion (Misc queries) | |||
data extraction | Excel Discussion (Misc queries) | |||
data extraction | New Users to Excel | |||
Data Extraction | Setting up and Configuration of Excel |