Leading Zeros in Zip Code

I frequently export address information from a database to a tab-delimited text file and then import it into Numbers. However, some zip codes have leading zeros (i.e., "00644"). When I import this file into Numbers the zip codes with leading zeros lose their zeros (i.e., the field looks like ... "644").
If I format the field after the import as "Text," it doesn't resolve the problem.
How do I retain these zeros?

briegull wrote:
Yvan only discusses Apple products but I look for the best, cheapest solution I can find. In this case it's the free NeoOffice (I would guess Open Office would be the same).
I do what we are supposed to do on this forum.
excerprt from Terms of Use:
+*What is Apple Discussions and how can it help me?*+
+Apple Discussions is a user-to-user support forum where experts and other Apple product users get together to discuss Apple products.+
Why being able to format zip codes (when probably a quarter of the US population has a zip code that starts with a leading zero)
As 0 is one digit among ten, my guess is that the real percentage is about 10%
is considered beyond the "eighty percent" rule that Yvan cites often, I don't understand, but the solutions he proposes aren't very realistic for spreadsheets created frequently.
The given soluce may be "not realistic" but it is used since 1990 by AppleWorks's users.
But a Numbers's user may refuse to apply the given workarounds and wait for enhancements.
For some of them he will have to wait until iWork'09, for others for iWork'10 …
I think that helpers are here to give workarounds for today, not to give false hopes.
Here is an excerpt of Apple Human Interface Guidelines
+Apply the 80 Percent Solution+
+During the design process, if you discover problems with your product design, you might consider applying the 80 percent solution‚ that is, designing your software to meet the needs of at least 80 percent of your users. This type of design typically favors simpler, more elegant approaches to problems.+
+If you try to design for the 20 percent of your target audience who are power users, your design may not be usable by the other 80 percent of users. Even though that smaller group of power users is likely to have good ideas for features, the majority of your user base may not think in the same way. Involving a broad range of users in your design process can help you find the 80 percent solution.+
Yvan KOENIG (from FRANCE mardi 19 février 2008 14:54:36)

Similar Messages

  • How can I keep the leading zero in zip codes from disappearing in Numbers spreadsheet?

    I have a spreadsheet with addresses, and the leading 0 of the zip codes (thanks New Jersey) keeps disappearing... How do I correct this?

    Penny,
    It's easy for 5-digit ZIP codes to use the Number System format. Set to Base 10 and 5 places. Part of the goodness of this approach is that if you have already lost the zeros to the Automatic Format, this will reconstitute them.
    ZIP 5 plus 4 codes are not a problem because the dash in the middle causes a default to Text.
    Jerry

  • Leading zeros for zip codes in Numbers

    I couldn't find an answer for this question but finally figured it out so wanted to share. Here's how I got the zeros to show in my zip code column:
    You can make a custom cell format from the cells palette. You have to hide the separator and add a digit using the Integers bubble. Then choose show zeros for unused digits.
    Then apply this format to the entire zip code column in your doc.

    I was having the same problem. You pointed me in the right direction but in 09 the prompts are slightly different.. Hilight the column. In the cell inspector, cell format, choose NUMERICAL SYSTEM and set the number of places to five.
    It should now look right but before you save it, create a new column and format it as above into TEXT. Then copy the one you've fixed, and paste it into the new text column. This should save fine as cvs in any event, as well as numbers.

  • Leading zeros in part code creation

    Hi Gurus,
    I had created onem material code 012345 in Oracle and transferred to SAP. In SAP it showing the material code is 12345.
    But i need the same material code 012345 in SAP also. Is there any method to get the leading zero for the matrila code.
    I want SAP to display 012345 and NOT 000000000012345.
    Pls help me.
    Regards,
    Kumar

    Kumar,
    I would suggest you to look into other forums - most likely in the SDN community. I'm not sure how many programmers are on this forum. I expect most people here are project managers, business process owners, architects, etc. While ASAP touches on how to manage the programming it does not go into the weeds on how to actually code and what function modules or services to use for this type of problem.
    Jan

  • Leading Zero in BAR Code - IS Retail

    Hi There,
    Using the tcode mm43 for an Article when I look for EAN (Bar Code ) then I can see leading zero in the screen eg.05010928072244 but whn I look  in the table MEAN-EAN11 it stores only  5010928072244. And in the Zreports also it is showing without leading zero . From where the leading zero comming in the mm43 screen ??
    Any idea ?  I will appreciate your help .
    Cheers ..
    Sunanda

    Hi Phani ,
    Thank you very much for your prompt reply !! Now I understood and problem resolved.
    Thank you very much once again. Points rewarded!!
    Cheers..
    Sunanda

  • Need to strip the leading ZERO using ABAP code.

    Hi Friends,
    I got a situation where i got customer number called 011. I need to write an ABAP in Transformation to strip the leading ZERO , 11 should be posted to the master data attribute. could you help me in the logic pls.
    Thanks in advance,

    hi friends, i got a prob again, as i mentioned if i got 0 as prefix its deleting but if any 3 digit is comming it's converting in to 2 digit, as i mentioned if the prefix is 0(zero) then only i need to delete the zero.
    Is there any other solution for this..
    thansk in advance.

  • Format column in Numbers for zip code

    how do I get a leading zero for zip codes??

    start by selecting the cell(s) yu want to format, then go to the Format menu and choose Create Custom Cell Format:
    In the dialogue that opens:
    Edit the name to reflect the use to which this format will be placed.
    Leave the type as Numbers & Text
    Note the example (orange circle) showing how a number will appear under the curent format.
    Click the white triangle (see arrow) in the Integer tablet (red circle) to open the options menu.
    Take three trips to the options menu:
    Choose Hide Separator
    Choose Show Zeros for Unused Digits
    Choose Add Digit
    Click OK to return to the document.
    Note that this will work for the original five digit Zip codes. Extended five-four codes will be treated as text, as can be seen in the image above. and will not sort correctly (see column D of left table below). For correct sorting, format the column as text and enter the Zip codes including the leading zeros, as has been done in the single column on the right (before the column was sorted into the displayed order).
    Regards,
    Barry

  • How to print leading zeros?

    I want to print the leading zero for zip codes for a spreadsheet. Maine has zip codes with a leading zero. Any help out there?

    Thanks Barry, I knew it was simple but I just couldn't figure it out. I've baked a great big batch of cookies in your honor! Thanks again for the help

  • BAPI_PO_CHANGE document number leading zero problem

    Hi experts,
    The following code clears the "Delivery Complete" flag on a list of Purchase Orders uploaded from a CSV file.
    The PO number is 9 digits long, however, in EKPO table it is stored as 10 digits (prefixed with a zero). The BAPI does not recognise the document number unless it is prefixed with a zero in the CSV file (which adds extra work for the user to create custom format in Excel to add the leading zero).
    What code is required for the BAPI to recognise the 9 digit number without the leading zero?   Perhaps the leading zero could be hard-coded into the program?
    Any advice is much appreciated.  Thanks for your time.
    REPORT  Z_MASS_REMOVE_FDI_DCI_BAPI.
    *Check if file exists
    DATA: rc TYPE sy-ucomm.
    CALL FUNCTION 'WS_QUERY'
           EXPORTING
                query    = 'FE'  "File Exist?
                filename = 'X:\STO.TXT'
           IMPORTING
               return   = rc.
    IF rc EQ 0.
      WRITE: / 'File does not exist'.
    ENDIF.
    TYPES: BEGIN OF ty_tab,
            DOCNO(10),
            ITEM(4),
           END OF ty_tab.
    DATA : it_tab TYPE STANDARD TABLE OF ty_tab,
           wa_tab TYPE ty_tab.
    START-OF-SELECTION.
      CALL FUNCTION 'GUI_UPLOAD'
        EXPORTING
          filename = 'X:\STO.TXT'
    *     FILETYPE = 'ASC
          has_field_separator = 'X'
    *     HEADER_LENGTH = 0
    *     READ_BY_LINE = 'X'
    *     IMPORTING
    *     FILELENGTH =
    *     HEADER =
          TABLES
          data_tab = it_tab
          EXCEPTIONS
          file_open_error = 1
          file_read_error = 2
          no_batch = 3
          gui_refuse_filetransfer = 4
          invalid_type = 5
          no_authority = 6
          unknown_error = 7
          bad_data_format = 8
          header_not_allowed = 9
          separator_not_allowed = 10
          header_too_long = 11
          unknown_dp_error = 12
          access_denied = 13
          dp_out_of_memory = 14
          disk_full = 15
          dp_timeout = 16
          OTHERS = 17.
    END-OF-SELECTION.
    LOOP AT it_tab INTO wa_tab.
      WRITE:/ 'DOCUMENT: ',
      wa_tab-DOCNO,
      ' ITEM: ',
      wa_tab-ITEM.
      WRITE: / '-----------------------------------------------------------------------'.
      DATA: s_header TYPE bapimepoheader,
            s_headerx TYPE bapimepoheaderx,
            s_item TYPE bapimepoitem,
            s_itemx TYPE bapimepoitemx,
            i_return TYPE bapiret2 OCCURS 0 WITH HEADER LINE,
            i_extension TYPE bapiparex OCCURS 0 WITH HEADER LINE,
            s_bapimepoheader TYPE bapimepoheader,
            s_bapimepoheaderx TYPE bapimepoheaderx,
            s_bapimepoitem TYPE bapimepoitem occurs 0 with header line,
            s_bapimepoitemX TYPE bapimepoitemX occurs 0 with header line,
            wa_message TYPE c LENGTH 100.
      s_bapimepoheaderx-po_number = wa_tab-DOCNO.
      s_bapimepoheader-po_number = wa_tab-DOCNO.
      s_bapimepoitemx-PO_ITEM = wa_tab-ITEM.
      s_bapimepoitem-PO_ITEM = wa_tab-ITEM.
    *Remove Delivery Complete Indicator (DCI)
      s_bapimepoitemx-NO_MORE_GR = 'X'.
      s_bapimepoitem-NO_MORE_GR = ' '.
      append s_bapimepoitem.
      clear s_bapimepoitem.
      append s_bapimepoitemx.
      clear s_bapimepoitemx.
      CALL FUNCTION 'BAPI_PO_CHANGE'
        EXPORTING
          purchaseorder = wa_tab-DOCNO
        TABLES
          return        = i_return
          poitem        = s_bapimepoitem
          poitemx      =  s_bapimepoitemx.
    *Message types: S Success, E Error, W Warning, I Info, A Abort
    *Supress all Warning Messages
    DELETE i_return WHERE ( TYPE EQ 'W' ).
    *Commit only if no errors have been returned
      read table i_return with key type = 'E'.
      if sy-subrc ne 0.
        COMMIT WORK AND WAIT.
      endif.
    *Display Return Messages on Screen
      LOOP AT i_return.
        WRITE: /   'RETURN MESSAGE: ',
        'ID: ',
        i_return-id,
        ' TYPE: ',
        i_return-type,
        ' NUMBER: ',
        i_return-number,
        i_return-message.
      ENDLOOP.
      WRITE: / '-----------------------------------------------------------------------'.
      refresh : s_bapimepoitem,s_bapimepoitemx.
    ENDLOOP.

    hi,
    Use the conversion exit to make it as 10 digit char CONVERSION_EXIT_ALPHA_INPUT.

  • Pad leading zeros in a string.Format function

    How could use the string.Format function and in the format text pad a leading zero? 
    Pseudo code is:
    string parm = “5”;
    string format = “Some number formatted as 3 dig: Format({0}, 000)”;
    string output = string.Format(format, parm);
    Where the output would look like this:
    “Some number formatted as 3 dig: 005”
    Thanks.

    Thanks everyone. Unfortuantly there's a constraint where the padding operation needs to be embedded in the format string. This entire operatin is being put together dynamically where the format strings are being pulled from a library of format strings stored
    in a database. at runtime we don't know how which format will be used and how many parameters will be passed in. we have logic to handle the unknown number of paramters as there is metadata which helps us with that.
    the need for leading zeros needs to be part of the overall format defined in the format string.  for example, a real format string stored in the database looks like this:
    "LINE_NO = '{0}',  AND GEO_LOCATION = 'T{1}, {2},  R{3}, {4}, , Sec. {5}'"
    and its output from the string.Function is:
    "LINE_NO = 'TG-G2469',  AND GEO_LOCATION = 'T155, N,  R93, W, , Sec. 5'"
    the last parameter (param 5) had a value of 5.  In another case the output requirement might need to look like this:
    "LINE_NO = 'TG-G2469',  AND GEO_LOCATION = 'T155, N,  R93, W, , Sec. 05'"
    note the "05" at the end...
    the logic of using the leading zero needs to be embedded in the overall format string text.
    Thank you.

  • Random numbers with leading zeros

    Hi,
    I want to generate random numbers with leading zeros.
    My code so far:
    import java.util.Random;
      Random r = new Random();
      int randInt = r.nextInt(100);My aimed output is something like:
    0012 or 0123 ...
    Thanks
    Jonny

    Hi,
    sorry for not getting it with NumberFormat. I used DecmailFormat instead:
    DecimalFormat df = new DecimalFormat("0000");
    df.setMinimumIntegerDigits(4);
    df.format(r.nextInt(40)));This gave me the right output, like 0013 or 0123 ...
    Thanks
    Jonny

  • Selection without leading zeros in query

    Hi Gurus
    In report, we have defined variable for item no. 
    Is it possible to change the selection for a defined variable (item no.) not to require the leading zeros. Ex u2013 Instead of entering 000000123 , user enters only 123. Its very difficult to search when you are selecting specific item no.
    Thanks
    BIT

    Hi,
    Yep, the values in the cube will reflect in the query input screen, but I guess you need to drop and reload the data after the change, inorder to not reflect the old values.
    Check the below links for the reference:
    How to remove leading zero from Material Number
    Need to strip the leading ZERO using ABAP code.
    Remove Leading Zero
    Remove leading zeros
    Hope this helps...
    Rgs,
    Ravikanth.

  • Procedure truncating leading zeros

    Hello,
    I'm setting up sequences for my sample database, in my design I have my ID columns in this format Staff: S110001, Parents: P110001 etc.
    When I try to implement this in a sequence like:
    create sequence Pnt_seq1 start with 0001;
    insert into parents
    (parent_id, f_name, m_init, l_name, house_n, street, city, postcode)
    values
    (('P' || to_char(sysdate, 'yy')|| Pnt_seq1.nextval), 'Jim', 'I', 'Brown', 34, 'Barker St', 'Wrexham', 'LL11 8UH');
    It trims or truncates the leading zeros giving me P111 instead of P110001. Is there a way around this or am I better off changing my domain definitions/schema to start at P111001 or something?
    Thanks a lot
    Mike

    A sequence is always numeric, so leading zeros have no place
    Nothing is trimmed.
    If you want leading zeros in the code you posted use
    to_char(Pnt_seq1.nextval,'fm0009')
    Sybrand Bakker
    Senior Oracle DBA

  • Truncating the leading zero's

    Hi experts,
    I have an ALV output, in which one of the fields is equipment number (equi-equnr).
    There are some leading zero's that I need to truncate from the ALV output.
    How can I achieve this? The code is as given below:
      fieldcatalog-fieldname   = 'EQUIPMENT_NUMBER'.
      fieldcatalog-seltext_m   = 'Equipment Number'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    Thanks,
    Ajay.

    Hello,
    Your requirement is that you need to display the equipment number in the ALV without the leading zeroes.
    Ypur code is
    fieldcatalog-fieldname = 'EQUIPMENT_NUMBER'.
    fieldcatalog-seltext_m = 'Equipment Number'.
    fieldcatalog-col_pos = 5.
    append fieldcatalog to fieldcatalog.
    clear fieldcatalog.
    Just before append statement add the following
    fieldcatalog-no_zero = 'X'.
    Now try the same it should solve your problem.
    Regards,
    Sachin
    Edited by: Sachin Dargan on Jan 19, 2010 7:34 AM

  • Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Facing problem with the code for sending an .xls attachment via email, a field value contains leading zeros but excel automatically removes these from display i.e. (00444 with be displayed as 444).kindly guide .

    Hi Chhayank,
    the problem is not the exported xls. If you have a look inside with Notepad or something like that, you will see that your leading zeros are exported correct.Excel-settings occurs this problem, it is all about how to open the document. If you use the import-assistant you will have no problems because there are options available how to handle the different columns.
    Another solution might be to get familiar with ABAP2XLS-Project. I got in my mind, that there is a method implemented, that will help you solving this problem. But that is not a five minute job
    ~Florian

Maybe you are looking for

  • Why do we get the data from a view to a report.

    hi why do we get the data from a view to a report. is it possible to get the data from a view in all the cases?

  • Photos Disappearing and Coming Back Out of Sort!

    Hello...Please read this box carefully and help me anyway you can: Some hours ago I was doing some changes in my settings and then when I lunched Photos, suddenly I saw all my photos have DISAPPEARED!!! I paniced! those photos mean a lot to me! I've

  • List of calendar events/ hard to read

    Before I installed Snow Leopard, iCal allowed me to see a list of all entries in a calendar group. How do I get this feature? I use iCal as a means of documenting past events such as birthdays or medical visits. Seems this latest revision has made a

  • Cannot move audio track

    i imported a video (WMV) in Premiere Pro CS4 and first thing: it placed the audio track on track 5... i cannot move it to 1 as i woild have expected it to go from start... as i import images only for video layers, there is no issue. But now i need to

  • /usr/lib/libcurl.so.4: version `CURL_OPENSSL_3' not found

    Hello guys, I need to instal an application to generate a scenery for X-Plane but when I click on the executable I get: ./WED: /usr/lib/libcurl.so.4: version `CURL_OPENSSL_3' not found (required by ./WED) How could I solve it? Thanks