+ Reply to Thread
Results 1 to 5 of 5

Pulling information from column 3

  1. #1
    Registered User
    Join Date
    12-12-2006
    Posts
    4

    Pulling information from column 3

    This would definitely save me a lot of time...

    I have a list of Names in column A and a list of names in Column B (that was imported from a different file). There is a column c of values that i want to be attached to the correct column A (that is, for values that are A=B). I'm describing this rather poorly so here's an example:

    A B C
    1 2 red
    2 3 blue
    3 17 green
    4 43 yellow
    5 6 purple
    6 90 teal

    So since the value in cell A2 is "2" and it matches B1's "2" value, i would like for the C1 "red" value to be somehow linked to A2. Is this possible? Ie: To have a formula that would transfer the "red" value do say D2 to match up with the A2 "2" value? Thanks for any and all help!

  2. #2
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by sfoust
    This would definitely save me a lot of time...

    I have a list of Names in column A and a list of names in Column B (that was imported from a different file). There is a column c of values that i want to be attached to the correct column A (that is, for values that are A=B). I'm describing this rather poorly so here's an example:

    A B C
    1 2 red
    2 3 blue
    3 17 green
    4 43 yellow
    5 6 purple
    6 90 teal

    So since the value in cell A2 is "2" and it matches B1's "2" value, i would like for the C1 "red" value to be somehow linked to A2. Is this possible? Ie: To have a formula that would transfer the "red" value do say D2 to match up with the A2 "2" value? Thanks for any and all help!
    Hi,

    in D1 put

    =If(IsError(VLookup(A1,B:C,2.False)),"",VLookup(A1,B:C,2.False))

    and formula fill that to the end of the data in column A

    hth
    ---
    Si fractum non sit, noli id reficere.

  3. #3
    Forum Contributor
    Join Date
    07-05-2006
    Location
    Canada
    MS-Off Ver
    2003, 2007
    Posts
    581
    You could probably put the following in D1 and drag down:

    =IF(ISERROR(VLOOKUP(A1,$B$1:$C$6,2,FALSE)),"",VLOOKUP(A1,$B$1:$C$6,2,FALSE))

    Note that you'll have to adjust the range of B1:C6 to include all the values you have in columns B & C.

    Hope that helps,
    Scott

  4. #4
    Registered User
    Join Date
    12-12-2006
    Posts
    4

    Still having some troubles

    Quote Originally Posted by Bryan Hessey
    Hi,

    in D1 put

    =If(IsError(VLookup(A1,B1:C1,2,False)),"",VLookup(A500,B500:C500,2,False))

    and formula fill that to the end of the data in column A

    hth
    ---
    Ok so I tried that, and it ended up looking something like this:
    =If(IsError(VLookup(A1,B1:C1,2,False)),"",VLookup(A500,B500:C500,2,False))

    But all I am getting is a N/A value error. Did I put something in incorrectly? Thanks again for all of this help!

  5. #5
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by sfoust
    Ok so I tried that, and it ended up looking something like this:
    =If(IsError(VLookup(A1,B1:C1,2,False)),"",VLookup(A500,B500:C500,2,False))

    But all I am getting is a N/A value error. Did I put something in incorrectly? Thanks again for all of this help!
    try

    =If(IsError(VLookup(A1,B:C,2.False)),"",VLookup(A1,B:C,2.False))

    and if you want to restrict the search to a specific range 1 to 500 then

    =If(IsError(VLookup(A1,B$1:C$500,2.False)),"",VLookup(A1,B$1:C$500,2.False))


    after formula fill - on row 499 it should look like

    =If(IsError(VLookup(A499,B$1:C$500,2.False)),"",VLookup(A499,B$1:C$500,2.False))


    hth
    ---

+ 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