+ Reply to Thread
Results 1 to 8 of 8

help with vlookup

  1. #1
    Registered User
    Join Date
    03-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2000
    Posts
    18

    help with vlookup

    I have Column A that contains my list of storage tube IDs, then Column B that contains the IDs of tubes that have been removed from their box and used. The IDs in both columsn are out of order, so it is hard for me to mark off which ones of the tubes in Column A have been used by looking at Column B.


    I want to use V lookup to do this. I need to know what tubes in Column B match those in A to note that they have been used and place that information in Column C. I don't care what the notation actually is in Column C, if it is "N/A", as long as I will know that tube from Column B matches Column A.

    Can someone write the command for me?

  2. #2
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: help with vlookup

    Assuming you are just looking to find out if the cell in column A matches the cell adjacent to it in Column B, you could put the following into column C (then copy down) and it would return a 1 if the column A and B cells match and #N/A if they don't.

    =MATCH($A2, $B2, 0)

    You might want to attach an example of what you have.
    Last edited by BeachRock; 03-25-2012 at 02:56 PM.
    -------------
    Tony

  3. #3
    Registered User
    Join Date
    03-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2000
    Posts
    18

    Re: help with vlookup

    Hi

    No I can't use Match. It is not to match column A and B adjacent. Like I said, Column B has some tubes matching the same as column A but everything is out of order. I have even sorted both columns in Ascending order and still they do not align, so I can't use the MATCH value. It won't work.

    I am pretty sure vlookup command - to take from Column B, then look into Column A (which contains the entire list). I have
    put in the following command into column C, but it gives me a "REF!" error when I copy down: = VLOOKUP(A2,A2:A236,2,FALSE).

    If vlookup isn't the best way, that's fine. But I hope it is clear what needs to be done now.

    I can't upload the sheet, it is confidential.

    Can someone help? I need to be done this before today ends. Thanks
    Last edited by ajcrew; 03-25-2012 at 07:58 PM.

  4. #4
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: help with vlookup

    i think beach rock is correct --use match..

    B2 the number that was removed from their box.
    find the number in B2 in the range A2:A236 then display "removed" --if found otherws.. ---"not removed"

    C2=IF(MATCH(B2,A2:A236,0),"Removed","not removed")
    I think people forget the word "THANK YOU!!!!" Do you still know it???

    There is a little star ( ADD REPUTATION ) below those person who helped you. Click it to say your "PRIVATE APPRECIATION TO THEIR EFFORT ON THEIR CONTRIBUTIONS "

    Regards,
    Vladimir

  5. #5
    Registered User
    Join Date
    03-25-2012
    Location
    USA
    MS-Off Ver
    Excel 2000
    Posts
    18

    Re: help with vlookup

    It isn't working, the If, match. I don't know why.

    I have attached the file, garbled the tube IDs to share with you all. I have also reversed the columns (taken column is column A) and my original list (template) is in column B. I think it will be easier.

    I have manually done the first 3 to show you. On the taken list, I copied "299" (cell A2), and did a Find (Ctrl+F) on the template list, then marked a "1" next to it (column C) to show on the template list that this tube was used.

    This is what I want excel to do automatically. I hope this is clear now what I want to see.

    Can someone do this now? Thanks.
    Attached Files Attached Files

  6. #6
    Forum Moderator vlady's Avatar
    Join Date
    09-22-2011
    Location
    Philippines - OLSHCO -Guimba-Nueva Ecija
    MS-Off Ver
    2021
    Posts
    4,366

    Re: help with vlookup

    =IF(ISNA(MATCH(B2,$A$2:$A$236,0)),"not removed","REMOVED")

  7. #7
    Forum Contributor BeachRock's Avatar
    Join Date
    11-01-2011
    Location
    Oregon, United States
    MS-Off Ver
    Excel 2016
    Posts
    403

    Re: help with vlookup

    If I'm understanding you correctly, and there are no duplicates in columns A and B, then just having the value of column A show up in Column C if it exists in Column B should do what you need then. Right?

    =IF(A2="","",VLOOKUP(A2,$B$2:$B$65535,1,FALSE))

    and copy down.

    Or use =IF(A2="","",VLOOKUP(B2,$A$2:$A$65535,1,FALSE)) to see if the items in column B exist in Column A. Returns Column B if it does.
    Last edited by BeachRock; 03-26-2012 at 09:28 PM.

  8. #8
    Forum Contributor darknation144's Avatar
    Join Date
    01-24-2012
    Location
    London
    MS-Off Ver
    Microsoft Excel 365 MSO
    Posts
    555

    Re: help with vlookup

    Did this solution work?

+ 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