+ Reply to Thread
Results 1 to 15 of 15

vlookup problem

  1. #1
    Registered User
    Join Date
    08-15-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    43

    vlookup problem

    Hi I have two tabs on my spreadsheet, one (input) contains all of the data and the other (cnn) has vlookup formulas to search the input sheet. However the input sheet has become corrupted so I need to delete it and create another sheet. But when I try to do this the formula does not work. I have tried to create a whole new spreadsheet but I cannot get the formula to work. Please help.

    Below is the formula I am using.
    The CNN in the formula below first looks at a cell named CNN (in this cell will be something like this CRE101) in the cnn sheet and then go to the input tab and find CRE101 then return the value of what is in column 5.

    =VLOOKUP(CNN,input,5,FALSE)

  2. #2
    Registered User
    Join Date
    04-07-2014
    Location
    Taipei, Taiwan
    MS-Off Ver
    2011
    Posts
    17

    Re: vlookup problem

    I think you need to put the table range in the Input Sheet? Try something like this:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Where A1:E10 contains your data.

    Or maybe I misunderstood. Can you post the workbook here?

  3. #3
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,501

    Re: vlookup problem

    In your first version was "input" also a table name? if it was that might explain why it worked. Otherwise you have to put parameters around the formula such as those suggested by dkorbat.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Registered User
    Join Date
    08-15-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: vlookup problem

    Thank you for your replies.

    the problem I have is that it always worked perfectly before and still works on my old spreadsheet.

    However I cannot get it to work now if I delete the input tab and recreate another with the same name. It does not recognize the new sheet.

  5. #5
    Registered User
    Join Date
    08-15-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: vlookup problem

    I want to attach a working example and a non working one but there is absolutely nowhere on this page to attach it. Please help.
    Last edited by arytxer; 04-10-2014 at 06:09 AM.

  6. #6
    Registered User
    Join Date
    08-15-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: vlookup problem

    This is my non working example

  7. #7
    Registered User
    Join Date
    04-07-2014
    Location
    Taipei, Taiwan
    MS-Off Ver
    2011
    Posts
    17

    Re: vlookup problem

    I've took a look and it will work if you put the range as I've mentioned in my first reply.
    Should this be enough to answer your question? Or you'd prefer to use a named range instead?
    Attached Files Attached Files
    Last edited by dkorbat; 04-10-2014 at 06:20 AM.

  8. #8
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,371

    Re: vlookup problem

    You forgot type the ranges:

    =VLOOKUP(CNN,input,5,FALSE)

    Should be
    =VLOOKUP(CNN,Input!A1:E1,5,FALSE)

  9. #9
    Registered User
    Join Date
    08-15-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: vlookup problem

    But I've never needed the ranges because the actual spreadsheet I work from has about 60 columns and it has always worked without the ranges.

    Do you know how I delete files from attachments because I cannot add the working example as it says there is not enough space.

    If you could see the working example you will see what I mean.

  10. #10
    Registered User
    Join Date
    04-07-2014
    Location
    Taipei, Taiwan
    MS-Off Ver
    2011
    Posts
    17

    Re: vlookup problem

    arytxer: go to Settings on the top right corner of this forum and in the bottom left there's a menu Attachments under Miscellaneous. You can delete your attachments from there.

  11. #11
    Registered User
    Join Date
    08-15-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: vlookup problem

    I have tried that and deleted something but when I checked they are all still there.

    I am stumped. Is there any other way of deleting them or do I have to log out-in again?

  12. #12
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 2019
    Posts
    2,371

    Re: vlookup problem

    its not possible without ranges, unless the ranges given name by name manager on excel so the ranges hidden by the name....

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    81,266

    Re: vlookup problem

    Quote Originally Posted by arytxer View Post
    Thank you for your replies.

    the problem I have is that it always worked perfectly before and still works on my old spreadsheet.

    However I cannot get it to work now if I delete the input tab and recreate another with the same name. It does not recognize the new sheet.
    By deleting the sheet referenced in the formula, you have broken the formula. Adding the sheet back will not work. The best thing would to be to add a new sheet with a different name, then use find and replace to change the reference in the formula.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  14. #14
    Registered User
    Join Date
    08-15-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: vlookup problem

    Thank you Azumi you hit the nail on the head. I didn't realise that the range was hidden. I guess this is to keep the formula as short as possible.

    I added the range and it worked a treat and then I removed it and it still worked, I am guessing that it is still there but now just hidden.

    Can you tell me how I unhide it please so I can amend the range?

  15. #15
    Registered User
    Join Date
    08-15-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: vlookup problem

    Hi everyone thank you all for your help I have played around and have finally sorted the problem. I have amended the data in the name manager and it works a treat.

    All the best

+ 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. Vlookup problem in a loop with cell property and variable cell problem (long title sry)
    By ExcelsiorLux in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-13-2013, 10:38 AM
  2. Replies: 6
    Last Post: 05-28-2013, 05:08 PM
  3. vlookup? match? index? MULTIPLE criteria for vlookup search problem....
    By aborg88 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 02-11-2013, 09:56 AM
  4. vlookup problem and count problem
    By thy00123 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 06-05-2009, 04:31 AM
  5. Vlookup Problem
    By cline818 in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 03-31-2005, 08: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