mark hansen
Well-known Member
- Joined
- Mar 6, 2006
- Messages
- 534
- Office Version
- 2016
- Platform
- Windows
I have a csv file from another server. When I open it with Excel (double click or File ->Open) it opens as expected.
The problem is I need to import this file as part of another workbook and read parts of the information with formulas into other worksheets. When I import (Data->From Text) and set for comma separated, it doesn't come in correctly.
One thing I noticed, is the text has quotes around them with a comma in between the ending quote and the beginning quote of the next column. When I import, what MAY BE happening is the end of line isn't being looked at in the same way when opening as a CSV file.
(Option 1)I think I would prefer to have the CSV come into a separate tab of my main workbook and pull the numbers from there. (but that's causing problems so far)
(Option 2)I guess I could have a macro in the main workbook open another workbook that opens the CSV file and have formulas pull numbers from the other workbook.
I prefer Option 1 to make things simpler, any ideas what might be going on to cause the problems with Data->From text steps. if not, I'll go with option 2.
Thanks for any ideas,
Mark
The problem is I need to import this file as part of another workbook and read parts of the information with formulas into other worksheets. When I import (Data->From Text) and set for comma separated, it doesn't come in correctly.
One thing I noticed, is the text has quotes around them with a comma in between the ending quote and the beginning quote of the next column. When I import, what MAY BE happening is the end of line isn't being looked at in the same way when opening as a CSV file.
(Option 1)I think I would prefer to have the CSV come into a separate tab of my main workbook and pull the numbers from there. (but that's causing problems so far)
(Option 2)I guess I could have a macro in the main workbook open another workbook that opens the CSV file and have formulas pull numbers from the other workbook.
I prefer Option 1 to make things simpler, any ideas what might be going on to cause the problems with Data->From text steps. if not, I'll go with option 2.
Thanks for any ideas,
Mark