+ Reply to Thread
Results 1 to 10 of 10

Need a formula to compare email addresses

  1. #1
    Registered User
    Join Date
    10-15-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Need a formula to compare email addresses

    Hello Guys

    I am trying to figure out how to Compare email addresses from sheet1 (C) and sheet2 (B) and then display the location(A) from sheet 2 in a column(D) of Sheet 1 if the email addresses match

    Sheet 1

    (A)First name | (B) Last Name | (C) Email address | (D) Location



    Sheet 2

    (A) Location | (B) Email address

    I tried the following formula but doesn't work

    =VLOOKUP(C2,Sheet2!A2:B3780,4,FALSE)

    Please help

    Thanks, Dan
    Attached Files Attached Files
    Last edited by dk4210; 10-10-2013 at 04:02 PM. Reason: add attachment

  2. #2
    Registered User
    Join Date
    10-15-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need a formula to compare email addresses

    Some one help a brotha out?

  3. #3
    Forum Expert RobertMika's Avatar
    Join Date
    06-22-2009
    Location
    Haverhill, UK
    MS-Off Ver
    Excel 2003-13
    Posts
    1,530

    Re: Need a formula to compare email addresses

    Could you post examples/workbook?
    If you are http://www.excelforum.com/image.php?type=sigpic&userid=125481&dateline=1392355029happy with the results, please add to the contributor's
    reputation by clicking the reputation icon (star icon).




    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.
    To undo, select Thread Tools-> Mark thread as Unsolved.
    http://www.excelaris.co.uk

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need a formula to compare email addresses

    I think you had your references a bit mixed around? Based on your sample data...
    =VLOOKUP(B2,Sheet1!$C$1:$D$6,2,0)

    in the formula you used,,,
    =VLOOKUP(C2,Sheet2!A2:B3780,4,FALSE)
    This is probably on sheet2, so...
    ...you are trying to search for the value in C2 (sheet2), which contains no data
    ...your range is column A to column B (ignoring rows for now), based on your sample data, they contain 1st and last names
    ...you are looking in the 4th column of youe range( ,4, ), but your range only contains 2 columns
    Last edited by FDibbins; 10-10-2013 at 04:04 PM.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Registered User
    Join Date
    10-15-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need a formula to compare email addresses

    Cant get that formula to work. I get #N/A

  6. #6
    Registered User
    Join Date
    10-15-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need a formula to compare email addresses

    upload a workbook without the info. There are over 3k rows in the real one

  7. #7
    Registered User
    Join Date
    10-15-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need a formula to compare email addresses

    Actually I want to compare the email address from sheet 1 (All of row C) against sheet 2 (All OF row B) IF they match then paste the location on sheet 1 row D from row A Sheet 2

  8. #8
    Registered User
    Join Date
    10-15-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need a formula to compare email addresses

    Some one any one?

  9. #9
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Need a formula to compare email addresses

    1st, please have a little patience, all members here offer their help for free, and constant "bumping" will not get you answers any quicker


    Try this instead, I mis-read your request, thinking you wanted the location pulled into sheet2...
    =INDEX(Sheet2!$A$2:$A$3,MATCH(Sheet1!C2,Sheet2!$B$2:$B$3,0))

  10. #10
    Registered User
    Join Date
    10-15-2012
    Location
    Atlanta, GA
    MS-Off Ver
    Excel 2010
    Posts
    16

    Re: Need a formula to compare email addresses

    Hey thanks again for the help.
    I still get N/A when I run it. Any other ideas?

+ 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. Replies: 1
    Last Post: 09-09-2013, 03:46 PM
  2. Replies: 4
    Last Post: 02-07-2011, 09:32 AM
  3. email excel file or worksheet as an attachment to multiple email addresses
    By jgeagle5 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 11-16-2009, 03:40 PM
  4. [SOLVED] can I copy a column of email addresses, paste into email address?
    By Lizizfree in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 07-20-2006, 05:05 PM
  5. [SOLVED] Transfer Email addresses from spreadsheet to email address book
    By Beana in forum Excel General
    Replies: 2
    Last Post: 05-30-2006, 01:10 PM

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