+ Reply to Thread
Results 1 to 3 of 3

Macro to Reformat Numbers in a Column

  1. #1
    Registered User
    Join Date
    07-18-2007
    Location
    Joliet, Illinois
    Posts
    30

    Macro to Reformat Numbers in a Column

    I have a worksheet that has a column of numbers entered as 1234567. The person that input these numbers should have done this: 123-4-567

    Is there a macro that could do this automatically so I don't have to go into 1150 cells and manually change the format of each of them?

    I thank anyone in advance that could lead me in the right direction.

    D
    Last edited by AlmostAGeek; 10-16-2008 at 07:56 PM.

  2. #2
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464
    Hi,

    A macro isn't necessary. You could use a functions.
    Please Login or Register  to view this content.
    assuming the number always contains 7 digits.

    HTH

  3. #3
    Registered User
    Join Date
    07-18-2007
    Location
    Joliet, Illinois
    Posts
    30
    I knew it had be something simple. I thank you for your expertise and quick reply. You are a time saver!

    I just added a column, used the function in the new column (inserting my P3 for your A1) and it works like a charm. Once complete I will delete the column with the wrong format.

    Thanks again,
    D

+ 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. Problem creating a macro to convert numbers which are stored as text
    By LemonTwist in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-12-2012, 02:28 AM
  2. macro to copy cells beginning from a certain row and reformat
    By docaia in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-21-2008, 07:27 AM
  3. Macro that splits any cell not just the one recorded with the same numbers
    By emj08 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 09-19-2008, 06:11 AM
  4. Column Has Text and Numbers, Need To SUMIF Only Numbers
    By Karleajensar in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-04-2008, 01:27 PM
  5. Making a synonym list
    By julia81 in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 12-29-2007, 03:54 AM

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