+ Reply to Thread
Results 1 to 4 of 4

Check if a cell matches string and take value from the adjacent cell

  1. #1
    Registered User
    Join Date
    12-07-2012
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    14

    Check if a cell matches string and take value from the adjacent cell

    Hi,

    I have the following problem which consists of a couple of smaller problems.

    Imagine you have two sheets in one document. First one contains names of 5 employees and contracts they belong to, for instance:
    John Doe Contract A
    Johnny Depp Contract A
    Tina Turner Contract B
    Orlando Bloom Contract C
    Bill Nye the Science Guy Contract B

    Then in another sheet you a list of contracts and it's expiry dates. What I would like to get is:
    1. For each row in Sheet1 to take the name of the contract in the column B;
    2. match the whole string to a contract name in Sheet2 column A;
    3. take the numeric value of the current row's cell in column B;
    4. put that value in Sheet1 column C.

    I hope my explanation is clear enough. How can I achieve something like that?

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Check if a cell matches string and take value from the adjacent cell

    Maybe this...

    http://contextures.com/xlFunctions02.html
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    Registered User
    Join Date
    12-07-2012
    Location
    Poland
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Check if a cell matches string and take value from the adjacent cell

    Okay, this looks like the right direction, thanks!

  4. #4
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Check if a cell matches string and take value from the adjacent cell

    You're welcome. Thanks for the feedback!

+ 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. Find matches, copy and paste adjacent cell
    By amein in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 05-23-2016, 11:21 AM
  2. [SOLVED] Need help with macro to get all corresponding row data when matches to adjacent cell value
    By toofani in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 03-24-2016, 06:17 AM
  3. Check contents of cell against an adjacent cell and return comparison?
    By Nate Westcott in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-07-2015, 01:05 PM
  4. Replies: 1
    Last Post: 07-20-2015, 10:58 AM
  5. Replies: 3
    Last Post: 06-29-2015, 03:03 PM
  6. Replies: 1
    Last Post: 04-11-2013, 01:49 PM
  7. If one cell matches another display a value in adjacent cell
    By Garfield779 in forum Excel General
    Replies: 1
    Last Post: 07-07-2011, 11:49 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