+ Reply to Thread
Results 1 to 17 of 17

Help with aligning website URL and email addresses with same domain

  1. #1
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Help with aligning website URL and email addresses with same domain

    Hi everyone!

    I need help aligning website URL's with their corresponding email addresses (based on domain).
    The URLs and emails had been gathered from separate sources, which is why they are not in order.

    So for example if there's an URL "www.example55.com/example/124", I would like it to horizontally align with "name@example55.com" email.

    PS: I have searched Google, having one answer found but with a non-working formula unfortunately .

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,079

    Re: Help with aligning website URL and email addresses with same domain

    To solve this we're gonna need more than one example.
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Forum Contributor LokeshKumar's Avatar
    Join Date
    03-31-2015
    Location
    India
    MS-Off Ver
    All, mostly 2010 now..
    Posts
    471

    Re: Help with aligning website URL and email addresses with same domain

    Could you upload the sample workbook with more examples...
    Lokesh Kumar
    Stay Hungry.. Stay Foolish..
    _________________________________________________________
    Please Click STAR to Add Reputation if my/someone's answer helped!

  4. #4
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Re: Help with aligning website URL and email addresses with same domain

    Thank's for replying Special-K.

    I've attached an image of the list.

    example image.JPG

    As you can see, the left column has the URL's and the right has emails (however not aligned correctly).
    What I want is that their corresponding emails are aligned (based on domain ).

    Also, not sure if this makes a difference; some URLs will not have a corresponding email address, thus they will be left blank.

  5. #5
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Re: Help with aligning website URL and email addresses with same domain

    Sure LokeshKumar, I will attach the workbook.

    Note: Up until entry 2079, I have aligned the URLs and emails manually by hand, and that's a very long process!
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,079

    Re: Help with aligning website URL and email addresses with same domain

    Is there only ONE email domain per website, ie http://www.loudness.se, will that only have ONE related email in the email list?

  7. #7
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Re: Help with aligning website URL and email addresses with same domain

    Quote Originally Posted by Special-K View Post
    Is there only ONE email domain per website, ie http://www.loudness.se, will that only have ONE related email in the email list?
    Yes, only one email per URL.

  8. #8
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,654

    Re: Help with aligning website URL and email addresses with same domain

    Try this one
    =IFERROR(VLOOKUP("*"&SUBSTITUTE(SUBSTITUTE(B2,"http://",""),"www.",""),$C$1:$C$5000,1,0),"")
    Willem
    English is not my native language sorry for errors
    Please correct me if I'm completely wrong

  9. #9
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Help with aligning website URL and email addresses with same domain

    I reckon it's more resilient to do it the other way round then Vlookup the data back in:
    Please Login or Register  to view this content.

  10. #10
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Re: Help with aligning website URL and email addresses with same domain

    Quote Originally Posted by popipipo View Post
    Try this one
    =IFERROR(VLOOKUP("*"&SUBSTITUTE(SUBSTITUTE(B2,"http://",""),"www.",""),$C$1:$C$5000,1,0),"")
    Thanks very much! But unfortunately I get a formula error message:

    error1.JPG

    Not sure if this helps; I'm using the Finnish character format; where the Finnish format use "," to separate decimals, the US format uses "." to separate decimals

  11. #11
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Re: Help with aligning website URL and email addresses with same domain

    Quote Originally Posted by Kyle123 View Post
    I reckon it's more resilient to do it the other way round then Vlookup the data back in:
    Please Login or Register  to view this content.
    Sorry for my ignorance, but where do I insert this code?
    I only know the basics of Excel, so I would require a bit of help here.
    Thanks a lot!

  12. #12
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Help with aligning website URL and email addresses with same domain

    Please Login or Register  to view this content.

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button

  13. #13
    Registered User
    Join Date
    04-20-2015
    Location
    Tampa
    MS-Off Ver
    1.2
    Posts
    2

    Re: Help with aligning website URL and email addresses with same domain

    Do you have auto-format enabled? it could be an issue

  14. #14
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Re: Help with aligning website URL and email addresses with same domain

    Quote Originally Posted by Kyle123 View Post
    Please Login or Register  to view this content.

    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the macro into the module that appeared

    To run the Excel VBA code:
    1. Press Alt-F8 to open the macro list
    2. Select a macro in the list
    3. Click the Run button
    Thanks. I have done everything you said and ran the "sorty" macro, but nothing happened. I have enabled all macros in the macro security options of Excel.

  15. #15
    Forum Expert
    Join Date
    12-11-2011
    Location
    Netherlands
    MS-Off Ver
    office 365
    Posts
    3,654

    Re: Help with aligning website URL and email addresses with same domain

    I get a formula error message
    Here the file without an error
    Attached Files Attached Files

  16. #16
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,239

    Re: Help with aligning website URL and email addresses with same domain

    Have you had a look on sheet2

  17. #17
    Registered User
    Join Date
    04-20-2015
    Location
    Madrid
    MS-Off Ver
    2010
    Posts
    85

    Re: Help with aligning website URL and email addresses with same domain

    Quote Originally Posted by popipipo View Post
    Here the file without an error
    Thank you! This worked!

    The problem seemed to be in the format of commas. The formula given to me via this discussion had commas in some parts, while the file you have given had semicolons in the exact same parts. I guess it had to do with my local machine's format as I expected.

+ 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. [SOLVED] Extracting the domain from the email
    By sathishkm in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-12-2013, 01:32 PM
  2. Replies: 2
    Last Post: 02-25-2013, 10:40 AM
  3. Sort Email by domain and move domain group to new list
    By grandparocks in forum Excel General
    Replies: 4
    Last Post: 01-06-2013, 09:04 PM
  4. Replies: 2
    Last Post: 07-24-2008, 08:40 AM
  5. [SOLVED] sort a column of e-mail addresses by domain
    By pjcler in forum Excel General
    Replies: 1
    Last Post: 04-19-2006, 10:45 AM

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