Jump to content

I Give Up


skippybangkok

Recommended Posts

Office uses a different mail system, so export my contacts as a CSV file, and try to import to Outlook 2007. The import works fine, but my numbers are stored with + infront ( i.e. +66 ) so when I call from anywhere, no need to fiddle country specific dialing codes.

problem is a +66.... gets imported as just 66...........

tried every triuck in the book, exporting as excel 2003 version, access database etc etc............

advice aprpeciated.

Link to comment
Share on other sites


Just put a "+" in the cell before the phone numbers. In the cell after the numbers, or a cell of your choice type "=+ (the cell with the plus sign)& cell with the phone number.

The cell should look like =c1&c4 which should give you the text +66.....

TheWalkingMan

Link to comment
Share on other sites

  • 2 weeks later...

Well this is where it gets weired......... there is a "+" infront of the number.

the only number it got right was +66 xxx yyyy ( with spaces - obviously recognizes it as text.) other numbers in spreadsheet which are lsited as i.e. '+66xxxyyyy get imported as 66xxxyyyy

Link to comment
Share on other sites

Had exactly this issue yesterday making a custom script to export a database.

Found that both php and excel were deleting my leading zero, the same as your plus.

The solution I developed was as you mentioned above - to put a space in the numbers. (I did it after 5 characters which displays nicely)

Unfortunately I did this in PHP rather than excel so don't have an exact solution for you but if you aim on these lines it should work.

The problem is that csv files don't store data types so excel instantly converts it based on a guess when opening and discards information that it deems irrelevent.

This is why even turning the data type to text fails to make a difference.

Link to comment
Share on other sites

If your exported CSV is correct and contains the + when you import it into excel you can set the format of that column to text.

By the way what system are you using at work? It's odd there isn't a tool for the synchronization of contacts, calendar, notes etc.

Link to comment
Share on other sites

The problem is that the field is interpreted as number. Therefore the + marks a positive value/number and hence is redundant and is removed.

CSV usually encloses text values in quotes, e.g. "+66893435". When imported this will be interpreted as text and the plus will not be removed.

When adding one or more spaces in between (some of) the digits then this is no longer a 'number' in the technical term - numbers don't contain spaces or characters. The export will no longer detect the field as number and put it in quotes when writing to the csv files.

I think the Excel importer allows overriding the format during import.

EDIT: That does not seem to be part of the Import Wizard. But as GmB and Crossy already pointed out, if you can get the data into Excel with the plus, you can then mark the column as text (overriding the default detection)

You can then re-export the list, and the phone numbers should then be enclosed in quotes.

One more thing: Try opening the csv file in a text editor (Notepad or other) and replace +66 with "+66 (Use Find/Replace) - I think that the quotes don't have to be necessarily closed at the end to be recognized as text, but this depends on the software used.

welo

Edited by welo
Link to comment
Share on other sites

Exactly... I believe when importing a CSV you can specify those fields as TEXT, not numbers. Then the + and leading 0 would get preserved. Perfectly obvious to a programmer :D

In case the importer doesn't allow it, it might just be the cell format - set it to text and the +s might just re-appear.

If that fails, I'd just do a search and replace with a text editor, replace all +66 with $PLUS$66, then once it's imported, replace all $PLUS$ with +.

Edited by nikster
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.








×
×
  • Create New...