+ Reply to Thread
Results 1 to 7 of 7

Reducing the number of digits in a cell

  1. #1
    Registered User
    Join Date
    08-10-2006
    Posts
    3

    Reducing the number of digits in a cell

    Hi,

    Is there a way of automatically reducing the number of digits in a cell?

    I have a spreadsheet containing 16,000 zip/postcodes. I need to remove the last two digits in each postcode. Is this possible?

    Any help that anyone can give would be much appreciated.

    Thanks,
    George

  2. #2
    Gazeta
    Guest

    Re: Reducing the number of digits in a cell


    Użytkownik "Borge14" <[email protected]>
    napisał w wiadomości
    news:[email protected]...
    >
    > Hi,
    >
    > Is there a way of automatically reducing the number of digits in a
    > cell?
    >
    > I have a spreadsheet containing 16,000 zip/postcodes. I need to remove
    > the last two digits in each postcode. Is this possible?
    >
    > Any help that anyone can give would be much appreciated.
    >
    > Thanks,
    > George
    >
    >

    =LEFT(A1;LEN(A1)-2)
    works for zipcode in a1
    mcg



  3. #3
    Registered User
    Join Date
    08-10-2006
    Posts
    3
    Cheers.

    Although for some reason it doesn't seem to be working. Can I email you the document so you can take a look and see why that may be?

  4. #4
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    use comma instead of semi colon, formula should be like this

    =LEFT(A1,LEN(A1)-2)

    Quote Originally Posted by Borge14
    Cheers.

    Although for some reason it doesn't seem to be working. Can I email you the document so you can take a look and see why that may be?

  5. #5
    Gazeta
    Guest

    Re: Reducing the number of digits in a cell


    Użytkownik "Borge14" <[email protected]>
    napisał w wiadomości
    news:[email protected]...
    >
    > Cheers.
    >
    > Although for some reason it doesn't seem to be working. Can I email you
    > the document so you can take a look and see why that may be?
    >
    >
    > --
    > Borge14
    > ------------------------------------------------------------------------
    > Borge14's Profile:

    http://www.excelforum.com/member.php...o&userid=37324
    > View this thread: http://www.excelforum.com/showthread...hreadid=570270
    >


    sure
    mcg



  6. #6
    Registered User
    Join Date
    08-10-2006
    Posts
    3
    That works perfectly. Thanks for your help, much appreciated.

  7. #7
    CLR
    Guest

    RE: Reducing the number of digits in a cell

    Be aware tho, that if your original number has a space between it's main
    characters and the last two you wish to eliminate, the formula as given will
    leave the space still there........this mod will also delete the space......

    =LEFT(A1,LEN(A1)-3)

    Vaya con Dios,
    Chuck, CABGx3



    "Borge14" wrote:

    >
    > Hi,
    >
    > Is there a way of automatically reducing the number of digits in a
    > cell?
    >
    > I have a spreadsheet containing 16,000 zip/postcodes. I need to remove
    > the last two digits in each postcode. Is this possible?
    >
    > Any help that anyone can give would be much appreciated.
    >
    > Thanks,
    > George
    >
    >
    > --
    > Borge14
    > ------------------------------------------------------------------------
    > Borge14's Profile: http://www.excelforum.com/member.php...o&userid=37324
    > View this thread: http://www.excelforum.com/showthread...hreadid=570270
    >
    >


+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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