Delimiters within a field ...

jeffd2651

New Member
Joined
Mar 3, 2020
Messages
2
Office Version
  1. 2013
Platform
  1. Windows
  2. Web
This may be a silly question but as a relative novice to spreadsheets I'm having a bit of a problem.
I have a spreadsheet which I need to save as a .csv file so that I can upload it to an online application ... but the online application requires the .csv to use commas (,) as the field delimiters.
In order to achieve this and retain the continuity within the address fields, I've changed the commas within the postal address data to hyphens (-) ... and that did the trick ... everything uploaded OK.
However, now I have one small issue; where people are using double barrelled names (for example, Jones-Wilkins as their surname) or if there is a negative value in one of the fields (i.e. -0.1) ... how do I stop the hyphen within each field as being read as a delimiter ????

Many thanks
 

Excel Facts

What is the last column in Excel?
Excel columns run from A to Z, AA to AZ, AAA to XFD. The last column is XFD.
There isn't going to be a realistic way to distinguish between hyphens of different purposes, perhaps a better idea would be to replace the address commas with semicolons or underscores?

If, by chance you left a space after each hyphen that you used to replace a comma, while pre-existing hyphens did not have a space, then you could use that to aid replacing "- " with "; " but other than that, I don't think that you will have any success. As a delimiter you can only use a single character, not a pair.
 
Upvote 0
There isn't going to be a realistic way to distinguish between hyphens of different purposes, perhaps a better idea would be to replace the address commas with semicolons or underscores?

If, by chance you left a space after each hyphen that you used to replace a comma, while pre-existing hyphens did not have a space, then you could use that to aid replacing "- " with "; " but other than that, I don't think that you will have any success. As a delimiter you can only use a single character, not a pair.
Thanks
 
Upvote 0

Forum statistics

Threads
1,214,915
Messages
6,122,212
Members
449,074
Latest member
cancansova

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