Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count and get position of spaces within a string | Excel Programming | |||
Find Character Position in String | Excel Programming | |||
Position in a string | Excel Worksheet Functions | |||
find nth position of a string | Excel Discussion (Misc queries) | |||
Select a string without knowing position | Excel Programming |