ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Removing character in a string (https://www.excelbanter.com/excel-discussion-misc-queries/250017-removing-character-string.html)

MikeL

Removing character in a string
 
When importing an excel file the character " ' " appears in front of a zip
code;

'85004 this hinders the vlookup formula. How can I remove this character en
mass?

BCDS

Removing character in a string
 
Select the column of cells
CTRL+H
Replace: '
With:

Click REPLACE ALL button

"MikeL" wrote:

When importing an excel file the character " ' " appears in front of a zip
code;

'85004 this hinders the vlookup formula. How can I remove this character en
mass?


Dave Peterson

Removing character in a string
 
Maybe you could modify your =vlookup()

If the value you're matching on has to be text and is currently a number:
=vlookup(""&x99,sheet2!a:b,2,false)
or
=vlookup(text(x99,"00000"),sheet2!a:b,2,false)

""&x99 will convert the number value in x99 to text.
=text(x99,"0000") will keep the leading 0's


MikeL wrote:

When importing an excel file the character " ' " appears in front of a zip
code;

'85004 this hinders the vlookup formula. How can I remove this character en
mass?


--

Dave Peterson


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com