Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-05-2008, 04:51 PM
=?Utf-8?B?SmVmZnJleQ==?=
 
Posts: n/a
Remove quotation marks

Is there a way to remove quotation marks from an Excel spreadsheet?

My file has looks like this:

"000151","001","SCREW-5/16-18 X 5/8 HEX CAP","A1"
"000922","001","SCREW-10-32X1/4 RHM-ZP"

But everything I try it I either get it to import but I loose the leading
00's (zero's) or it looks like this.

"000151" "001" "SCREW-5/16-18 X 5/8 HEX CAP" "A1"
"000922" "001" "SCREW-10-32X1/4 RHM-ZP" "A1"
"001085" "001" "NUT-3/8-16 HEX" "A1"

How do I get to import and get to look like this?

000151 001 SCREW-5/16-18 X 5/8 HEX CAP A1

I am using the Wizard in the Excel program.



Reply With Quote
  #2 (permalink)  
Old 07-05-2008, 05:10 PM
Don Guillett
 
Posts: n/a
Re: Remove quotation marks

Format as Text and edit>replace " with nothing
or record a macro and clean it up as shown in fixtext

Sub Macro2()
'
' Macro2 Macro
' Macro recorded 7/5/2008 by Donald B. Guillett
'

'
Columns("A:A").Select
Selection.NumberFormat = "@"
Selection.Replace What:="""", Replacement:="", LookAt:=xlPart, _
SearchOrder:=xlByRows, MatchCase:=False, SearchFormat:=False, _
ReplaceFormat:=False
End Sub

Sub fixtext()
With Columns("A")
.NumberFormat = "@"
.Replace """", ""
End With
End Sub


--
Don Guillett
Microsoft MVP Excel
SalesAid Software
dguillett1@austin.rr.com
"Jeffrey" <Jeffrey@discussions.microsoft.com> wrote in message
news:005AF96A-F4F0-4BA6-A3CA-0E284A0986D2@microsoft.com...
> Is there a way to remove quotation marks from an Excel spreadsheet?
>
> My file has looks like this:
>
> "000151","001","SCREW-5/16-18 X 5/8 HEX CAP","A1"
> "000922","001","SCREW-10-32X1/4 RHM-ZP"
>
> But everything I try it I either get it to import but I loose the leading
> 00's (zero's) or it looks like this.
>
> "000151" "001" "SCREW-5/16-18 X 5/8 HEX CAP" "A1"
> "000922" "001" "SCREW-10-32X1/4 RHM-ZP" "A1"
> "001085" "001" "NUT-3/8-16 HEX" "A1"
>
> How do I get to import and get to look like this?
>
> 000151 001 SCREW-5/16-18 X 5/8 HEX CAP A1
>
> I am using the Wizard in the Excel program.
>
>
>


Reply With Quote
  #3 (permalink)  
Old 07-05-2008, 05:10 PM
Dave Peterson
 
Posts: n/a
Re: Remove quotation marks

I created a test file (plain old text) with your two lines of data in it.

I called it: C:\test.txt

I opened excel
I did File|Open|c:\test.txt
I was shown the text import wizard and I chose:
Delmited by comma

But I also told excel that each field should be treated as text (not General,
not a date, not skipped)

I got text values with leading 0's in my worksheet.



Jeffrey wrote:
>
> Is there a way to remove quotation marks from an Excel spreadsheet?
>
> My file has looks like this:
>
> "000151","001","SCREW-5/16-18 X 5/8 HEX CAP","A1"
> "000922","001","SCREW-10-32X1/4 RHM-ZP"
>
> But everything I try it I either get it to import but I loose the leading
> 00's (zero's) or it looks like this.
>
> "000151" "001" "SCREW-5/16-18 X 5/8 HEX CAP" "A1"
> "000922" "001" "SCREW-10-32X1/4 RHM-ZP" "A1"
> "001085" "001" "NUT-3/8-16 HEX" "A1"
>
> How do I get to import and get to look like this?
>
> 000151 001 SCREW-5/16-18 X 5/8 HEX CAP A1
>
> I am using the Wizard in the Excel program.


--

Dave Peterson
Reply With Quote
  #4 (permalink)  
Old 07-05-2008, 06:08 PM
=?Utf-8?B?SmVmZnJleQ==?=
 
Posts: n/a
Re: Remove quotation marks

Thanks that worked for me.
One more thing.
When I do this I get an error box, yellow triangle with a ! in it.
There are a number of items you can chose from, such as, number stored as
text or convert toa number, etc.

All of the numbers in the columns 1 and 2 has this error. How do I get rid
of these errors.

"Dave Peterson" wrote:

> I created a test file (plain old text) with your two lines of data in it.
>
> I called it: C:\test.txt
>
> I opened excel
> I did File|Open|c:\test.txt
> I was shown the text import wizard and I chose:
> Delmited by comma
>
> But I also told excel that each field should be treated as text (not General,
> not a date, not skipped)
>
> I got text values with leading 0's in my worksheet.
>
>
>
> Jeffrey wrote:
> >
> > Is there a way to remove quotation marks from an Excel spreadsheet?
> >
> > My file has looks like this:
> >
> > "000151","001","SCREW-5/16-18 X 5/8 HEX CAP","A1"
> > "000922","001","SCREW-10-32X1/4 RHM-ZP"
> >
> > But everything I try it I either get it to import but I loose the leading
> > 00's (zero's) or it looks like this.
> >
> > "000151" "001" "SCREW-5/16-18 X 5/8 HEX CAP" "A1"
> > "000922" "001" "SCREW-10-32X1/4 RHM-ZP" "A1"
> > "001085" "001" "NUT-3/8-16 HEX" "A1"
> >
> > How do I get to import and get to look like this?
> >
> > 000151 001 SCREW-5/16-18 X 5/8 HEX CAP A1
> >
> > I am using the Wizard in the Excel program.

>
> --
>
> Dave Peterson
>

Reply With Quote
  #5 (permalink)  
Old 07-05-2008, 06:36 PM
=?Utf-8?B?SmVmZnJleQ==?=
 
Posts: n/a
Re: Remove quotation marks

Never mind I found the solution.

"Jeffrey" wrote:

> Thanks that worked for me.
> One more thing.
> When I do this I get an error box, yellow triangle with a ! in it.
> There are a number of items you can chose from, such as, number stored as
> text or convert toa number, etc.
>
> All of the numbers in the columns 1 and 2 has this error. How do I get rid
> of these errors.
>
> "Dave Peterson" wrote:
>
> > I created a test file (plain old text) with your two lines of data in it.
> >
> > I called it: C:\test.txt
> >
> > I opened excel
> > I did File|Open|c:\test.txt
> > I was shown the text import wizard and I chose:
> > Delmited by comma
> >
> > But I also told excel that each field should be treated as text (not General,
> > not a date, not skipped)
> >
> > I got text values with leading 0's in my worksheet.
> >
> >
> >
> > Jeffrey wrote:
> > >
> > > Is there a way to remove quotation marks from an Excel spreadsheet?
> > >
> > > My file has looks like this:
> > >
> > > "000151","001","SCREW-5/16-18 X 5/8 HEX CAP","A1"
> > > "000922","001","SCREW-10-32X1/4 RHM-ZP"
> > >
> > > But everything I try it I either get it to import but I loose the leading
> > > 00's (zero's) or it looks like this.
> > >
> > > "000151" "001" "SCREW-5/16-18 X 5/8 HEX CAP" "A1"
> > > "000922" "001" "SCREW-10-32X1/4 RHM-ZP" "A1"
> > > "001085" "001" "NUT-3/8-16 HEX" "A1"
> > >
> > > How do I get to import and get to look like this?
> > >
> > > 000151 001 SCREW-5/16-18 X 5/8 HEX CAP A1
> > >
> > > I am using the Wizard in the Excel program.

> >
> > --
> >
> > Dave Peterson
> >

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT. The time now is 03:07 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Credit Report | Debt Consolidation | Currency Converter | Internet Advertising | Mortgages



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114