L Lohith New Member Feb 10, 2014 #1 Can anyone tell me how to create a validation in excel for phone number of format like 1. '+46 12345678 2. '+46 12345678 #123 or so. Yes it should take ', numbers, space and #. It should not take any letters.
Can anyone tell me how to create a validation in excel for phone number of format like 1. '+46 12345678 2. '+46 12345678 #123 or so. Yes it should take ', numbers, space and #. It should not take any letters.
Xiq Active Member Feb 10, 2014 #2 Hi Lohith, Try this: Code: =ISNUMBER(--MID(SUBSTITUTE(A1," ",""),2,10))
oldchippy Active Member Feb 10, 2014 #3 @Lohith The formula doesn't appear to work, try '+46 12345678 # Lohith It should not take any letters Click to expand...
@Lohith The formula doesn't appear to work, try '+46 12345678 # Lohith It should not take any letters Click to expand...
Xiq Active Member Feb 10, 2014 #4 Well, the rules are a bit fuzzy... does it need to check if it has a 10 digit? The "#123" matching with the 3-5 digits? More rules plz
Well, the rules are a bit fuzzy... does it need to check if it has a 10 digit? The "#123" matching with the 3-5 digits? More rules plz
AIM Member Feb 10, 2014 #5 Hi Lohith, Try this: Code: =ISNUMBER(VALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1," ",""),"+",""),"#",""))) Regards!!
Hi Lohith, Try this: Code: =ISNUMBER(VALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A1," ",""),"+",""),"#",""))) Regards!!
N NARAYANK991 Excel Ninja Feb 10, 2014 #6 Hi Lohith , With your coding skills , wouldn't RegExp be an ideal way to do it ? Narayan