• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

Reply to: Excel problem

Collapse

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "Excel problem"

Collapse

  • vetran
    replied
    real men use AWK!

    Leave a comment:


  • Spacecadet
    replied
    Bit late but this formula would have helped:

    Code:
    =IF(LEN(A1)-IFERROR(FIND(".co.uk",A1),0)=5, ".co.uk","")

    Leave a comment:


  • Cliphead
    replied
    Thanks all for the help. Job done and newsletter (spam ), on the way.

    Leave a comment:


  • malvolio
    replied
    Originally posted by Olly View Post
    ...erm you use custom auto filter > ends with
    No need to do paste special either, just filter, highlight and paste

    Excel 2010
    Precisely. Paste Special was only needed if the original data was a formula rather than text.

    @cliphead - wasn't trying to be clever, but just wanted to know where you were going before spending too much time on it.

    Leave a comment:


  • AtW
    replied
    Originally posted by Cliphead View Post
    I have list of email addresses but want to filter just those ending with .uk. Any ideas?
    Copy/paste to flat file named emails.txt

    In command line -

    find ".uk" emails.txt >ukemails.txt

    Copy/paste back to Excel.

    HTH

    Leave a comment:


  • administrator
    replied
    Originally posted by Olly View Post
    ...erm you use custom auto filter > ends with
    No need to do paste special either, just filter, highlight and paste

    Excel 2010
    Yup, just tried and works a treat. Highlight the column, from the Data tab choose Filter, click the little drop down that appears at the top of the column, select Text Filters, click Ends With and type in UK.

    Very nice!

    Leave a comment:


  • Olly
    replied
    Originally posted by administrator View Post
    [email protected] - so therefore will not be fit for purpose for the task in hand.
    ...erm you use custom auto filter > ends with
    No need to do paste special either, just filter, highlight and paste

    Excel 2010

    Leave a comment:


  • Cliphead
    replied
    Thanks Admin I'll try that.

    Mal, just need to discard any email address that isn't from the UK but finding it difficult to filter / sort. A one off operation, once I have all the UK based addresses I can import them into MySQL.

    Leave a comment:


  • administrator
    replied
    Originally posted by malvolio View Post
    Does he want a filtered list, or an extract of the original? Repeat operation or one-off? Manual or automated? Source data is pure data or a formula?

    A simple extract would be a custom filter (select all records containing ".uk") then cut and paste the resultant list using Paste Special/Values only. That' probably not what we;re looking for though...

    Many answers. first you need a problem statement.
    I think you are being too demanding in your requirement seeking. The requirement is in the OP.

    I have list of email addresses but want to filter just those ending with .uk.
    The solution I have shown leaves the original data in a column and the extra ones can be deleted out once you have sorted your list and extracted the data you want.

    Your solution would match anyone with a .uk in the first portion of their addess e.g. [email protected] - so therefore will not be fit for purpose for the task in hand.

    Leave a comment:


  • malvolio
    replied
    Does he want a filtered list, or an extract of the original? Repeat operation or one-off? Manual or automated? Source data is pure data or a formula?

    A simple extract would be a custom filter (select all records containing ".uk") then cut and paste the resultant list using Paste Special/Values only. That' probably not what we;re looking for though...

    Many answers. first you need a problem statement.

    Leave a comment:


  • administrator
    replied
    Originally posted by Cliphead View Post
    I have list of email addresses but want to filter just those ending with .uk. Any ideas?
    Thanks for the help Mal

    I am no excel guru and most of the stuff I do is hacky but you could try copying the email column to a new column. Now click on the column to highlight all cells, click the Data tab and choose "Text to Columns" on the ribbon. Choose Delimited and click next, put a tick in "other" and put the @ symbol in, clik Next, click Finish.

    This will then give you a new column with the bit after the @, again click on the top of the column to select all the domain name and extensions and click "Text to Columns" again. Delimited should be checked so click Next, now replace the @ with a full stop, click Next click Finish.

    Now you will have two new columns, one with the initial part of any double part domain extentions and one with the second. All official UK extensions are double spaced names, .co.uk, .org.uk, .me.uk, .gov.uk etc. You may have the odd .uk.com but they aren't real UK extensions administered by Nominet so depending on what you are doing you might want a second sort to select those or you might not...

    Now that you have all the uk extension parts in one column you can sort on that column and just select the UK ones...

    Worked for me on a small dataset.

    I am sure some smart arse will come along with some code to do it in a sec but that might be enough to get you through for now...
    Last edited by administrator; 28 April 2013, 16:30. Reason: typos

    Leave a comment:


  • malvolio
    replied
    Originally posted by Cliphead View Post
    I have list of email addresses but want to filter just those ending with .uk. Any ideas?
    Lots, thanks.

    I assume you've used custom fileters and/or compound commands using the lookup functions and/or Indirect commands. But it rather depends what you're trying to do, doesn't it? If you could work up the time and energy to explain the problem, it may be possible to come up with an answer.

    Leave a comment:


  • Cliphead
    started a topic Excel problem

    Excel problem

    I have list of email addresses but want to filter just those ending with .uk. Any ideas?

Working...
X