Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
How can I TRIM i.e. remove the first 3 numbers in a column of data (all
rows) if the leading 3 numbers are 123, and replace them with 9 so for example: if my existing number is 123987654 replace with 9987654 Thanks |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() John wrote: How can I TRIM i.e. remove the first 3 numbers in a column of data (all rows) if the leading 3 numbers are 123, and replace them with 9 so for example: if my existing number is 123987654 replace with 9987654 Thanks Hi John Try: =IF(LEFT(A1,3)="123",9&MID(A1,4,LEN(A1))*1) Regards Steve |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
On the money Scoops, Thanks
"Scoops" wrote in message oups.com... John wrote: How can I TRIM i.e. remove the first 3 numbers in a column of data (all rows) if the leading 3 numbers are 123, and replace them with 9 so for example: if my existing number is 123987654 replace with 9987654 Thanks Hi John Try: =IF(LEFT(A1,3)="123",9&MID(A1,4,LEN(A1))*1) Regards Steve |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi John
try =9&right(a3,len(a3)-3) and copy it down HTH Regards from Brazil Marcelo "John" escreveu: How can I TRIM i.e. remove the first 3 numbers in a column of data (all rows) if the leading 3 numbers are 123, and replace them with 9 so for example: if my existing number is 123987654 replace with 9987654 Thanks |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() John wrote: How can I TRIM i.e. remove the first 3 numbers in a column of data (all rows) if the leading 3 numbers are 123, and replace them with 9 so for example: if my existing number is 123987654 replace with 9987654 Thanks Or =IF(LEFT(A1,3)="123",9&MID(A1,4,LEN(A1))*1,A1) to retain the original value if it doesn't start "123" Regards Steve |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Try this formula: =IF(LEFT(H17,3)="123",MID(H17,4,LEN(H17-3)),H17) Hope it helps -- oteixeira ------------------------------------------------------------------------ oteixeira's Profile: http://www.excelforum.com/member.php...o&userid=35320 View this thread: http://www.excelforum.com/showthread...hreadid=555618 |
#7
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks all
"oteixeira" wrote in message ... Try this formula: =IF(LEFT(H17,3)="123",MID(H17,4,LEN(H17-3)),H17) Hope it helps -- oteixeira ------------------------------------------------------------------------ oteixeira's Profile: http://www.excelforum.com/member.php...o&userid=35320 View this thread: http://www.excelforum.com/showthread...hreadid=555618 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Code for Trim function | Excel Discussion (Misc queries) | |||
Trim Cells | Excel Discussion (Misc queries) | |||
Trim and Keep the Trimmed Data | Excel Worksheet Functions | |||
Trim function doesn't clean out ASCII Code 160 (Space) | Excel Worksheet Functions | |||
How to use TRIM function | Excel Worksheet Functions |