Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 14
Default 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?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4
Default 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?

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 35,218
Default 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
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing a character sjs Excel Worksheet Functions 4 November 14th 07 09:29 PM
Excel-Match 1st text character in a string to a known character? bushlite Excel Worksheet Functions 2 January 15th 07 06:36 PM
Removing last character in a cell John Bundy Excel Worksheet Functions 0 November 30th 06 06:32 PM
Removing last character in a cell Megadrone Excel Worksheet Functions 0 November 30th 06 06:23 PM
NEED HELP-----Removing a space at the end of a string of character FRS Excel Discussion (Misc queries) 7 April 13th 06 03:57 AM


All times are GMT +1. The time now is 11:48 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"