Dependent Droplist IF Selected Format Phone Number Accordingly

Feb 18, 2014

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. 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).

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

View 4 Replies


ADVERTISEMENT

Format Phone Number In VBA?

Nov 14, 2012

I'm looking to see is if there is a way to modify this code to format a phone number as (999) 999-9999. Right now it formats phone numbers as 999-999-9999.

VB:
Sub FormatPhoneNumber()
'Purpose: Formats a telephone number as 999-999-9999.
'In cases where more than one phone number is enter in

[Code].....

View 5 Replies View Related

Custom Phone Number Format

Mar 3, 2009

I am looking for a custom number format for phone numbers that will allow extensions to be typed in. I am trued using the standard phone format [

View 12 Replies View Related

Excel 2007 :: Converting Phone Number Format?

Aug 27, 2012

I have phone number in phone format which looks like this: (123) 456-7890 which needs to be converted to: 1234567890.

I tried but unable to do so.

View 3 Replies View Related

Comments In Dropdown Box Dependent On Number Selected In Adjacent Cell

Jul 8, 2013

I have been asked by my supervisor to make a performance review template a little bit more user friendly.

Basically what I have is a drop own list in cells in one column (various cells with the same drop down menu) that you select from either 0-10 in a drop down box.

I have another cell which I want to have a drop down box with text comments that you select from when. Only problem is the comments different dependent on the ranking score you give a person (the number selection in the previously mentioned cell from 0-10). So if you have a score between 9-10 in the cell then the comments box will give you certain comments to choose, 7-8 different comments and so on and so forth.

View 1 Replies View Related

Change The Selected Phone From The Listbox

Dec 1, 2006

i am making a phone company site on excel, with vba, for my college project, i need to know how to make it so wen i change the selected phone from the listbox, 2 show the image of the phone in the image box, from my files.

View 9 Replies View Related

Phone Format - Change Value

Jan 17, 2008

PHONE formatting. Is there a way to create a macro to format the VALUE of the phone to be either (XXX) XXX-XXX or XXX-XXX-XXXX ? I obviously can get it to look like this, but the value is just XXXXXXXXXX.

View 13 Replies View Related

Columns To Phone Numbers Format

Feb 1, 2010

Just got an answer to my phone number problem of converting two columns of numbers
to a single columns with the form XXX-XXXXXXX. Used =A1 & "-" & B1.

Works perfectly one one spread sheet and not at all in another.

When I enter the formula and hit return, instead of the correct result, all I get is the formula.

The format of the columns is the same on both spread sheets.

View 4 Replies View Related

Format Existing Phone Numbers

Apr 25, 2013

Formatting existing phone number. I want to remove first 2 digit from the column with 11 digit phone number ?

View 1 Replies View Related

Custom Format For Phone Numbers

Oct 23, 2007

I'm trying to format some cells, its some phone numbers but not in the traditional format (###) ###-####.

I need to get them to appear like this ###.###.####,

View 4 Replies View Related

Modifying A Format Cell :: Phone Numbers

Oct 22, 2008

I'm trying to change a
418,3315555
format cell to a regular phone number cell
418-331-5555

View 9 Replies View Related

Phone Number Macro

Dec 11, 2007

I often have lists of badly formated phone numbers. I have created a number of macros that are quite good, but there is room for improvement.

Step 1:

Delete non numeric characters. This is a weak point - at the moment it is not working well (it removes characters from the entire sheet, rather than selected cells)

View 14 Replies View Related

Phone Number Formatting

Jun 22, 2006

I have a cell that NEEDS to be of the following format:

#### ######

I have set this up under formatting, custom... and when I type a number like this ...

01304999999 I get the result 01304 999999 PERFECT!

Unfortunately if I type this....

01304 999 999 I get this result 01304 999 999 which ain't good as it mucks up my Macro, whih incidentally is this...

appWD.ActiveDocument.Bookmarks("PMTelephone").Range = Format(strPMTelephone, "0#### ######")

View 10 Replies View Related

Autofilter Phone Number

Jul 13, 2007

I am building a contact database in excel. I am using a userform to search, by autofilter, through several thousand contacts by any one of 7 criteria(account name, postal code,, account number, etc.). The only criteria that I cannot get to work is the phone number.

The numbers are entered in a ten digit string and the cells are formatted as phone numbers. i.e: 8005551212 = (800) 555-1212. When I run the search by the 10 digit number, the autofilter hides all results.

View 9 Replies View Related

Phone Number Formatting ..

Jul 7, 2009

I have a list of telephone numbers... in every format you can imagine

123.456.7892
(123) 456 - 7892
1234567892
123-456-7892
etc...

is there any way to extract JUST the numbers...

so the format all phone numbers would take would be:

1234567892

?

View 9 Replies View Related

Dial Phone Number

Jul 20, 2007

I'd like to dial phone numbers directly from a specific column on a worksheet just by doubleclicking on them.

I found this code which I am trying to adapt to my use.

The hardware part is setup already (modem, phone line, etc.)

Private Sub Dial(Number)
Dim DialString As String
Dim FromModem As String
Dim dummy As Integer

' AT is the Hayes compatible ATTENTION command and is required to send commands to the modem.
' DT means "Dial Tone." The Dial command uses touch tones, as opposed to pulse (DP = Dial Pulse).
' Numbers is the phone number being dialed.
' A semicolon tells the modem to return to command mode after dialing (important).
' A carriage return, vbCr, is required when sending commands to the modem.
DialString = "ATDT" + Number + ";" + vbCr

I am getting an error message when I doubleclick that says :Runtime Error 424 , Object

Required and then I'm taken to the code line that is in Bold Yellow. Dealing with Comm

Ports is too much for me. I only know that my modem is in Com Port 4. If I'm told what to

View 9 Replies View Related

Cleaning Up Phone Number Lists?

Jun 22, 2014

I have an old customer list maintained by my company's previous owner in excel format that mostly stored numbers ###-#### format, but also some in ###-###-#### format.

My new list has always been maintained with numbers in (###) ###-#### format.

I have merged these two lists in a new excel file have begun the tedious process of cleaning up duplicates and bad data.

I have used conditional formatting to highlight duplicate numbers in the appropriate columns (L, M, N, O) in this case. However, it does't find matches in the other formats or perhaps the number with the old area code. I know the area code change could lead to false positives, but they should be minimal as this is a small business with mostly local customers. So what I'd like to find out is a formula for conditional formatting that will compare the last 8 characters in each cell (###-####) so as to eliminate issues of missing or different area codes. I would like it to check all of the columns for duplicate numbers not just within each column or within each row individually.

Also separate but related if possible to highlight a different color any cells with data not in any of these formats or if not in (###) ###-#### format if it's too much for all the formats.

View 8 Replies View Related

2007 Phone Number Formatting

Feb 25, 2009

I need to reformat phone numbers in Excel, and I am having trouble doing so. I do not have VBA experience, but I am somewhat familiar with functions in Excel. I need to go from 555-555-5555 to (555) 555-5555

View 4 Replies View Related

Seperate Email From Phone Number

Jul 30, 2009

I have a list that i copies from the web which was pasted in this format in 1 cell

(214) 880-4000lee_ainslie@maverickcap.com


i wanted to seperate the email into its own cell, how can i write a macro that will take anything from the right of the last number and move it into its own cell?

View 9 Replies View Related

Separating Name And Address Phone Number With Odd Delimiter?

Mar 18, 2013

I have the following text, in which I need separated into three columns.

Column A) Company Name
Column B) Address
Column C) Phone Number

I was thinking perhaps I could replace "-------" to just one "-" and use that delimiter to separate the phone number.

Then Use *** Company Name Here *** --> *Number Variable* and filter the rest..

But I don't see it being able to work.Here is the text I'm looking to format (Mind you there is about 8,000 Records.
And, it's all formatted like below. (Company Name, phone number being on different lines and phone number being separated by dash's

[Code].....

View 8 Replies View Related

Comparing A Phone Number To An Allowed List

Feb 20, 2007

I have our company telephone accounts and im trying to highlight any numbers that are not on our approved dialling list. What I would like to happen (ideally) would be for a formula to look at the cell next to it and compare it with the approved numbers list, if it doesn’t appear on the list then it would do something to let me know, like put a big red X in the cell (if it could make me a cup of Tea instead that would be better).

View 9 Replies View Related

Extracting Phone Number Out Of String Of Text?

Apr 30, 2013

Is there a way to extract a phone number out of a string of text. The phone number will always be expressed the same way (eight digits seperated by a space half way through) - 9999 9999. But the text before and after the number is random. Is there a macro to do this on a large scale? The method needs to be applied to hundreds of these strings, each on a new line.

An example of the string of text with the phone number underlined:

Alesdro 0 63PnantCey4281 5919 Aledio daSisaon' Brglry

View 7 Replies View Related

Adding A Zero At The Beginning Of An INTL Phone Number

Apr 25, 2007

I have a very long list of international phone numbers in a .csv format that I need to put a zero in front of each one. We are doing an international autodialer campaign for an upcoming event and need the zeros at the beginning to pay for the call. How do you get around Excel not allowing a zero at the front of a number and the .csv format not allowing you to save certain formats? I've been searching the archived posts for a hour now and can't find anything on this!

Here is an example

1.14478E+13
1.1448E+13
1.14417E+13
1.14421E+13
1.14421E+13
1.1448E+13

View 9 Replies View Related

How To Link Droplist Options With Graphs

Jun 26, 2009

I am working on a project that people can use for documenting their actions at work.

I would like to know how after you produce a dropdown list of options, when a person selects a choice, it will add a numerical value of '1' on a graph.

For example:

What is your favourite colour?

droplist options (red, green, blue)

[person selects red]

-> on a graph next to it, the bar for red increases by 1, while green and blue remains at 0.

The droplist will automatically reset after every selection, awaiting retabulation.

PS. Ideally, I would have a button next to it saying "add", so after the option is chosen, the person would click on the button to add the increase on the graph.

View 9 Replies View Related

Remove Parenthesis From Phone Number And Commas From Figures

May 28, 2014

We have a spreadsheet of our customer's info, to send to our collection agency; when we export it puts parenthesis around the area code and adds a hyphen in the number.

Also it puts commas in the figures. And I need the slashes gone from the date - is there a simple way to do this?

I tried formatting but it doesn't take out the () or ,

View 9 Replies View Related

Excel 2010 :: Formatting As Phone Number From Text?

Jan 13, 2014

I am trying to format a cell (in Excel 2010) as a phone number. The problemis that the data comes over from our download as text. Is there an easier way then using the 'SUBSTITUTE' function to change format to a true phone number (so that we can mail merge into WORD)? Since it is extracted out as a text, using the 'phone number' format (under special) will not work. Using the 'SUBSTITUTE' formula to remove the parenthesis', the dash and the space work but is cumbersome.

Below is an example of the text format that is being extracted: (706) 378-7585

View 1 Replies View Related

Displaying Messages Dependent On Format?

Mar 22, 2012

I'm trying to create a more user friendly (and easily updated) gantt chart for marketing campaigns running throughout the year. The difficulty is that we have approximately 100 products and each product can have anything up to 20 campaigns per year (never overlap, though, fortunately).

Campaign data is on one row per product in columns B:CC (each campaign consists of start date, end date, name and volume) but these are hidden from the user. The conditionally formatted chart runs from CD2:QD108 and is predominantly based on the start and end dates.

When any coloured cell is selected I want the relevant campaign name to be displayed, like a data validation message.

View 3 Replies View Related

Excel 2010 :: How To Separate Text From A Phone Number In One Cell

Jan 11, 2014

I have a 2010 version of MS Excel. I have roughly 10000 cells that I need to separate into two columns from one cell.

Here is an example of one cell "John Smith 888-8888".

View 14 Replies View Related

Excel 2007 :: Calendar With Hide / Unhide VBA Droplist

Jun 17, 2013

Excel 2007.

I created an excel Calendar that has columns for months and weeks, and rows for hours of the day.

I have two drop lists one contains months, and one contains weeks.

Basically if you choose august from the first drop down list, all the rest of the columns that are not August disappear, and the sheet only shows august.

The second dropdown selects the week. If you choose week 1, it shows week 1 of this particular month. This second drop down is what I do not know how to make work.

This is the VBA code i used.

Private Sub ComboBox2_Change()
Select Case ComboBox2.Text
Case "May"
Range("All").EntireColumn.Hidden = True
Range("May").EntireColumn.Hidden = False

[Code] ......

I do not know how to make the code or choose the categories so that It only shows the week of the month chosen in the first column. Will I have to name each and every group of columns for each and every month as May - Week 1, May - Week 2...... June - Week 1, June - Week 2, etc... or is this a way around it?

View 7 Replies View Related

Input Allocation Percentage Dependent On Number Of Variables

May 15, 2014

On the attached sheet in column X, I am trying to input the Allocation percentage dependent on a number of variables:

Type (Bar, Blank, Coil, Sheet, Special)
Sub Fam Code (2A02, BC02-05, BC99, BZ99)
Sup Category (Arcelor, Independent, Tata/ Corus)

The allocation percentage is based on the below; anything outside of this should result in "Other".

Sheet (BC02/03/04) A=40%, T=40% & I=20%
Coil (BC02 & BC03) A=40%, T=40% & I=20%
Coil (BC04) A=30%, T=50% & I=20%

Example 1:
Type - Sheet & Coil
Sup Category - Independent
Result 20%

Example 2:
Type - Coil
Sup Category - Tata/ Corus
Sub Fam Code - BC04
Result 50%

Example 3:
Type - Coil
Sup Category - Arcelor
Sub Fam Code - BC04
Result 30%

View 1 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved