I'm trying to force UK telephone numbers to display correctly. All are 11 digits, but there are 3-digit, 4-digit and 5-digit area codes, and this affects subsequent formatting. There are 3 main ways of displaying phone numbers:
- 020 **** ****
- 01** *** ****
- 01*** ******
I think it may be an IF statement that will do the trick, along the lines of (with apologies for lack of syntax):
{IF <CELL> starts "02", display format *** **** ****} OR {IF <CELL> starts "0121","0131","0141","0151" (etc), display format **** *** ****} OR {ELSE display format ***** ******}
Is this possible in Excel?
Thank you!
Bookmarks