Formatting cells after importing from Access

Maria T. Rycyk

New Member
Joined
Feb 19, 2002
Messages
1
I exported a query from MS Access into MS Excel and now I can not format the numbers. The worksheet is not protected.
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Most likely your numbers were imported as text representations of numbers (e.g., "10", "3", etc.). Number formatting won't work with text. If you can't fix your query to produce numbers you can select your values, and choose the Data | Text to Columns... menu command to convert them. If your query is producing numbers then it may be that the range housing these numbers was initially formatted as Text. Now that you've changed the formatting the process above will respect the new format and convert the values. Happy computing!! :)
This message was edited by Mark W. on 2002-02-20 15:48
 
Upvote 0
You can also try placing a 1 in any cell (even on another worksheet). Copy that cell. Select the *bad* number cells. Hit Edit-Paste special-Multiply. This multiplies the number by 1, which forces Excel to see those values as numbers.

:)
 
Upvote 0
Maria,

Use "Dreamboat's" suggestion, but do it in Access. In other words, modify your query to perform the "conversion" when you run your query.

For example, if the offending field is called "Quantity" then modify your query like this:

Qty: Quantity * 1

In this way you don't have to constantly do this conversion in Excel.


enjoy

Bariloche
 
Upvote 0

Forum statistics

Threads
1,213,482
Messages
6,113,908
Members
448,532
Latest member
9Kimo3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top