+ Reply to Thread
Results 1 to 9 of 9

VLOOKUP won't let me select cells in another sheet

Hybrid View

  1. #1
    Registered User
    Join Date
    04-13-2017
    Location
    Sweden
    MS-Off Ver
    Mac 2011
    Posts
    4

    VLOOKUP won't let me select cells in another sheet

    Hi,

    so I am trying to use VLOOKUP to fill in data from another workbook in a table of 20,000+ items. In the example below I have just copied the first 30 or so items into a seperate sheet to avoid images of thousands of numbers.

    All I am trying to do is use the ENSG ID in the first file to lookup the gene name in the second file. Should be very simple, and I have done this many times before. but I have now run into a weird bug.

    I start writing the formula as normal, as below, and select the ID that I want to look up: B2
    Screenshot 2017-04-13 12.48.53.png

    Then I switch to the second workbook and try and select the table, however excel doesn't register the change in workbook and just puts the plain reference into the formula without the workbook reference.
    Screenshot 2017-04-13 12.49.48.png

    Even weirder, when I finish off writing the full VLOOKUP forumula, it inputs the entire thing into whichever cell I happened to leave selected in the second sheet, rather than reverting back to the original sheet.
    Screenshot 2017-04-13 12.50.04.png
    Screenshot 2017-04-13 12.50.29.png

    I have used the VLOOKUP command successfully many times before in similar situations, and I have no idea how to solve this problem. I don't know if I have changed some setting somewhere which has caused this to happen or what. Can anyone help?

  2. #2
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    3,996

    Re: VLOOKUP won't let me select cells in another sheet

    Welcome to excel forum
    Attach a sample workbook. Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  3. #3
    Registered User
    Join Date
    04-13-2017
    Location
    Sweden
    MS-Off Ver
    Mac 2011
    Posts
    4

    Re: VLOOKUP won't let me select cells in another sheet

    Ok I have uploaded two files I think.

    The table I am tring to use VLOOKUP to get information TO is called isoform_fpkm_tableTest, the one I am trying to VLOOKUP data FROM is called fpkm_table_originalTest. There is a sheet2 inside the isoform table with an example of what I am trying to do. ( I wante to use VLOOKUP with more data afterwards, but this is just the gene names as they are not sensitive data)
    Attached Files Attached Files

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: VLOOKUP won't let me select cells in another sheet

    I can't reproduce exactly what you've done. But it does work fine for me.

    I did notice that the filename did not automatically appear in the formula in the 4th pic. How were you entering the A2 to B33 reference? Did you just type it in or did you select the cells directly from the source sheet?

    on mine (both files open) it looks like this:



    =VLOOKUP(B2,[fpkm_table_originalTest.xlsx]fpkm_table.txt!$A$2:$B$33,2,FALSE)

    and with the source file closed, like this:
    =VLOOKUP(B2,'C:\Users\Windows 8\Desktop\[fpkm_table_originalTest.xlsx]fpkm_table.txt'!$A$2:$B$33,2,FALSE)
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  5. #5
    Registered User
    Join Date
    04-13-2017
    Location
    Sweden
    MS-Off Ver
    Mac 2011
    Posts
    4

    Re: VLOOKUP won't let me select cells in another sheet

    I did notice that the filename did not automatically appear in the formula in the 4th pic. How were you entering the A2 to B33 reference? Did you just type it in or did you select the cells directly from the source sheet?
    Yes that is the problem, I usually go to the second file and highlight the table that I want to VLOOKUP from. Usually it inputs the filename and sheetname into the formula, but currently it just inputs the cell numbers and then relocates the entire formula to the new file.

    I know what is SHOULD do, I just don't want to have to type out the filename and directory every time I do a vlookup! Previously it always inputted that into the formula automatically.
    Last edited by Philman132; 04-13-2017 at 09:04 AM.

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,279

    Re: VLOOKUP won't let me select cells in another sheet

    refer attach file
    In "C2"
    Formula: copy to clipboard
    =VLOOKUP(B2,'C:\Documents and Settings\Administrator\My Documents\Downloads\[fpkm_table_originalTest.xlsx]fpkm_table.txt'!$A$2:$B$33,2,0)


    Also by index match you can do.
    In "D2"
    Formula: copy to clipboard
    =INDEX('C:\Documents and Settings\Administrator\My Documents\Downloads\[fpkm_table_originalTest.xlsx]fpkm_table.txt'!$B$2:$B$33,MATCH(B2,'C:\Documents and Settings\Administrator\My Documents\Downloads\[fpkm_table_originalTest.xlsx]fpkm_table.txt'!$A$2:$A$33,0))

    Copy paste down [Array formula ensure SHIFT+CTRL+ENTER]
    Attached Files Attached Files


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  7. #7
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: VLOOKUP won't let me select cells in another sheet

    This sounds like a system issue. Is this Excel getting its wires crossed?
    Perhaps a full reboot first (including switching off the power)
    Then try to recreate the problem with 2 new (simple) files.
    (If the problem is still there - perhaps reinstall MS Office)
    Then try the original 2 files again.

  8. #8
    Registered User
    Join Date
    04-13-2017
    Location
    Sweden
    MS-Off Ver
    Mac 2011
    Posts
    4

    Re: VLOOKUP won't let me select cells in another sheet

    Quote Originally Posted by kev_ View Post
    This sounds like a system issue. Is this Excel getting its wires crossed?
    Perhaps a full reboot first (including switching off the power)
    Then try to recreate the problem with 2 new (simple) files.
    (If the problem is still there - perhaps reinstall MS Office)
    Then try the original 2 files again.
    I restarted everything and created two new files as you suggested. The two new files did VLOOKUP normally between them absolutely fine. I reopened the old files again and still have the same problem. I tried doing a VLOOKUP between two other, completely unrelated, files that I also have in a completely different folder, and still have the same problem.

    When I make a new file and save it, and try to do a VLOOKUP FROM an old file TO a new file, I have the problem, but if I try and do a VLOOKUP FROM the new file TO the old file, it works fine.

  9. #9
    Forum Expert
    Join Date
    11-22-2016
    Location
    Cornwall,UK
    MS-Off Ver
    office 365
    Posts
    4,240

    Re: VLOOKUP won't let me select cells in another sheet

    As I suspected - this tells us that the problem is an Excel system problem.
    The lack of consistency (works properly with 2 clean files, not with old files) could point to a temporary file that is not auto-deleting.

    I notice that you are on a MAC and so I think it is unlikely that anyone with windows can re-create this problem. I cannot see evidence on the internet of other users with the same problem.

    I would try re-installing Office - that tends to be the quickest way to resolve problems like this.
    Click *Add Reputation to thank those who helped you. Ask if anything is not clear

+ 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. Select range of cells on sheet 2 and concatenate into one cell on sheet one
    By dwachtveitl in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 07-13-2014, 11:59 PM
  2. Copy select cells from one sheet into the next available column in another sheet
    By gsjan1 in forum Excel Programming / VBA / Macros
    Replies: 15
    Last Post: 01-31-2012, 05:55 PM
  3. Copy select cells from one sheet into the next available column in another sheet
    By gsjan1 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2012, 05:45 PM
  4. Select cells, then copy those rows to new sheet
    By hutch@edge.net in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2009, 02:19 PM
  5. select whole cells in sheet
    By ccs1981 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-20-2008, 03:26 AM
  6. Still can select locked cells in protected sheet
    By Andy in forum Excel - New Users/Basics
    Replies: 11
    Last Post: 10-29-2005, 03:05 PM
  7. [SOLVED] select all cells in sheet
    By djh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2005, 09:06 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