Conditionally Convert Phone Numbers

ProofReader

New Member
Joined
Aug 22, 2008
Messages
4
G'day! :)

I have a simple spreadsheet which lists phone numbers and addresses. I'd like to be able to convert the phone numbers to an international dialling code in each instance. The problem is that the phone numbers are all entered in differing formats. :rolleyes:

In Australia, the phone formats are as follows:

Country = 61
Area code - varies according to which of the eight states or territories it belongs, but range from 01 to 09. When dialling internationally, the leading 0 is dropped.
Landline phone = eight digits.
Mobile (cell) phone = ten digits all starting with 04. Again, the leading 0 is removed for international dialling.

I have already removed all leading 0s and any other symbols like brackets or dashes.

The phone numbers are all contained in columns B and C. I'd like to do a 'look up' of columns E (State) and G (Country) and base the conversion upon that information.

What I'd like to do is to convert them ALL to 11 digit numbers for international dialling. For example:
Where column E = VIC, column B may contain the number set as a 312345678 or just 12345678 (the initial 3 is used to denote Victoria or VIC).
In this case, I need to convert the number to 61312345678. It need to recognise that VIC's are code is '3' and add it if it's missing. It also needs to add '61' for the country at the beginning, if it's not already there.

I can provide a sample of the various types of numbers which I'm encountering. :-? Unfortunately, it appears that I cannot attach this sample though.
:(

I'm hoping that someone can help me by creating a macro to sort and convert these numbers? I'd like a macro (if possible) because I'd like to use it with other spreadsheets yet to be created. You may, of course, know of a better way of doing this? Hoping that all makes sense! Can you help please?


 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
Something like this?

Excel Workbook
ABCDEF
1NumberStateIntLookup table
2312345678VIC61312345678VIC3
312345678VIC61312345678NSW2
412345678NSW61212345678
Sheet1

Hi Dafan and thanks for your reply. :)

What you've done looks great but ... can it be encapsulated into a macro? I'm pretty useless in Excel
(but am an advanced MS Word user, so understand how macros work and some very basic VBA) and I need to be able to use this solution on other spreadsheets too.

Here's a pic of a sample from the spreadsheet. You'll see that there are all sorts of ways that phone numbers have been inserted (or not, as the case may be :rolleyes: ) and I need to be able to cope with all of them.

Sample1.jpg


With your code, above, would I need to create a new column for the international number or could it just be converted in its original column? Also, can the 'lookup' references (i.e. VIC - 3, NSW - 2, etc.) be included in a macro rather than having an extra column on the spreadsheet itself?

Sorry, I don't mean to sound ungrateful for what you've already done, and I thank you for that, but I'm hoping that this can be coded as a macro. :-?


Any further assistance will be much appreciated.


*******

Peter_SSs, thank you for the welcome and links.

 
Upvote 0
Peter_SSs, thank you for the welcome and links.
No problem. The advantage of using Excel jeanie or Colo's HTML maker is that your sample data can be copied from the board into a sheet for testing. With an image like you have shown, if I wanted to test a solution on it, I would have to type the lot manually - quite a task!
 
Upvote 0
Oh, okay, sorry. :S

I've just downloaded the required add on and will try below to see if it works ...


Sheet1

<table style="font-family: Arial,Arial; font-size: 10pt; background-color: rgb(255, 255, 255); padding-left: 2pt; padding-right: 2pt;" border="1" cellpadding="0" cellspacing="0"> <colgroup><col style="font-weight: bold; width: 30px;"><col style="width: 56px;"><col style="width: 117px;"><col style="width: 92px;"><col style="width: 118px;"><col style="width: 49px;"><col style="width: 114px;"><col style="width: 105px;"></colgroup><tbody><tr style="background-color: rgb(202, 202, 202); text-align: center; font-weight: bold; font-size: 8pt;"><td>
</td><td>A</td><td>B</td><td>C</td><td>D</td><td>E</td><td>F</td><td>G</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">1</td><td style="font-weight: bold; font-size: 8pt;">Id</td><td style="font-weight: bold; font-size: 8pt;">Best Phone</td><td style="font-weight: bold; font-size: 8pt;">Phone2</td><td style="font-weight: bold; font-size: 8pt;">City</td><td style="font-weight: bold; font-size: 8pt;">State</td><td style="font-weight: bold; font-size: 8pt;">Postal Code</td><td style="font-weight: bold; font-size: 8pt;">Country</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">2</td><td style="font-size: 8pt; text-align: right;">1340044</td><td style="font-size: 8pt; text-align: right;">10409203591</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Fremantle</td><td style="font-size: 8pt;">Wa</td><td style="font-size: 8pt; text-align: right;">6959</td><td style="font-weight: bold; font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">3</td><td style="font-size: 8pt; text-align: right;">1423983</td><td style="font-size: 8pt; text-align: right;">893670266</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Perth</td><td style="font-size: 8pt;">WA</td><td style="font-size: 8pt; text-align: right;">6101</td><td style="font-weight: bold; font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">4</td><td style="font-size: 8pt; text-align: right;">1423987</td><td style="font-size: 8pt; text-align: right;">418412548</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Riverwood</td><td style="font-size: 8pt;">NSW</td><td style="font-size: 8pt; text-align: right;">2210</td><td style="font-weight: bold; font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">5</td><td style="font-size: 8pt; text-align: right;">1424005</td><td style="font-size: 8pt; text-align: right;">21684885</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Christchurch</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt; text-align: right;">8001</td><td style="font-size: 8pt;">NZ</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">6</td><td style="font-size: 8pt; text-align: right;">1424015</td><td style="font-size: 8pt; text-align: right;">247587364</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Woodford</td><td style="font-size: 8pt;">NSW</td><td style="font-size: 8pt; text-align: right;">2778</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">7</td><td style="font-size: 8pt; text-align: right;">1424027</td><td style="font-size: 8pt; text-align: right;">410084450</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Perth</td><td style="font-size: 8pt;">WA</td><td style="font-size: 8pt; text-align: right;">6152</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">8</td><td style="font-size: 8pt; text-align: right;">1424035</td><td style="font-size: 8pt; text-align: right;">395128515</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Melbourne</td><td style="font-size: 8pt;">VIC</td><td style="font-size: 8pt; text-align: right;">3167</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">9</td><td style="font-size: 8pt; text-align: right;">1424059</td><td style="font-size: 8pt; text-align: right;">20438214453</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Waverton</td><td style="font-size: 8pt;">NSW</td><td style="font-size: 8pt; text-align: right;">2060</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">10</td><td style="font-size: 8pt; text-align: right;">1424083</td><td style="font-size: 8pt; text-align: right;">610412362647</td><td style="font-size: 8pt; text-align: right;">610412362647</td><td style="font-size: 8pt;">Paddington</td><td style="font-size: 8pt;">NSW</td><td style="font-size: 8pt; text-align: right;">2021</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">11</td><td style="font-size: 8pt; text-align: right;">1424089</td><td style="font-size: 8pt; text-align: right;">447958610210</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Beds</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">LU2 7YF</td><td style="font-size: 8pt;">UK</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">12</td><td style="font-size: 8pt; text-align: right;">1424093</td><td style="font-size: 8pt; text-align: right;">68231426</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Aitutaki</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt; text-align: right;">0</td><td style="font-size: 8pt;">COOK ISLANDS</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">13</td><td style="font-size: 8pt; text-align: right;">1424097</td><td style="font-size: 8pt; text-align: right;">64276138844</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Wellington</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt; text-align: right;">6012</td><td style="font-size: 8pt;">NZ</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">14</td><td style="font-size: 8pt; text-align: right;">1424099</td><td style="font-size: 8pt; text-align: right;">277245506</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Cambridge</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt; text-align: right;">3434</td><td style="font-size: 8pt;">NZ</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">15</td><td style="font-size: 8pt; text-align: right;">1424105</td><td style="font-size: 8pt; text-align: right;">362604504</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Campania</td><td style="font-size: 8pt;">TAS</td><td style="font-size: 8pt; text-align: right;">7026</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">16</td><td style="font-size: 8pt; text-align: right;">1424113</td><td style="font-size: 8pt; text-align: right;">6475332007</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Te Puke.</td><td style="font-size: 8pt;">ACT</td><td style="font-size: 8pt; text-align: right;">8319</td><td style="font-size: 8pt;">NZ</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">17</td><td style="font-size: 8pt; text-align: right;">1424171</td><td style="font-size: 8pt; text-align: right;">75336088</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Te Puke</td><td style="font-size: 8pt;">N/A</td><td style="font-size: 8pt; text-align: right;">3152</td><td style="font-size: 8pt;">NZ</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">18</td><td style="font-size: 8pt; text-align: right;">1424189</td><td style="font-size: 8pt; text-align: right;">93372124</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Watsons Bay</td><td style="font-size: 8pt;">NSW</td><td style="font-size: 8pt; text-align: right;">2030</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">19</td><td style="font-size: 8pt; text-align: right;">1424213</td><td style="font-size: 8pt; text-align: right;">55955181</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Mermaid Beach</td><td style="font-size: 8pt;">QLD</td><td style="font-size: 8pt; text-align: right;">4218</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">20</td><td style="font-size: 8pt; text-align: right;">1424251</td><td style="font-size: 8pt; text-align: right;">416652330</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Melbourne</td><td style="font-size: 8pt;">VIC</td><td style="font-size: 8pt; text-align: right;">3939</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">21</td><td style="font-size: 8pt; text-align: right;">1424255</td><td style="font-size: 8pt; text-align: right;">95246724</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Port kennedy</td><td style="font-size: 8pt;">WA</td><td style="font-size: 8pt; text-align: right;">6172</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">22</td><td style="font-size: 8pt; text-align: right;">1424297</td><td style="font-size: 8pt; text-align: right;">755047848</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Surfers paradise</td><td style="font-size: 8pt;">QLD</td><td style="font-size: 8pt; text-align: right;">4217</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">23</td><td style="font-size: 8pt; text-align: right;">1424309</td><td style="font-size: 8pt;">0425200554Mobile</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Sydney</td><td style="font-size: 8pt;">NSW</td><td style="font-size: 8pt; text-align: right;">2191</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">24</td><td style="font-size: 8pt; text-align: right;">1424315</td><td style="font-size: 8pt; text-align: right;">7795036</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Heatley Townsville</td><td style="font-size: 8pt;">QLD</td><td style="font-size: 8pt; text-align: right;">4814</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">25</td><td style="font-size: 8pt; text-align: right;">1424395</td><td style="font-size: 8pt; text-align: right;">97111037</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Melbourne</td><td style="font-size: 8pt;">VIC</td><td style="font-size: 8pt; text-align: right;">3173</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">26</td><td style="font-size: 8pt; text-align: right;">1424415</td><td style="font-size: 8pt; text-align: right;">0</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Kingsley</td><td style="font-size: 8pt;">WA</td><td style="font-size: 8pt; text-align: right;">6026</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">27</td><td style="font-size: 8pt; text-align: right;">1424473</td><td style="font-size: 8pt;">none</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">ST MARYS</td><td style="font-size: 8pt;">NSW</td><td style="font-size: 8pt; text-align: right;">1790</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">28</td><td style="font-size: 8pt; text-align: right;">1424523</td><td style="font-size: 8pt; text-align: right;">21421079918</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Brisbane</td><td style="font-size: 8pt;">QLD</td><td style="font-size: 8pt; text-align: right;">4068</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">29</td><td style="font-size: 8pt; text-align: right;">1424531</td><td style="font-size: 8pt; text-align: right;">82668950</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Adelaide</td><td style="font-size: 8pt;">SA</td><td style="font-size: 8pt; text-align: right;">5086</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">30</td><td style="font-size: 8pt; text-align: right;">1424537</td><td style="font-size: 8pt; text-align: right;">409592068</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Cairns</td><td style="font-size: 8pt;">QLD</td><td style="font-size: 8pt; text-align: right;">4878</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">31</td><td style="font-size: 8pt; text-align: right;">1424547</td><td style="font-size: 8pt; text-align: right;">6799210574</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Suva</td><td style="font-size: 8pt;">QLD</td><td style="font-size: 8pt; text-align: right;">679</td><td style="font-size: 8pt;">FIJI</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">32</td><td style="font-size: 8pt; text-align: right;">1424623</td><td style="font-size: 8pt; text-align: right;">34174088</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Dunedin</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt; text-align: right;">9220</td><td style="font-size: 8pt;">NZ</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">33</td><td style="font-size: 8pt; text-align: right;">1424631</td><td style="font-size: 8pt; text-align: right;">886321003</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Port Pirie</td><td style="font-size: 8pt;">SA</td><td style="font-size: 8pt; text-align: right;">5540</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">34</td><td style="font-size: 8pt; text-align: right;">1424863</td><td style="font-size: 8pt;">6463569099ext880</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Feilding</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">RD 6</td><td style="font-size: 8pt;">NZ</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">35</td><td style="font-size: 8pt; text-align: right;">1425087</td><td style="font-size: 8pt; text-align: right;">32175284</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Invercargill</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt; text-align: right;">9810</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">36</td><td style="font-size: 8pt; text-align: right;">1425089</td><td style="font-size: 8pt; text-align: right;">405386529</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Adelaide</td><td style="font-size: 8pt;">SA</td><td style="font-size: 8pt; text-align: right;">5014</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">37</td><td style="font-size: 8pt; text-align: right;">1425157</td><td style="font-size: 8pt; text-align: right;">3387774</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">SUVA</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">P.B.BOX 1377,SU</td><td style="font-size: 8pt;">FIJI</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">38</td><td style="font-size: 8pt; text-align: right;">1425163</td><td style="font-size: 8pt; text-align: right;">21433221</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">TE AWAMUTU</td><td style="font-size: 8pt;">N/A</td><td style="font-size: 8pt; text-align: right;">3876</td><td style="font-size: 8pt;">NZ</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">39</td><td style="font-size: 8pt; text-align: right;">1425187</td><td style="font-size: 8pt; text-align: right;">61733786545</td><td style="font-size: 8pt; text-align: right;">61733786545</td><td style="font-size: 8pt;">Chapel Hill</td><td style="font-size: 8pt;">QLD</td><td style="font-size: 8pt; text-align: right;">4068</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">40</td><td style="font-size: 8pt; text-align: right;">1425225</td><td style="font-size: 8pt; text-align: right;">418361728</td><td style="font-size: 8pt; text-align: right;">394394480</td><td style="font-size: 8pt;">Elthan</td><td style="font-size: 8pt;">VIC</td><td style="font-size: 8pt; text-align: right;">3095</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">41</td><td style="font-size: 8pt; text-align: right;">1425245</td><td style="font-size: 8pt; text-align: right;">887118778</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Ferntree Gully</td><td style="font-size: 8pt;">VIC</td><td style="font-size: 8pt; text-align: right;">3156</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">42</td><td style="font-size: 8pt; text-align: right;">1425291</td><td style="font-size: 8pt;">o63774003</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Masterton</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt; text-align: right;">5801</td><td style="font-size: 8pt;">NZ</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">43</td><td style="font-size: 8pt; text-align: right;">1425297</td><td style="font-size: 8pt; text-align: right;">32995779</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">SLACKS CREEK</td><td style="font-size: 8pt;">QLD</td><td style="font-size: 8pt; text-align: right;">4127</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">44</td><td style="font-size: 8pt; text-align: right;">1425329</td><td style="font-size: 8pt; text-align: right;">84476444</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Royal Park</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt; text-align: right;">5014</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">45</td><td style="font-size: 8pt; text-align: right;">1425447</td><td style="font-size: 8pt; text-align: right;">417820569</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Nightcliff</td><td style="font-size: 8pt;">NT</td><td style="font-size: 8pt; text-align: right;">810</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">46</td><td style="font-size: 8pt; text-align: right;">1425467</td><td style="font-size: 8pt; text-align: right;">7843417115</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Dudley</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">dy13qg</td><td style="font-size: 8pt;">UK</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">47</td><td style="font-size: 8pt; text-align: right;">1425513</td><td style="font-size: 8pt; text-align: right;">6793387132</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Samabula</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Not Available</td><td style="font-size: 8pt;">FIJI</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">48</td><td style="font-size: 8pt; text-align: right;">1425525</td><td style="font-size: 8pt;">SilentNumber</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Lithgow</td><td style="font-size: 8pt;">NSW</td><td style="font-size: 8pt; text-align: right;">2790</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">49</td><td style="font-size: 8pt; text-align: right;">1425535</td><td style="font-size: 8pt; text-align: right;">737113301</td><td style="font-size: 8pt; text-align: right;">737113301</td><td style="font-size: 8pt;">BRISBANE</td><td style="font-size: 8pt;">QLD</td><td style="font-size: 8pt; text-align: right;">4109</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">50</td><td style="font-size: 8pt; text-align: right;">1425719</td><td style="font-size: 8pt; text-align: right;">400925536</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Hamlyn terrace</td><td style="font-size: 8pt;">Nsw</td><td style="font-size: 8pt; text-align: right;">2259</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">51</td><td style="font-size: 8pt; text-align: right;">1425721</td><td style="font-size: 8pt; text-align: right;">411075450</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Glenorchy</td><td style="font-size: 8pt;">TAS</td><td style="font-size: 8pt; text-align: right;">7010</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">52</td><td style="font-size: 8pt; text-align: right;">1425837</td><td style="font-size: 8pt; text-align: right;">886440929</td><td style="font-size: 8pt; text-align: right;">409698867</td><td style="font-size: 8pt;">Whyalla</td><td style="font-size: 8pt;">SA</td><td style="font-size: 8pt; text-align: right;">5600</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">53</td><td style="font-size: 8pt; text-align: right;">1426003</td><td style="font-size: 8pt;">NA</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Hervey Bay</td><td style="font-size: 8pt;">QLD</td><td style="font-size: 8pt; text-align: right;">4655</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">54</td><td style="font-size: 8pt; text-align: right;">1426043</td><td style="font-size: 8pt; text-align: right;">3772567</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Perth</td><td style="font-size: 8pt;">WA</td><td style="font-size: 8pt; text-align: right;">6054</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">55</td><td style="font-size: 8pt; text-align: right;">1426045</td><td style="font-size: 8pt; text-align: right;">2078338787</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">London</td><td style="font-size: 8pt;">London</td><td style="font-size: 8pt;">N5 1AB</td><td style="font-size: 8pt;">UK</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">56</td><td style="font-size: 8pt; text-align: right;">1426127</td><td style="font-size: 8pt; text-align: right;">61413996815</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Brunswick west</td><td style="font-size: 8pt;">VIC</td><td style="font-size: 8pt; text-align: right;">3055</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">57</td><td style="font-size: 8pt; text-align: right;">1426151</td><td style="font-size: 8pt; text-align: right;">61882871919</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Elizabeth park</td><td style="font-size: 8pt;">SA</td><td style="font-size: 8pt; text-align: right;">5113</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">58</td><td style="font-size: 8pt; text-align: right;">1426355</td><td style="font-size: 8pt; text-align: right;">63623835</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Deloraine</td><td style="font-size: 8pt;">TAS</td><td style="font-size: 8pt; text-align: right;">7304</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">59</td><td style="font-size: 8pt; text-align: right;">1426503</td><td style="font-size: 8pt; text-align: right;">424936069</td><td style="font-size: 8pt; text-align: right;">287531591</td><td style="font-size: 8pt;">Chiswick</td><td style="font-size: 8pt;">NSW</td><td style="font-size: 8pt; text-align: right;">2046</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">60</td><td style="font-size: 8pt; text-align: right;">1426509</td><td style="font-size: 8pt; text-align: right;">1800838929</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Bray Park</td><td style="font-size: 8pt;">QLD</td><td style="font-size: 8pt; text-align: right;">4500</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">61</td><td style="font-size: 8pt; text-align: right;">1426843</td><td style="font-size: 8pt;">Declined</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Kensington</td><td style="font-size: 8pt;">VIC</td><td style="font-size: 8pt; text-align: right;">3031</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">62</td><td style="font-size: 8pt; text-align: right;">1427005</td><td style="font-size: 8pt; text-align: right;">40548452708825</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Elizabeth North</td><td style="font-size: 8pt;">SA</td><td style="font-size: 8pt; text-align: right;">5113</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">63</td><td style="font-size: 8pt; text-align: right;">1427027</td><td style="font-size: 8pt; text-align: right;">4801234567</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Tempe</td><td style="font-size: 8pt;">Az</td><td style="font-size: 8pt; text-align: right;">85281</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">64</td><td style="font-size: 8pt; text-align: right;">1427037</td><td style="font-size: 8pt; text-align: right;">416113828</td><td style="font-size: 8pt; text-align: right;">738234735</td><td style="font-size: 8pt;">Tingalpa</td><td style="font-size: 8pt;">QLD</td><td style="font-size: 8pt; text-align: right;">4173</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">65</td><td style="font-size: 8pt; text-align: right;">1427045</td><td style="font-size: 8pt; text-align: right;">45665121</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">PETONE</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt; text-align: right;">5012</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">66</td><td style="font-size: 8pt; text-align: right;">1427207</td><td style="font-size: 8pt;">07/53094305</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">CABOOLTURE</td><td style="font-size: 8pt;">QLD</td><td style="font-size: 8pt; text-align: right;">4510</td><td style="font-size: 8pt;">
</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">67</td><td style="font-size: 8pt; text-align: right;">1427213</td><td style="font-size: 8pt; text-align: right;">7069359838</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">Ringgold</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">GA. 30736</td><td style="font-size: 8pt;">USA</td></tr><tr style="height: 15px;"><td style="font-size: 8pt; background-color: rgb(202, 202, 202); text-align: center;">68</td><td style="font-size: 8pt; text-align: right;">1427223</td><td style="font-size: 8pt; text-align: right;">893496958</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">
</td><td style="font-size: 8pt;">
</td></tr></tbody></table>

Excel tables to the web >> Excel Jeanie HTML 4


 
Upvote 0
Something like this?

Excel Workbook
ABCDEF
1NumberStateIntLookup table
2312345678VIC61312345678VIC3
312345678VIC61312345678NSW2
412345678NSW61212345678
Sheet1

Hi again dafan,

Just to let you know that when I copied and pasted this code into a new Excel worksheet, I got a reference error which it won't let me change. :(

Excel Workbook
ABCDEF
1NumberStateIntLookup table
2312345678VIC#REF!VIC3
312345678VIC#REF!NSW2
412345678NSW#REF!
Sheet1



 
Upvote 0

Forum statistics

Threads
1,222,905
Messages
6,168,949
Members
452,227
Latest member
sam1121

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