Fixing inconsistently formatted Australian mobile numbers… in excel! ๐Ÿ˜Ž

Here is the excel formula:

=IF(LEFT(M2,1)="0", "+61"&RIGHT(M2,LEN(M2)-1), IF(LEFT(M2,3)="+61", M2, "+61"&M2))

This formula checks if the first character of cell M2 is 0. If it is, it concatenates โ€œ+61โ€ with the rest of the characters in M2 except the first one. If not, it checks if the first three characters of cell M2 are โ€œ+61โ€. If they are, it returns M2. If not, it concatenates โ€œ+61โ€ with M2.

Hope it helps! ๐Ÿ˜€


Posted

in

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *