+ Reply to Thread
Results 1 to 7 of 7

Fill in Value if two cell values match

  1. #1
    Registered User
    Join Date
    01-20-2010
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2008 For Mac
    Posts
    10

    Fill in Value if two cell values match

    Hello All,

    I'm having difficulty figuring out a function for what I want to do...

    The first two columns in my document coincide with their respective values. Column A (File Number) is coded for Participant Description (Column B) and the values in each row are associated with one another...

    However, I have a 3rd column (Article Number) whose values mean the same as the File Number column, but the the rows don't match up.

    What I need is a fourth column. In this column I'd like the value from the Participant Description column to be imputed if the Article Number and File Number column are the same.

    An example from the attached spread sheet.

    A2 = 7, B2 = 6, C2 = 7 - I need D2 to equal B2
    That is easy enough, but this is where I get lost...
    A2 = 7, B2 = 6, C3 = 7 - I need D2 to equal B2

    Thanks in advance for your help on this.
    Attached Files Attached Files
    Last edited by LordAcoustic; 01-22-2010 at 01:54 AM.

  2. #2
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Fill in Value if two cell values match

    A2 = 7, B2 = 6, C2 = 7 - I need D2 to equal B2
    That is easy enough, but this is where I get lost...
    A2 = 7, B2 = 6, C3 = 7 - I need D2 to equal B2
    can you run that again? Where do you get lost?

  3. #3
    Forum Expert teylyn's Avatar
    Join Date
    10-28-2008
    Location
    New Zealand
    MS-Off Ver
    Excel 365 Insider Fast
    Posts
    11,372

    Re: Fill in Value if two cell values match

    how about

    =IF(A2=C2,B2,"")

    so if the value in column A is the same as the one in column C, the value in column B will be returned. Just not sure what you want to do if the values are not the same ...

  4. #4
    Registered User
    Join Date
    01-20-2010
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2008 For Mac
    Posts
    10

    Re: Fill in Value if two cell values match

    Quote Originally Posted by teylyn View Post
    can you run that again? Where do you get lost?
    If you look at the document, you'll see that that Column A and Column C don't match up, but they represent the same Document ID number... Column B represent a category that corresponds to the Document ID in Column A - Without writing 250 if statements I would like to see if I can get the Value in Column B (For a corresponding value match between column A and C) imputed into Column D.

  5. #5
    Registered User
    Join Date
    01-20-2010
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2008 For Mac
    Posts
    10

    Re: Fill in Value if two cell values match

    So in this attached file... Column D represents the cell whose value I want it to represent...
    Attached Files Attached Files

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Fill in Value if two cell values match

    Are you looking for :

    =VLOOKUP(C2,A:B,2,0)

    copied down?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  7. #7
    Registered User
    Join Date
    01-20-2010
    Location
    Orlando, FL
    MS-Off Ver
    Excel 2008 For Mac
    Posts
    10

    Re: Fill in Value if two cell values match

    Quote Originally Posted by NBVC View Post
    Are you looking for :

    =VLOOKUP(C2,A:B,2,0)

    copied down?
    That is exactly what I needed! Thank you!

+ 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