Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
For example,
I want to replace "1055428" from CC03TW05040000010001055428 with "1162123", so that my string would be CC03TW05040000010001162123. Thanks! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Christy wrote:
For example, I want to replace "1055428" from CC03TW05040000010001055428 with "1162123", so that my string would be CC03TW05040000010001162123. Thanks! Is the last set of characters consistently 7 characters? If so... sString = Left("CC03TW05040000010001055428", Len("CC03TW05040000010001055428") -7) & "1162123" "1162123" could be a variable or a field value too. If it is not consistently 7 characters...maybe 1000 is? In which case you could use the Mid function. Steve |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Hi, Say A1 = CC03TW05040000010001055428 B1 = 1162123 then enter C1 =LEFT(A5,LEN(A5)-LEN(B5))&B5 VBA Noob -- VBA Noob ------------------------------------------------------------------------ VBA Noob's Profile: http://www.excelforum.com/member.php...o&userid=33833 View this thread: http://www.excelforum.com/showthread...hreadid=570561 |
#4
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]() Bingo! Thanks a lot guys. You guys are incredible. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
random alphanumeric string | Excel Worksheet Functions | |||
Numeric cell but shows as string? | Excel Worksheet Functions | |||
Summing part of an Alpha Numeric String | Excel Worksheet Functions | |||
Read Text File into Excel Using VBA | Excel Discussion (Misc queries) | |||
Extracting numeric values from string | Excel Worksheet Functions |