+ Reply to Thread
Results 1 to 6 of 6

Vlookup Help Needed

  1. #1
    Registered User
    Join Date
    07-31-2014
    Location
    Arizona, USA
    MS-Off Ver
    2013
    Posts
    6

    Vlookup Help Needed

    Hi,
    I'm hoping this is an easy solution and I'm just not thinking right today.

    I need to copy data over only if a column doesn't match a specific value in column A.

    My reference is Column A
    Column B needs to be compared to Column A

    If Column B does not match any of the values in Column A then I need it to copy it's value for B & C.

    Hope that makes sense, any help would be appreciated.

    Thanks!

    Jason
    Last edited by jdperez; 03-02-2015 at 05:24 PM.

  2. #2
    Registered User
    Join Date
    02-28-2015
    Location
    Tennessee, USA
    MS-Off Ver
    2010
    Posts
    25

    Re: Vlookup Help Needed

    I hope I understood your question correctly, not too sure what you meant exactly by "...to copy it's value for B & C.". But attached is a solution using the formula:

    =IFERROR(IF(MATCH(B2,$A$2:$A$14,0)>0,""),B2)

    If this isn't what you mean, please clarify and I can try and readjust...
    Attached Files Attached Files

  3. #3
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: Vlookup Help Needed

    Not totally clear how the non-matching values should be positioned though

    in C2 and copy down

    =IFERROR(INDEX(B:B,AGGREGATE(15,6,ROW($B$2:$B$14)/(COUNTIF(A$2:B$14,B$2:B$14)=1),ROWS(B$2:B2))),"")

    Row\Col
    A
    B
    C
    1
    Reference Comparison If no match
    2
    9
    9
    7
    3
    8
    8
    11
    4
    8
    7
    12
    5
    6
    6
    13
    6
    5
    5
    7
    4
    4
    8
    3
    3
    9
    2
    2
    10
    1
    1
    11
    0
    0
    12
    1
    11
    13
    2
    12
    14
    3
    13
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  4. #4
    Registered User
    Join Date
    07-31-2014
    Location
    Arizona, USA
    MS-Off Ver
    2013
    Posts
    6

    Re: Vlookup Help Needed

    Thanks for the responses.
    Let me try to clarify.
    Column A has the values that I need to use.
    Column B is a mix of values that i need to separate.
    Column C describes the values in Column B.

    For example

    if the value in B = 25 and 25 isn't in column A. I need it to give me the value of B and it's description in C. End value should be 25 Agroeconomics

    Row/Col A B C D E F
    1 9 25 Agroeconomics 25 Agroeconomics
    2 14 24 Biology
    3 15 26 Health 26 Health
    4 16 27 English 27 English
    5 24 28 Math 28 Math

  5. #5
    Registered User
    Join Date
    02-28-2015
    Location
    Tennessee, USA
    MS-Off Ver
    2010
    Posts
    25

    Re: Vlookup Help Needed

    jdperez,

    Thanks for the clarification. Attached is a solution doing what you described using the formulas:

    =IFERROR(IF(MATCH(B1,$A$1:$A$6,0)>0,""),B1)
    and
    =IF(D1="","",C1)

    I am still trying to wrap my head around the impressive solution that AlKey posted earlier, but this should do what you described. If not let us know.
    Attached Files Attached Files

  6. #6
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2404
    Posts
    13,410

    Re: Vlookup Help Needed

    Using the data in post #4 and this formula in D1 filled down and across:
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    I get this.

    Row\Col
    A
    B
    C
    D
    E
    1
    9
    25
    Agroeconomics
    25
    Agroeconomics
    2
    14
    24
    Biology
    3
    15
    26
    Health
    26
    Health
    4
    16
    27
    English
    27
    English
    5
    24
    28
    Math
    28
    Math

+ 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. Urgent help needed: Vlookup within a Vlookup
    By jozz90 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-15-2013, 07:57 AM
  2. [SOLVED] VLOOKUP help needed
    By jondon in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 11-02-2012, 12:33 PM
  3. Complex Vlookup/ VBA function or Macro Needed For "if contains text then vlookup"
    By alfykunable in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-09-2012, 03:48 AM
  4. Replies: 5
    Last Post: 07-29-2009, 07:53 AM
  5. VLOOKUP help needed!
    By MartinC in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-12-2006, 08:50 AM

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.6.0 RC 1