cvs file import that has currency with comma

everwhat

Board Regular
Joined
Jul 23, 2002
Messages
189
How do I import csv file into access when I have a field that has currency with commas?
When I try importing the file, it separate the comma in the amount field that has dollars into two fields
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
The problem with importing text files, like CSV, into Access is that you need to tell it what the delimiter is, and if there are any text qualifiers (text qualifiers, such as double quotes tell Access that anything between them is literal data, and not to be treated as a delimiter). In CSV files, any commas that aren't between text qualifiers will be treated as delimiters.

So you will either need to have the comma removed before importing, or enclose those values with commas between text qualifiers, so that Access knows that the comma is literal data and not a text qualifier (i.e. "$100,000")

Your best bet would probably be to go back to the source that is creating the CSV file, and have it export the values without commas in them (usually as simple as changing the format of the field it is exporting).
 
Upvote 0

Forum statistics

Threads
1,224,590
Messages
6,179,756
Members
452,940
Latest member
rootytrip

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