+ Reply to Thread
Results 1 to 2 of 2

return a value from one column based on value in another column

  1. #1
    Registered User
    Join Date
    02-15-2005
    Posts
    4

    return a value from one column based on value in another column

    Consider the following:

    A1 = M
    A2 = N
    A3 = P
    A4 = Q

    B1 = 5
    B2 = 6
    B3 = 7
    B4 = 8

    How do I search Column A for "N" (A2), then return the corresponding value in Column B, i.e. "6" (B2)?

  2. #2
    Forum Contributor
    Join Date
    06-23-2004
    Location
    Houston, TX
    Posts
    571
    Quote Originally Posted by kenn
    Consider the following:

    A1 = M
    A2 = N
    A3 = P
    A4 = Q

    B1 = 5
    B2 = 6
    B3 = 7
    B4 = 8

    How do I search Column A for "N" (A2), then return the corresponding value in Column B, i.e. "6" (B2)?

    Try this:

    1. Enter "N" in Cell C1
    2. Enter the following formula in Cell D1

    =vlookup(C1,$A$1:$B$4,2,0)
    BenjieLop
    Houston, TX

+ 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