Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi,
The data is like this, 1abcde2 stuvwxyz bcdef49853912 For every first and last character in a cell has to be replaced with % Ex: for first cell the answer will be %abcde% Let me know if any forumla will be helping me. Appreciated your help in advance. |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
One way:
="%" & MID(A1,2,LEN(A1)-2) & "%" In article , Igneshwara reddy wrote: Hi, The data is like this, 1abcde2 stuvwxyz bcdef49853912 For every first and last character in a cell has to be replaced with % Ex: for first cell the answer will be %abcde% Let me know if any forumla will be helping me. Appreciated your help in advance. |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]() Sub addchar() For Each c In Range("h2:h4") c.Value = "%" & c c.Value = c & "%" Next c End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Igneshwara reddy" wrote in message ... Hi, The data is like this, 1abcde2 stuvwxyz bcdef49853912 For every first and last character in a cell has to be replaced with % Ex: for first cell the answer will be %abcde% Let me know if any forumla will be helping me. Appreciated your help in advance. |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
or
Sub addchar() For Each c In Range("h2:h4") c.Value = "%" & c & "%" Next c End Sub -- Don Guillett Microsoft MVP Excel SalesAid Software "Igneshwara reddy" wrote in message ... Hi, The data is like this, 1abcde2 stuvwxyz bcdef49853912 For every first and last character in a cell has to be replaced with % Ex: for first cell the answer will be %abcde% Let me know if any forumla will be helping me. Appreciated your help in advance. |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
if then forumla | Excel Worksheet Functions | |||
Most Used Name Forumla | Excel Worksheet Functions | |||
Help with Forumla | Excel Worksheet Functions | |||
IF Forumla help | Excel Discussion (Misc queries) | |||
Forumla Help | Excel Discussion (Misc queries) |