+ Reply to Thread
Results 1 to 2 of 2

lookup a text cell and return text

  1. #1
    Cristi R
    Guest

    lookup a text cell and return text

    Hi Guys,

    I need your help, and I hope I'll make myself clear. So, I have to
    workshhets. In sheet A there is a database, and one of the columns consists
    of different email addresses. In sheet B, there is another database, and one
    of the columns is again containing email addresses. Some of them match with
    the column from sheet A. Now on sheet 2, to each email address corresponds a
    certain PIN number. What I want to do is: search if each of the email
    addresses from Sheet A is found on sheet B, and if it is, then I want to
    return in a cell the PIN number corresponding to it.

    sheet A sheet B

    [email protected] [email protected] 434
    [email protected] [email protected] 545
    [email protected] [email protected] 655
    [email protected] [email protected] 434

    So, in the above example, I need to see if [email protected] appears in the column
    from sheet B, and then to return the # 434 in a cell next to the entry from
    sheet A.

    I hope I made myself clear enough. Help please!


  2. #2
    Forum Contributor kraljb's Avatar
    Join Date
    05-26-2004
    Location
    Illinois
    MS-Off Ver
    2007 (recent change)
    Posts
    256
    INDEX and MATCH works

    INDEX(<Insert Range of PIN Numbers from Sheet B>,MATCH(<insert Email Address from Sheet A,<insert Range of Email Addresses from Sheet B>,0),0)

    Make sure that the ranges selected for PIN Numbers and Email Addresses are equivalent (i.e. rows 1-100 for both, not rows 1-50 for one and 1-400 for the other), else you can end up with errors.

+ 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