Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Name value position in a string of data

Hi
I have a TXT file that I need to modify before I send it and replace some of
the data on it.
So I was thinking to import it in Excel than give a name to a position in
the string EG:
A = 61 to 71 and than replace the value in 61 to 71 with *******
How can I do the above or do you know any other ways?
I need to do this for multiple positions in the string of data.
Thank you for your help.

AD
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Name value position in a string of data

If your text is in column A then enter this formula in B1
=LEFT(A1,60)&REPT("*",7)&MID(A1,72,LEN(A1))
Copy down as necessary,
Select column B, copy, PasteSpecial/Values into Column A,
Delete column B
Save the workbook as txt file!


Regards,
Stefi

€˛diacci1st€¯ ezt Ć*rta:

Hi
I have a TXT file that I need to modify before I send it and replace some of
the data on it.
So I was thinking to import it in Excel than give a name to a position in
the string EG:
A = 61 to 71 and than replace the value in 61 to 71 with *******
How can I do the above or do you know any other ways?
I need to do this for multiple positions in the string of data.
Thank you for your help.

AD

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default Name value position in a string of data

HI Stefi
Thank you for your help!!
When I open the file in TXT after the changes all the lines have " at the
start and at the end of each line..
Do you know how I could stop this from happening as I have over 30 files to
do monthly and wont be able to do it manually...

Thank you

"Stefi" wrote:

If your text is in column A then enter this formula in B1
=LEFT(A1,60)&REPT("*",7)&MID(A1,72,LEN(A1))
Copy down as necessary,
Select column B, copy, PasteSpecial/Values into Column A,
Delete column B
Save the workbook as txt file!


Regards,
Stefi

€˛diacci1st€¯ ezt Ć*rta:

Hi
I have a TXT file that I need to modify before I send it and replace some of
the data on it.
So I was thinking to import it in Excel than give a name to a position in
the string EG:
A = 61 to 71 and than replace the value in 61 to 71 with *******
How can I do the above or do you know any other ways?
I need to do this for multiple positions in the string of data.
Thank you for your help.

AD

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,646
Default Name value position in a string of data

It can happen iy your Windows list separator character occurs in the text to
be saved!

Regards,
Stefi

€˛diacci1st€¯ ezt Ć*rta:

HI Stefi
Thank you for your help!!
When I open the file in TXT after the changes all the lines have " at the
start and at the end of each line..
Do you know how I could stop this from happening as I have over 30 files to
do monthly and wont be able to do it manually...

Thank you

"Stefi" wrote:

If your text is in column A then enter this formula in B1
=LEFT(A1,60)&REPT("*",7)&MID(A1,72,LEN(A1))
Copy down as necessary,
Select column B, copy, PasteSpecial/Values into Column A,
Delete column B
Save the workbook as txt file!


Regards,
Stefi

€˛diacci1st€¯ ezt Ć*rta:

Hi
I have a TXT file that I need to modify before I send it and replace some of
the data on it.
So I was thinking to import it in Excel than give a name to a position in
the string EG:
A = 61 to 71 and than replace the value in 61 to 71 with *******
How can I do the above or do you know any other ways?
I need to do this for multiple positions in the string of data.
Thank you for your help.

AD

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count and get position of spaces within a string Terry Excel Programming 4 October 24th 06 12:12 AM
Find Character Position in String SportsDave Excel Programming 6 May 21st 06 09:49 PM
Position in a string [email protected] Excel Worksheet Functions 5 March 2nd 06 03:13 PM
find nth position of a string TUNGANA KURMA RAJU Excel Discussion (Misc queries) 6 October 18th 05 01:25 PM
Select a string without knowing position Who I Am Excel Programming 1 September 5th 05 04:35 AM


All times are GMT +1. The time now is 06:33 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"