ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Long character string - need to remove part of it (https://www.excelbanter.com/excel-programming/356013-long-character-string-need-remove-part.html)

laralea

Long character string - need to remove part of it
 
For example:

I need this...
/USA/NORTH CAROLINA/MOORESBORO/CLIFFSIDE STEAM STATION, MOORESB/CLIFFSIDE #5
SHOP-WAREHOUSE/001/0141/

to look like this...
/USA/NORTH CAROLINA/MOORESBORO/CLIFFSIDE STEAM STATION, MOORESB/

Is there code that will do this? Also, there are 56,000 records and the data
baries slight in the different records.


Don Guillett

Long character string - need to remove part of it
 
more examples of the variables

--
Don Guillett
SalesAid Software

"laralea" wrote in message
...
For example:

I need this...
/USA/NORTH CAROLINA/MOORESBORO/CLIFFSIDE STEAM STATION, MOORESB/CLIFFSIDE
#5
SHOP-WAREHOUSE/001/0141/

to look like this...
/USA/NORTH CAROLINA/MOORESBORO/CLIFFSIDE STEAM STATION, MOORESB/

Is there code that will do this? Also, there are 56,000 records and the
data
baries slight in the different records.




Ron Rosenfeld

Long character string - need to remove part of it
 
On Tue, 14 Mar 2006 11:55:33 -0800, laralea
wrote:

For example:

I need this...
/USA/NORTH CAROLINA/MOORESBORO/CLIFFSIDE STEAM STATION, MOORESB/CLIFFSIDE #5
SHOP-WAREHOUSE/001/0141/

to look like this...
/USA/NORTH CAROLINA/MOORESBORO/CLIFFSIDE STEAM STATION, MOORESB/

Is there code that will do this? Also, there are 56,000 records and the data
baries slight in the different records.


What are the rules that determine how much of the string you wish to keep?
--ron


All times are GMT +1. The time now is 10:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com