+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    09-16-2008
    Location
    Canada
    MS-Off Ver
    Excel 2003 (silly work wont upgrade)
    Posts
    57

    format cell to remove numbers

    Hi guys,

    I m looking to format a cell to remove numbers that i don't need.

    For example, at work we can swipe a card and the card number comes up like so

    ;11=00=0370904?

    is there a way to format the cell to remove everything but the 0370904

    Thanks for any help
    Mikey
    Last edited by mikeydaman; 11-26-2009 at 08:27 PM.

  2. #2
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Cochrane,Alberta
    MS-Off Ver
    XL 2003,2007
    Posts
    6,259

    Re: format cell to remove numbers

    Will there always be 7 digits?
    =RIGHT(A1,7)
    Dave


  3. #3
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    5,826

    Re: format cell to remove numbers

    Hi,

    You could use a string slicing function in another cell. e.g. if the number is always 7 digits followed by a ? then

    Code:
    =LEFT(A1,LEN(A1)-8)
    HTH
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  4. #4
    Registered User
    Join Date
    09-16-2008
    Location
    Canada
    MS-Off Ver
    Excel 2003 (silly work wont upgrade)
    Posts
    57

    Re: format cell to remove numbers

    Hi guys, thanks for your help and yes there will always be 7 digits. Both work great but i still get the ? mark in there and i can't have that as well.

    Richard thanks for that but the LEFT should be RIGHT hehe

    Thanks again for your help

  5. #5
    Forum Moderator Richard Buttrey's Avatar
    Join Date
    02-15-2008
    Location
    Grappenhall, UK
    MS-Off Ver
    Excel for Windows & Mac - all versions.
    Posts
    5,826

    Re: format cell to remove numbers

    Hi,

    Sorry, misread that as you wanting everything but the number. Try

    Code:
    =MID(A1,LEN(A1)-7,7)
    If you want it as a number, wrap it in an =VALUE() function

    Rgds
    Richard Buttrey

    If this was useful then please rate it appropriately.

    Click the small star icon at the bottom left of my post.

  6. #6
    Registered User
    Join Date
    09-16-2008
    Location
    Canada
    MS-Off Ver
    Excel 2003 (silly work wont upgrade)
    Posts
    57

    Re: format cell to remove numbers

    That worked awesome! thanks again guys for your help

    Cheers
    Mikey

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