kbdavis Posted April 27, 2013 Posted April 27, 2013 (edited) I am using excel 2010, and was wondering if it is possible to create a custom format for phone #'s in excel that will allow me to put two phone numbers in a single cell, separated by a "hard enter" (ALT + ENTER), thus formatting two entirely separate phone numbers.Example:55512345679875554321 which would automatically format to:(555) 123-4567(987) 555-4321The code block above represents one single cell.### edited to show reasoning ###I am trying to automatically sort a bunch of information alphabetically, which is why I can only use one, single cell.. Edited April 27, 2013 by kbdavis
jaclaz Posted May 10, 2013 Posted May 10, 2013 I don't think there is a way, if not by using a VBA function.Something *like*:http://www.mrexcel.com/forum/excel-questions/342753-insert-alt-enter-into-cell-column-defined-comma-counted.htmlOnce said that, the reasoning:### edited to show reasoning ### I am trying to automatically sort a bunch of information alphabetically, which is why I can only use one, single cell..may not be "exahaustive enough". Why not using on the same rows more columns, one for each telephone number?Those could be the "rightmost" columns (possibly also hidden or "closed") and you could have as last right column of the area you print (or whatever) something with a formula like:http://www.mrexcel.com/forum/excel-questions/298732-formula-insert-alt-enter-into-cell.htmlSay that you have:A1 NameB1 SurnameC1 TelephonesA2 JohnB2 DoeC2 =TEXT(Y2;"(000) 000-0000")&CHAR(10)&TEXT(Z2;"(000) 000-0000")<- this will result as the phone numbers on two lines and formatted as you like.Y2 5551234567Z2 9875554321jaclaz
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now