Forums

General Betting

Welcome to Live View – Take the tour to learn more
Start Tour
There is currently 1 person viewing this thread.
Man of Mystery
16 Jan 10 06:18
Joined:
Date Joined: 22 Apr 03
| Topic/replies: 34 | Blogger: Man of Mystery's blog
I have a contact database in Excel format.

In the phone field is a normal UK phone number. All numbers start with a 0. I need to delete that first number and replace it with 44.

01234567890 will become 441234567890.

It seems pretty simple but I cannot manage it.

Ladies and gentlemen any help would be greatly appreciated.
Pause Switch to Standard View Excel Help Please
Show More
Loading...
Report Aviboyd January 16, 2010 7:00 AM GMT
Ctrl 'f', untick 'entire cell', find '0', replace with '44'.
Report Man of Mystery January 16, 2010 7:13 AM GMT
Thanks Aviboyd. Great minds think alike. I tried that already. But it replaces every 0 in the number with 44.

So 01234567890 becomes 4412345678944 rather than 441234567890. You see my point?

But thanks for taking the trouble to post.
Report Lori January 16, 2010 7:38 AM GMT
I can't remember how they work exactly but google "left" "Right" and "len" functions

I -think- what you want is something like

=right(A1,len(A1)-1)

where right returns all the text at the right hand side of A1 (where your number is, as a string) and len makes sure you get all but the first digit.

you'd need to make this something like ="44"+right(a1,len(a1)-1) to add the 44

this won't be right first time but should be close i think
Report Lori January 16, 2010 7:38 AM GMT
storing the numbers as text not numbers should help too i believe
Report IanP January 16, 2010 7:49 AM GMT
=SUBSTITUTE(A1,"0","44",1)
Report IanP January 16, 2010 7:54 AM GMT
The above edits the first instance of zero. If you have any phone number which doesn't start with zero then it will edit the first zero it finds.
Report Man of Mystery January 16, 2010 8:11 AM GMT
Thanks Lori and Ian.

Ian, where do I put =SUBSTITUTE(A1,"0","44",1)? Sorry, but I am a real novice at this.
Report IanP January 16, 2010 8:16 AM GMT
Insert a column to the right of the phone number.

Copy the formula into the first cell of the new column. You will need to change "A1" to whatever cell if to the left.

Copy the formula down the column.
Report Man of Mystery January 16, 2010 8:35 AM GMT
Thanks Ian. I get ERR508. Any idea?
Report griff January 16, 2010 8:38 AM GMT
right clicck on the cell click on format cell change to numbers that will do it good luck
Report Man of Mystery January 16, 2010 9:07 AM GMT
Thanks guys for all your help but I think this is beyond me.

Would any kind soul edit it for me at http://whylose.com/help/1000.xls please? you will be rewarded in heaven. LOL.

My email john at whylose dot com. The data is publicly available elsewhere so I am not sharing anything I should not.
Report Man of Mystery January 16, 2010 9:11 AM GMT
Hopefully I will be able to use the edited version as a template?
Report IanP January 16, 2010 9:43 AM GMT
Email sent
Report Man of Mystery January 16, 2010 10:04 AM GMT
You are a diamond Ian. Received. If you have a Paypal account I will pop 20 quid over to you. Have a drink on me. Let me know on email. Thanks again mate.
Report IanP January 16, 2010 10:09 AM GMT
I don't want anything for helping you out MOM - donate something to Haiti if you wish.
Report Man of Mystery January 16, 2010 10:13 AM GMT
Thanks mate. Will do.
Post Your Reply
<CTRL+Enter> to submit
Please login to post a reply.

Wonder

Instance ID: 13539
www.betfair.com