+ Reply to Thread
Results 1 to 4 of 4

Thread: Link Adjacent Cells

  1. #1
    Registered User
    Join Date
    02-01-2012
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    4

    Link Adjacent Cells

    I am trying to link names with the numbers in the cells adjacent to them. I have a column of names adjacent to a column of numbers that correspond to each name; let's call this the key. I also have a clumn where I want to be able to write down one of the names and have the corresponding number populate the adjacent cell.

    I have attached an example: 2-1-2012 11-11-05 AM.jpg In this example I have names in Column A which correspond to each adjacent number in Column B. I want to be able to write any of the names in Column D (I have written 7 there already) and have the correct corresponding number show up in Column E. The example given should populate Column E with 10(E3), 40(E4), 10(E5), 30(E6), 40(E7), 20(E8), 20(E9).

    I understand that I can do this by embedding a bunch of IF formulas within each other but my actual list is much longer than 4 names and that can get very long and tedious. Any ideas?

  2. #2
    Valued Forum Contributor Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Excel 2007
    Posts
    686

    Re: Link Adjacent Cells

    Put this in E3:

    =VLOOKUP(D3,$A$3:$B$6,2,0)

    then copy down.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-01-2012
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    4

    Re: Link Adjacent Cells

    Thanks You! That works perfect. I was also wondering if there was a way to assign the number to the word. In the same example used below, if I wrote in a random cell "=D3xD4" could I make it so that it comes up with a numerical answer (should be 400)?

  4. #4
    Valued Forum Contributor Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Excel 2007
    Posts
    686

    Re: Link Adjacent Cells

    No, you would use:

    =vlookup(d3,...) * vlookup(d4,...)

    Alternatively, you could assign names to the cells in column B using the names from column A. Then you would be able to write:

    =James * Sally

    or you could use cell references like this:

    =INDIRECT(D3) * INDIRECT(D4)

    Hope this helps.

    Pete

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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.2.0