+ Reply to Thread
Results 1 to 4 of 4

If Statement Returns FALSE

  1. #1
    Registered User
    Join Date
    06-04-2017
    Location
    Peshawar
    MS-Off Ver
    2013
    Posts
    2

    If Statement Returns FALSE

    Hi,

    I am working on Excel Sheet that contains Marks of Students. I am calculating A+, A, B, C & D Grades using IF Statement. I am using the following formula to calculate:

    =IF(H37>=80,"A+",IF(H37>=70,"A",IF(H37>=60,"B",IF(H37>=50,"C",IF(H37<=40,"D")))))

    In all cells the value is according to formula but in Cell "H37" it showing FALSE instead of "D". Can anyone tell me how to correct it and what I am doing wrong? What should I write if there is a mistake in it?

    Thanking you in advance.
    Attached Images Attached Images
    Shahzad Zameer

  2. #2
    Forum Contributor
    Join Date
    12-22-2017
    Location
    INDIA
    MS-Off Ver
    EXCEL 2007
    Posts
    106

    Re: If Statement Returns FALSE

    You missed between 41 to 49 in the If statement that is why it is showing as FALSE

    =IF(H37>=80,"A+",IF(H37>=70,"A",IF(H37>=60,"B",IF(H37>=50,"C",IF(H37<=40,"D"," ")))))

    Use this formula if you enter between 41 to 49, it will show blank
    Last edited by chandy123987; 12-02-2019 at 03:49 AM.
    If solved press * add reputation

  3. #3
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Office 365
    Posts
    3,937

    Re: If Statement Returns FALSE

    Try

    =IF(H37>=80,"A+",IF(H37>=70,"A",IF(H37>=60,"B",IF(H37>=50,"C",IF(H37>=40,"D")))))

    Or simple one

    =LOOKUP(H37,{0,"D";50,"C";60,"B";70,"A";80,"A+"})
    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)

  4. #4
    Registered User
    Join Date
    06-04-2017
    Location
    Peshawar
    MS-Off Ver
    2013
    Posts
    2

    Re: If Statement Returns FALSE

    Thank You so much for your quick response and help. Be Blessed.

+ 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. [SOLVED] If statement returns false in some applications.
    By Mr_Phil in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 08-17-2017, 06:41 PM
  2. If statement returns #N/A when false
    By orangebloss in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-24-2015, 10:53 AM
  3. If statement returns false instead of value
    By seiyakou in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-06-2012, 04:47 PM
  4. If Statement Returns False
    By Brenda42 in forum Excel General
    Replies: 3
    Last Post: 04-14-2011, 02:28 PM
  5. [SOLVED] IF Statement returns FALSE
    By berger01 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-26-2011, 03:31 PM
  6. if statement returns #VALUE! if false
    By johnmerlino in forum Excel General
    Replies: 1
    Last Post: 09-19-2010, 07:44 PM
  7. IF Statement returns either Value error or False
    By katja328 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-07-2010, 12:46 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