+ Reply to Thread
Results 1 to 11 of 11

Using Formatted Numbers

  1. #1
    Registered User
    Join Date
    11-29-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    20

    Using Formatted Numbers

    Hi,
    I have made a column Reg Id. which is formatted to 4 Digit No. (when i enter 1 it takes 0001 and 333 it takes 0333)

    but when i select any cell or copy values to diff columns,it copies just the no.i entered and not the whole 4digit no.(while coping it will copy 1 or 333 )
    what should i do to get this 4 digit no. to use in any other sheet/mail merge ?

    (in mail merge,the reg id field is included where i wish to print 4digit no. but it will take the nos and omit the prefix zeros )

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,453

    Re: Using Formatted Numbers

    Try Copy - Paste special - Number formatting

  3. #3
    Registered User
    Join Date
    11-29-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Using Formatted Numbers

    As you can notice in the PIC attached,in formula BAR it show only no. and and not the 4 digit no.
    What should i do so that i will get that 4 digit no.
    Attached Images Attached Images

  4. #4
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,872

    Re: Using Formatted Numbers

    In a case like this, what is shown in the formula bar is the cell's value and not what the cell displays. Sometimes this is a problem when using formatting to get the cell to "display" what you want if it is something different from the cell's value.

    If you want the cell's value to be 0044, you will probably need to enter it as a text string by leading it with an apostrophe '0044
    Or you can use the TEXT() function in another cell to convert the number 44 to the text string '0044 http://office.microsoft.com/en-us/ex...in=HA102752839

    Recognize that changing a number to text like this changes other things, such as sort order, comparisons ("0044" is not equal to 44), and so on.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  5. #5
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Using Formatted Numbers

    Use something like this

    =TEXT(ROW($A1),"0000")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  6. #6
    Registered User
    Join Date
    11-29-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Using Formatted Numbers

    Quote Originally Posted by AlKey View Post
    Use something like this

    =TEXT(ROW($A1),"0000")
    Hi, where should i enter this string ? in cell or data validation..?
    I forget to mention,i already have data validation rule made for this column which prevents me from entering Duplicate values.
    And the column cell are formatted as CUSTOM and type "0000" so that if i enter 2 it takes 0002

  7. #7
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Using Formatted Numbers

    Assume that in column-A you have the values which is showing as Four Digit Numbers.

    When you enter 2 in A2 cell it will display as 0002 because of the Custom Formatting (0000) applied for Column-A cells.

    Just insert a new column in Column-B

    In A2 Cell
    2
    But it will show as 0002 in the cell because of the custom formatting

    In B2 Cell enter the below formula
    =TEXT(A2,"0000")

    Drag it down...

    Refer the Column-B data in your Mailmerge instead of Column-A field.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  8. #8
    Registered User
    Join Date
    11-29-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Using Formatted Numbers

    ok

    So as per your suggestion,i should create new column .
    Is not possible by any trick to avoid this extra column and use the original column as source?

  9. #9
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Using Formatted Numbers

    Refer MrShorty suggestion in Post #4

  10. #10
    Registered User
    Join Date
    11-29-2013
    Location
    India
    MS-Off Ver
    Excel 2007
    Posts
    20

    Re: Using Formatted Numbers

    nopes....

    i will stick to your idea...creating new column..

    btw..whenever i select any cell with value in this new column,i do not see the value in formula bar,but i see formula there..why?

  11. #11
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Using Formatted Numbers

    Yes... Because cells containing formula's will show the result of the formula in cell and the formula in formula bar.

    If you want to convert the formula cells as values, then just select the range of formula cells and press Ctrl+C to copy and press Alt+E+S+V and give Ok which will convert the result of formula cells to values.

+ 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. [SOLVED] Convert all numbers stored as text or custom formatted to numbers &no decimals - 40 sheets
    By synses in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-19-2013, 01:46 AM
  2. [SOLVED] Numbers Not Formatted Correctly
    By aferoz in forum Excel General
    Replies: 3
    Last Post: 06-25-2012, 11:28 AM
  3. some numbers formatted as text
    By peterhw in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2012, 01:59 PM
  4. some numbers formatted as text
    By peterhw in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-09-2012, 01:57 PM
  5. Converting numbers formatted as text to numbers
    By Bill in forum Excel General
    Replies: 1
    Last Post: 07-19-2005, 03:05 PM

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