+ Reply to Thread
Results 1 to 11 of 11

VLOOKUP returning #NAME?

  1. #1
    Registered User
    Join Date
    08-18-2010
    Location
    Lincoln, UK
    MS-Off Ver
    Professional Plus 2010
    Posts
    37

    VLOOKUP returning #NAME?

    Tis me again

    The following formula:
    =IFERROR(VLOOKUP($A4,'G:\Plan_Asset\School Organisation\Numbers on Roll\[CSPA_196_SCH Number on Roll_Jan_2013.xls]Nursery NC Year'!$C$4:$I$9,6,FALSE),IFERROR(VLOOKUP($A4,'G:\Plan_Asset\School Organisation\Numbers on Roll\[CSPA_196_SCH Number on Roll_Jan_2013.xls]Primary NC Year'!$C$4:$S$280,13,FALSE),IFERRROR(VLOOKUP($A4,'G:\Plan_Asset\School Organisation\Numbers on Roll\[CSPA_196_SCH Number on Roll_Jan_2013.xls]Secondary NC Year'!$C$4:$S$280,12,FALSE),IFERROR(VLOOKUP($A4,'G:\Plan_Asset\School Organisation\Numbers on Roll\[CSPA_196_SCH Number on Roll_Jan_2013.xls]Special NC Year'!$C$5:$Z$25,21,FALSE),IFERROR(VLOOKUP($A4,'G:\Plan_Asset\School Organisation\Numbers on Roll\[CSPA_196_SCH Number on Roll_Jan_2013.xls]PRU NC Year'!$B$5:$S$6,15,FALSE),0)))))
    Returns the correct value 60% of the time. However for the other 40% is returns #NAME?. Can anybody advise why and what to do about it please. All columns are set to General and I have checked for hidden characters.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,831

    Re: VLOOKUP returning #NAME?

    Presumably one of those sheets doesn't exist (or is named differently in the file), and this only shows up when you are trying to access data from that sheet. Just check the sheet names in the file for extra spaces. Use Evaluate Formula on one of the faulty cells and step through to try to identify why it is giving that error.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    08-18-2010
    Location
    Lincoln, UK
    MS-Off Ver
    Professional Plus 2010
    Posts
    37

    Re: VLOOKUP returning #NAME?

    Been through it, can't find anything. Decided to rewrite it using more local data:

    =IFERROR(VLOOKUP($A8,Nurseries!$A$2:$O$6,14,FALSE),IFERROR(VLOOKUP($A8,Primaries!$A$2:$O$278,14,FALSE),IFERRROR(VLOOKUP($A8,Secondaries!$A$2:$O$55,14,FALSE),IFERROR(VLOOKUP($A8,Specials!$A$2:$P$22,15,FALSE),IFERROR(VLOOKUP($A8,PRUs!$A$2:$O$2,14,FALSE),0)))))

    with the same result. It seems to stall at the point:

    IFERRROR(VLOOKUP($A8,Secondaries!$A$2:$O$55,14,FALSE)

    as it returns all results for enquiries up to that.

    To put it politely, it is doing my head in and it is probably something very simple!

  4. #4
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,458

    Re: VLOOKUP returning #NAME?

    If you replace VLOOKUP($A8,Secondaries!$A$2:$O$55,14,FALSE) with
    Please Login or Register  to view this content.
    do you still get the error?

  5. #5
    Registered User
    Join Date
    08-18-2010
    Location
    Lincoln, UK
    MS-Off Ver
    Professional Plus 2010
    Posts
    37

    Re: VLOOKUP returning #NAME?

    Yes Thanks

  6. #6
    Registered User
    Join Date
    08-18-2010
    Location
    Lincoln, UK
    MS-Off Ver
    Professional Plus 2010
    Posts
    37

    Re: VLOOKUP returning #NAME?

    And it is that section because if I take it out enquiries to the other sheets all work. Just cannot see anything wrong with that enquirie and the sheet exists!

  7. #7
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,458

    Re: VLOOKUP returning #NAME?

    Have you tried formula auditing to find dependents?

  8. #8
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,831

    Re: VLOOKUP returning #NAME?

    Well, maybe it's time to post a sample workbook - the FAQ describes how to.

    Pete

  9. #9
    Registered User
    Join Date
    08-18-2010
    Location
    Lincoln, UK
    MS-Off Ver
    Professional Plus 2010
    Posts
    37

    Re: VLOOKUP returning #NAME?

    Stripped down to the bare bones of the one that does not work and one that does.
    Sample VLOOKUP Book.xlsx

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,831

    Re: VLOOKUP returning #NAME?

    Ah! Difficult to spot, but you have IFERRROR, i.e. 3 Rs in the middle.

    Hope this helps.

    Pete

  11. #11
    Registered User
    Join Date
    08-18-2010
    Location
    Lincoln, UK
    MS-Off Ver
    Professional Plus 2010
    Posts
    37

    Re: VLOOKUP returning #NAME?

    Quote Originally Posted by redimp View Post
    To put it politely, it is doing my head in and it is probably something very simple!
    I thought it would be something like that - these things really can be frustrating at times. Thanks for seeing the twig in the forest for me.

+ 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