Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to keep number formats when you "hard return" in a single

Featured Replies

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:

5551234567
9875554321

which would automatically format to:

(555) 123-4567
(987) 555-4321

The 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 by kbdavis

  • 2 weeks later...

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

Once 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". :unsure:

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

Say that you have:

A1 Name

B1 Surname

C1 Telephones

A2 John

B2 Doe

C2 =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 5551234567

Z2 9875554321

jaclaz

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.