Solved

Removing single quotes from spreadsheets exported from MS Access

Posted on 2012-04-09
3
256 Views
Last Modified: 2012-04-09
Hi All,

I need your assistance. I have a number of spreadsheets that have been exported from Access databases. The spreadsheets contains single quotes at the beginning of the text in cell values, so far I have been using the =CLEAN() function, then copying the values of the columns to another column, but lately most of the columns in the spreadsheets contain the single quote.

Can I remove the single quotes from the spreadsheets that are in the spreadsheets due to Access exporting issues using a macro rather than using =CLEAN()  for each column???

I tried Find & Replace but it doesn't work. Somehow it doesn't pick up the single quote from Access.

Thanks in advance.
0
Comment
Question by:jose11au
3 Comments
 
LVL 17

Expert Comment

by:Kent Dyer
ID: 37826337
what about looking up Char(34) and or Char(39)..

http://asciitable.com

That may get what you are looking for.

Kent
0
 
LVL 39

Accepted Solution

by:
Pratima Pharande earned 500 total points
ID: 37826348
CLEAN is an Excel function that removes all non printable characters frm text. In my example "=Clean(A1)" this would remove any single quotations preceding the text in cell A1.


Here is what you should try:

Insert a new Worksheet and then put:=TRIM(Sheet1!A1) Of course you would substitute "Sheet1" with your sheet name.

Copy this down rows and across columns until you have referenced all your cells that have text with the single quote preceding them.

Now highlight your entire sheet (grey square in the corner of "A" and "1") then push Ctrl+C (to copy), now go to Edit>PasteSpecial-Values-OK. This will replace all formulas with their values.


refer
http://www.mrexcel.com/archive/Edit/7738.html
0
 

Author Comment

by:jose11au
ID: 37826370
Thanks guys. pratima_mcs your solutions works great!!

Thanks
0

Featured Post

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A little background as to how I came to I design this code: Around 5 years ago I designed an add-in that formatted Excel files to a corporate standard, applying different cell colours and font type depending on whether the cells contained inputs,…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question