Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Text File data fill 1

Status
Not open for further replies.

proximity

Technical User
Sep 19, 2002
132
GB
Hi everyone,

Can anyone suggest the best way to get ColA values of a plain text to repeat until it changes to another value:

Before:

ColA ColB
001/0222 901123
001/0255 855524
855524
855524
001/6622 855666
001/1222 123456
123456
123456

After:
ColA should never have any null values - the value should be the last preceding one, so that the result should look like this:

001/0222 901123
001/0255 855524
001/0255 855524
001/0255 855524
001/6622 855666
001/1222 123456
001/1222 123456
001/1222 123456

Once that's done, I can simly import the data into a table.

Thanks.

 
Thanks pwise, that was exactly what I was looking for!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top