+ Reply to Thread
Results 1 to 4 of 4

Thread: Error on formula - help!!

  1. #1
    Registered User
    Join Date
    01-05-2012
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    13

    Error on formula - help!!

    Hi
    Im using microsoft excel for my a-level project.
    my project is for a primary school teachers grading system.
    However when i change the possible marks from 100 to anything above that the VLOOKUP formula will not work correctly and 1%, 3% 5% 7% ect will *** up with #N/A this is by changing the possible marks from 100 to 200.
    The formula that i'm using is =VLOOKUP(H14,'Grades Table'!E5:F105,2,FALSE)

    Is there anyway or anything that I will be able to do so no matter how many marks the tests are out of this error will not appear

    Please see attachment for a copy of the workbook. if any ways to solve the problem please comment.!
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    10-28-2008
    Location
    Not here anymore
    MS-Off Ver
    irrelevant
    Posts
    10,151

    Re: Error on formula - help!!

    Please have a look at the forum rules and then come up with a more descriptive title for your problem.

    thanks,

  3. #3
    Registered User
    Join Date
    04-19-2010
    Location
    Ohio, USA
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Error on formula - help!!

    Try =IF(H14 > 1, "5a", VLOOKUP(H14,'Grades Table'!E5:F105,2,FALSE))

    This will look at the grade and if its > 100% (1) it will give it a 5a (Or you can put whatever you want to denote > 100%), if it is less it will continue with the vlookup as normal.

    There is also ifError(VLOOKUP(H14,'Grades Table'!E5:F105,2,FALSE), "5a") but can be dangerous when looking up something like this.

    A 3d way would be changing the last argument of the vlookup to "TRUE" I think, it will take the closest value since you have a sorted list but you would need to resort it in the other direction. It has to be ascending.
    Last edited by teylyn; 01-06-2012 at 06:35 AM. Reason: restored

  4. #4
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    10,806

    Re: Error on formula - help!!

    that is not quite the answer! but my last post has been deleted probably awaiting an title change!
    Last edited by martindwilson; 01-05-2012 at 08:39 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and a dabbler in Cisco
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ 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.2.0