+ Reply to Thread
Results 1 to 6 of 6

Look into another workbook and if the value is there, mark as Yes

  1. #1
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    Look into another workbook and if the value is there, mark as Yes

    Hi

    i have two workbooks, lets say book1 and book2


    in column A of book 1 i have a list of numbers, going down to A250

    A1 = 23423423
    A2 = 23442345

    etc etc

    I would like some code for a button press, if the value in A1:A250 is in book2 (A1:A250)
    Both workbooks will be open at the point of the button press

    then adjacent cell in B1:B250 is marked as Yes

    hope this is clear, thanks in advance

  2. #2
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Look into another workbook and if the value is there, mark as Yes

    Hi, you should be able to do it with a simple VLOOKUP formula

    in Cell B1 and copy down. Probably need to change [Book2]Sheet1!$A:$A to suit.
    Please Login or Register  to view this content.
    多么想要告诉你 我好喜欢你

  3. #3
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    Re: Look into another workbook and if the value is there, mark as Yes

    Hi

    i applied it to my cell references (used above to make it easier)
    and it doesnt appear to work

    Please Login or Register  to view this content.
    the above is right?

    thanks

  4. #4
    Forum Contributor
    Join Date
    03-20-2013
    Location
    Manchester
    MS-Off Ver
    Excel 2010
    Posts
    200

    Re: Look into another workbook and if the value is there, mark as Yes

    tried this way too, no matter what it returns as "FALSE":s

    Please Login or Register  to view this content.

  5. #5
    Forum Contributor guitarsweety's Avatar
    Join Date
    10-30-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2010
    Posts
    188

    Re: Look into another workbook and if the value is there, mark as Yes

    try this

    Formula: copy to clipboard
    Please Login or Register  to view this content.

  6. #6
    Forum Expert millz's Avatar
    Join Date
    08-14-2013
    Location
    Singapore
    MS-Off Ver
    Excel, Access 2016
    Posts
    1,694

    Re: Look into another workbook and if the value is there, mark as Yes

    See sample workbook to show that the same formula works, except it is looking at Sheet2 in the same workbook.

    Reason why it didn't work for you should be because you messed up the formula somewhere.

    What you can try is remove the part of there formula stating the range of cells to look up, and then manually switch over to your workbook and select the range -- let Excel fill in the range.


    Edit: Didn't notice you have marked it solved.
    Attached Files Attached Files

+ 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. Automate Series Number With Adding Mark (.) or mark "-"
    By Jhon Mustofa in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-06-2014, 12:38 PM
  2. Replies: 2
    Last Post: 10-28-2013, 03:52 PM
  3. Mark a sheet or workbook if any tab changes protection state
    By Gunther Maplethorpe in forum Excel General
    Replies: 2
    Last Post: 06-10-2013, 11:50 AM
  4. Mark data from one sheet to another,and then mark dublicate
    By minotauro in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-10-2012, 07:58 AM
  5. Quatation mark or single mark in sql query
    By Snoopy2003 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2010, 06:03 PM

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