Web Query extracting phone numbers as formulas

cdchapman

Board Regular
Joined
Dec 30, 2010
Messages
112
Hello,

I have a web query that extracts data to a worksheet. Part of this data contains phone numbers which could be in any international format. What seems to be happening is that if the phone number contains any operator sign (+, - etc), Excel seems to be converting this data to a formula and then displaying the result of the formula rather than the actual data.

For example if the phone number on the website shows as 12-0-10-3-865-865, the data is shown as -1731 rather than 12-0-10-3-865-865. This also seems to happen if there is a '+' at the beginning of the phone number.

Is there an option in web queries to import this data 'as is' rather than converting it to a formula?
 

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
VoG

Thanks for the tip, it seems to be working fine now after formatting the whole column containing the web query as text. Funny though, I'm sure I formatted the phone number cell as text before, but it seems the answer was to format the whole column.

Anyway, thanks again for your help - much appreciated.
 
Upvote 0

Forum statistics

Threads
1,217,132
Messages
6,134,829
Members
449,890
Latest member
xpat

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