+ Reply to Thread
Results 1 to 5 of 5

Edit for special filter and count...

Hybrid View

  1. #1
    Registered User
    Join Date
    02-12-2009
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2000
    Posts
    52

    Edit for special filter and count...

    Ok,,, I've got a spreadsheet with over 60,000 entries each with a different post code.

    I want to filter and then count to find the most re-occuring post code.

    However, I want to do this just on postal area, so I need to edit the info so the last 3 characters of the post code are removed, eg...

    SE10 4BX

    becomes

    SE10

    other than doing it manually is there anyway to just command excel to delete last 3 characters from my list?
    Last edited by NBVC; 03-20-2009 at 04:50 PM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Edit for special filter and count...

    Quote Originally Posted by superspurs View Post
    ...

    However, I want to do this just on postal area, so I need to edit the info so the last 3 characters of the post code are removed, eg...

    SE10 4BX

    becomes

    SE10

    other than doing it manually is there anyway to just command excel to delete last 3 characters from my list?
    Try using this formula in an adjacent column to get rid of last 3 chars

    =TRIM(LEFT(A2,LEN(A2)-3)) where A2 is first postal code to strip.

    copy it down

    Then copy the whole column and do an Edit|Paste Special >> Values over the old data... then delete the newly added column.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    02-12-2009
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2000
    Posts
    52

    Re: Edit for special filter and count...

    Thats really helpful, thank u.

    Looking at this again, and this is more the fault of the data than anything,

    could i do something similar but say just leave first 2?

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Edit for special filter and count...

    So you just want "SE"?

    =Left(A2,2)

  5. #5
    Registered User
    Join Date
    02-12-2009
    Location
    Nottingham, England
    MS-Off Ver
    Excel 2000
    Posts
    52

    Re: Edit for special filter and count...

    thanks, solved.

+ 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