+ Reply to Thread
Results 1 to 7 of 7

Identify cells that end in 5 numbers

Hybrid View

  1. #1
    Registered User
    Join Date
    01-14-2015
    Location
    Portland, ME
    MS-Off Ver
    Office 2013
    Posts
    4

    Identify cells that end in 5 numbers

    Hi - I have a column which has names of businesses but some of them have the zip code attached to them. For example most cells are just
    ABC Company
    123 Company
    Def Company

    But some are
    ABC Company90210
    123 Company10011
    Def Company20007

    In all the cells that have zip codes, they are always 5 digits (o 90210 and not 90210-1107) and they always start right after the last letter of the Business Name (there is no space)

    Is there a way I can identify just the cells that have the zip code attached to the business name and remove the zip code digits? I do not need to save them to a different column. I just need to clean the Business Name column so those numbers dont appear next to the business name in certain cells.

    Thanks!!!

  2. #2
    Registered User
    Join Date
    11-10-2011
    Location
    JK Kohat
    MS-Off Ver
    Excel 2003
    Posts
    13

    Re: Identify cells that end in 5 numbers

    Dear,

    Please look in to the attach file, maybe it will solve your problem.
    Attached Files Attached Files
    Last edited by Imran Laldin; 01-14-2015 at 04:10 AM.

  3. #3
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,415

    Re: Identify cells that end in 5 numbers

    Try this and copy down

    =IF(ISNUMBER(RIGHT(A1,5)+0),LEFT(A1,LEN(A1)-5),A1)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  4. #4
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,667

    Re: Identify cells that end in 5 numbers

    easy way would be to write a formula in a cell next to such name (say it's in A1, so in B1):
    Formula: copy to clipboard
    =IF(ISERROR(VALUE(RIGHT(A1,5))),A1,LEFT(A1,LEN(A1)-5))

    copy this formula down (double click on filling handle - see https://support.office.com/en-za/art...2-35a236c5b5db )copy whole column and paste it special (as values) into A
    then delete no longer needed formulas
    Best Regards,

    Kaper

  5. #5
    Registered User
    Join Date
    01-14-2015
    Location
    Portland, ME
    MS-Off Ver
    Office 2013
    Posts
    4

    Re: Identify cells that end in 5 numbers

    Thank you so much Kaper and Glenn - That worked great!!!!

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,415

    Re: Identify cells that end in 5 numbers

    You're welcome...

  7. #7
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,667

    Re: Identify cells that end in 5 numbers

    And thanks for marking thread as Solved.

    It would be lovely if you colud also "add some reputation" to those who helped by clicking a small star icon in lowerleft corner of our post(s).
    As opposite to many other sites, you can grant reputation to several posts and not only in threads started by you.

    Best Regards,

+ 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. Identify Unused Numbers/Missing Numbers
    By gurp99 in forum Excel General
    Replies: 1
    Last Post: 05-31-2011, 07:11 PM
  2. [SOLVED] need to compare two lists and identify cells with same numbers in
    By Bockhamptoner in forum Excel General
    Replies: 7
    Last Post: 07-13-2006, 06:15 PM
  3. How do I identify cells with matching numbers within a column.
    By dbmeyer in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-26-2006, 06:40 PM
  4. [SOLVED] Identify Numbers
    By Roger Govier in forum Excel Formulas & Functions
    Replies: 20
    Last Post: 09-06-2005, 03:05 PM

Tags for this Thread

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