+ Reply to Thread
Results 1 to 8 of 8

Combine email address from sheet 2 into sheet 1

  1. #1
    Registered User
    Join Date
    03-16-2021
    Location
    London, England
    MS-Off Ver
    365
    Posts
    26

    Combine email address from sheet 2 into sheet 1

    I have 2 sets of data, which has:

    Sheet 1 (Business Details) has 21 business details, but no email addresses (in the Email column).
    Sheet 2 (Website-Emails) has 8 websites from Sheet 1, along with an email address for each, yet as not every website from Sheet 1 has an email address available, Sheet 2 misses those out.

    What I want is to automatically combine all 8 email addresses from Sheet 2 into Sheet 1, so the email address column is completed where applicable. Obviously, not all will be filled, as there's 8 email addresses and 21 business rows. So 13 will remain blank.

    The problem is, I can't just copy-paste as they won't align - the website's correct email address won't go into the correct row.

    Apologies if this isn't clear. I'll try my best to explain if there are any queries.

    While this spreadsheet is only a few rows deep, I'm working with much bigger numbers/rows so it needs to be a method that I can easily use.


    business-data.xlsx

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,900

    Re: Combine email address from sheet 2 into sheet 1

    In F2:

    =XLOOKUP(E2:E22,'Website-Emails'!A2:A10,'Website-Emails'!B2:B10,"")
    Attached Files Attached Files
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,900

    Re: Combine email address from sheet 2 into sheet 1

    Looking again, you might need to try this:

    =XLOOKUP(IFNA(TEXTBEFORE(E2:E22,"/",3),E2:E22),IFNA(TEXTBEFORE('Website-Emails'!A2:A10,"/",3),'Website-Emails'!A2:A10),'Website-Emails'!B2:B10,"")
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,900

    Re: Combine email address from sheet 2 into sheet 1

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, remember that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.

  5. #5
    Registered User
    Join Date
    03-16-2021
    Location
    London, England
    MS-Off Ver
    365
    Posts
    26

    Re: Combine email address from sheet 2 into sheet 1

    Hi AliGW

    Many thanks for this.

    One problem - if I increase the row numbers (to work on a larger number of rows), I get the SPILL error.

    I have this:

    =XLOOKUP(E2:E861,'Website-Emails'!A2:A133,'Website-Emails'!B2:B133,"")
    Attached Files Attached Files
    Last edited by AliGW; 02-21-2024 at 07:29 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,900

    Re: Combine email address from sheet 2 into sheet 1

    You need to clear anything in the way of the formula. It's working fine once you do. No need to copy down!

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, remember that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
    Attached Files Attached Files
    Last edited by AliGW; 02-21-2024 at 07:32 AM.

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,900

    Re: Combine email address from sheet 2 into sheet 1

    Actually, you used the WRONG formula. It should be this:

    =XLOOKUP(IFNA(TEXTBEFORE(E2:E1000,"/",3),E2:E1000),IFNA(TEXTBEFORE('Website-Emails'!A2:A1000,"/",3),'Website-Emails'!A2:A1000),'Website-Emails'!B2:B1000,"")

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, remember that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of each of those who offered help.
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    03-16-2021
    Location
    London, England
    MS-Off Ver
    365
    Posts
    26

    Re: Combine email address from sheet 2 into sheet 1

    Edit - think I have it now.

    Let me check.
    Last edited by AliGW; 02-21-2024 at 07:56 AM. Reason: Please don't quote unnecessarily - use the Quick Reply button instead.

+ 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. Email used range on different sheet, use lookup to populate "to" email address
    By carlito2002wgn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-16-2019, 01:27 PM
  2. [SOLVED] Use email address from seperate sheet.
    By Hyperion1571 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-14-2018, 07:50 AM
  3. Macro to PDF a sheet in workbook and email (outlook) to an email address in a cell
    By paul_sykes00 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-17-2012, 12:54 AM
  4. Replies: 11
    Last Post: 10-14-2012, 01:03 PM
  5. Find email address & send active sheet.
    By JSB0009 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-14-2010, 02:07 AM
  6. single Email address from one sheet - multiple data from another
    By Buffyslay in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-14-2006, 04:40 PM
  7. Replies: 0
    Last Post: 08-10-2005, 06:05 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