+ Reply to Thread
Results 1 to 3 of 3

Nested IF Statement returning False

  1. #1
    Registered User
    Join Date
    11-08-2014
    Location
    Guwahati, India
    MS-Off Ver
    2010
    Posts
    20

    Question Nested IF Statement returning False

    Hi,

    I'm facing a problem in getting the desired result in a nested IF statement. My problem is summarized as under:

    1) F27>=40% K27*4500
    2) F27>=30% K27*4000
    3) D44=C44 & D45=C45

    I have arrived at the formula =IF(AND($D$44=$C$44,$D$45=$C$45),IF(F27>=40%,K27*4500,IF(F27>=30%,K27*4000,0))) but getting the result as False.

    Kindly help to get the desired result.

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,215

    Re: Nested IF Statement returning False

    Formula is OK: ensure F27 is formatted as %

    =IF(AND($D$44=$C$44,$D$45=$C$45),IF(F27>=40%,K27*4500,IF(F27>=30%,K27*4000,0)),"")
    Last edited by JohnTopley; 12-14-2016 at 02:03 PM.

  3. #3
    Forum Expert Palmetto's Avatar
    Join Date
    04-04-2007
    Location
    South Eastern, USA
    MS-Off Ver
    XP, 2007, 2010
    Posts
    3,978

    Re: Nested IF Statement returning False

    Another way, assuming values in C44:D45 are numbers

    =IF(SUM(C44:C45)=SUM(D44:D45),K27*LOOKUP(F27,{0,0.3,0.4},{0,4000,45000}),0)

    Since D44 and D45 must match C44 and C45, they should have matching sums

    If C44:D45 are not numbers

    =IF(AND(D44=C44,D45=C45),K27*LOOKUP(F27,{0,0.3,0.4},{0,4000,45000}),0)
    Palmetto

    Do you know . . . ?

    You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.

+ 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. Nested If function returning FALSE instead of number
    By erimhast in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-09-2015, 07:47 PM
  2. [SOLVED] Nested IF Statement goes to False
    By unit285 in forum Excel General
    Replies: 14
    Last Post: 11-14-2015, 01:29 PM
  3. Nested IF Returning False - Need to Return True for Three Scenarios
    By rhelmer in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 05-18-2015, 05:50 PM
  4. Nesting IFs to avoid returning 'FALSE' with only one IF statement
    By kev1nski in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-13-2014, 09:06 PM
  5. [SOLVED] Help on If Statement returning a FALSE value
    By JenMcG in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2014, 11:53 AM
  6. [SOLVED] Nested IF statements are returning FALSE values - cannot find error in code!
    By apex_chio in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-03-2013, 11:01 PM
  7. Nested IF returning FALSE value help
    By crash884 in forum Excel General
    Replies: 3
    Last Post: 08-13-2013, 01:31 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