+ Reply to Thread
Results 1 to 5 of 5

Dependent Droplist IF selected format phone number accordingly

Hybrid View

  1. #1
    Registered User
    Join Date
    02-11-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    20

    Dependent Droplist IF selected format phone number accordingly

    Hello,

    I have a series of dependent drop lists and a cell which asks for a phone number. I would like if the selection in the previous cell is North America, the format of (111) 111-1111 is chosen. if the user enters the improper format I would like them to be prompt with an error "Improper Format - <Proper Format>", clear contents, and re-select the cell otherwise if valid select the next cell. It would need to strip out the leading 1 incase an international code is entered and also special characters such as "(",")","-","+","_" as well as spaces. The next problem is that it would have to change format to if another selection is chosen. The other two selections are Australia and Europe. Europe is more difficult of a format as the area codes vary in length (if you have a suggestion I will gladly take it) I will be dealing predominantly with Sweden whose area codes even vary. For Australia I would like it to be in the format 011 61 1 1111 1111 where 011 61 will be added even if the user does not enter it (or if not possible prompt with proper format). If you need more clarification please let me know

    The cell asking which continent is G35 and options are "","Australia", "Europe", "North America"
    The cell asking for a phone number is K47
    The next cell on valid response is G50

  2. #2
    Forum Expert Arkadi's Avatar
    Join Date
    02-13-2014
    Location
    Smiths Falls, Ontario, Canada
    MS-Off Ver
    Office 365
    Posts
    5,059

    Re: Dependent Droplist IF selected format phone number accordingly

    UnreadSix,

    Happy to take a look at this too, but: do you intend the proper format to be displayed as a reference for the number entered? do the users enter brackets, spaces, and "-" or only numbers? I won't respond until tonight or tomorrow as I have a pile of work here myself, but any additional info or a sample sheet would be very useful.
    Please help by:

    Marking threads as closed once your issue is resolved. How? The Thread Tools at the top
    Any reputation (*) points appreciated. Not just by me, but by all those helping, so if you found someone's input useful, please take a second to click the * at the bottom left to let them know

    There are 10 kinds of people in this world... those who understand binary, and those who don't.

  3. #3
    Registered User
    Join Date
    02-11-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Dependent Droplist IF selected format phone number accordingly

    Hi Arkadi, The user will enter this number so I do not have sample data. since each user is from a different background I want to avoid them entering in the format incorrectly by doing this I hoped to take the common entries and strip them down to just 10 digits (US/Canada) for example. That is why I wanted to eliminate the characters like +,-,(,),_ and spaces. so even if the person wrote (555) 555-5555 (proper format) the code would strip it to be just 5555555555 and then reformat to (555) 555-5555 I would like it to replace the entered value rather than just display it in that format (I believe that is what format cell/special/phone number does). I also want to avoid the international entry of +1 (555) 555-5555 I suppose I could prompt them that it is incorrect format but would like to make it as quick as possible for the user (if possible). ie. be able to enter in "-" and brackets or simply just numbers. Hope I clarified. I have plenty to work on myself just had a few things I wanted to do with it that I didn't know how. Thanks again.

  4. #4
    Registered User
    Join Date
    02-11-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Dependent Droplist IF selected format phone number accordingly

    Hi Arkadi,

    Curious if you had any progress on this?

  5. #5
    Registered User
    Join Date
    02-11-2014
    Location
    Canada
    MS-Off Ver
    Excel 2010
    Posts
    20

    Re: Dependent Droplist IF selected format phone number accordingly

    Hi Arkadi,

    Curious if you had any progress on this?

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 1
    Last Post: 07-08-2013, 09:42 PM
  2. Format a Phone Number
    By scotfitz in forum Excel General
    Replies: 4
    Last Post: 12-23-2009, 07:01 PM
  3. Replies: 3
    Last Post: 01-26-2009, 07:43 PM
  4. How to format a phone number in Excel
    By tfanatik in forum Excel General
    Replies: 4
    Last Post: 05-12-2006, 12:00 PM
  5. how do I add phone number format as a permanent custom format?
    By frustratedagain in forum Excel General
    Replies: 3
    Last Post: 02-03-2006, 11:52 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1