+ Reply to Thread
Results 1 to 13 of 13

Why give this formula "FALSE"? help me

  1. #1
    Registered User
    Join Date
    05-12-2009
    Location
    Egypt
    MS-Off Ver
    Excel 2003, 2007, 2010 and 2013
    Posts
    56

    Why give this formula "FALSE"? help me

    =IF(OR(AND(H2<=100,I2<=10),AND(H2<=750,I2<=6)),"S1",IF(OR(AND(H2<=100,I2<=18),AND(H2<=750,I2<10)),"S2",IF(OR(AND(H2<=100,I2<=26),AND(H2<=750,I2<18)),"S3",IF(OR(AND(H2<=100,I2>26),AND(H2<=750,I2>18)),"S4"))))

    i want value, not false, true or blank cell

    Give "FALSE", WHY?
    Last edited by medo82006; 05-20-2013 at 11:54 PM. Reason: Change Title

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Why = false

    Please change your thread title to meaningful heading so that we can able to give suggestion to your thread.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Why = false

    well, without seeing the actual data, I would guess that the data does not meet any of the true conditions of the nested if, and as there is no value for the last false condition( (OR(AND(H2<=100,I2>26),AND(H2<=750,I2>18)),"S4") ), it returns the state of the argument of the test (FALSE), if you changed the last bit to this - (OR(AND(H2<=100,I2>26),AND(H2<=750,I2>18)),"S4",""), it would return a blank instead ?
    A picture may be worth a thousand words, BUT, a sample Workbook is worth a thousand screenshots!
    -Add a File - click advanced (next to quick post), scroll to manage attachments, click, select add files, click select files, select file, click upload, when file shows up at bottom left, click done (bottom right), click submit
    -To mark thread Solved- go top of thread,click Thread Tools,click Mark as Solved
    If you received helpful response, please remember to hit the * of that post

  4. #4
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Why = false

    Sorry Sixth..I guess I was writing my my answer when you replied

  5. #5
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,770

    Re: Why = false

    @ dredwolf,

    No sorry and all , we are aware about us and it happens to every one of us...

  6. #6
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: Why = false

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  7. #7
    Registered User
    Join Date
    05-12-2009
    Location
    Egypt
    MS-Off Ver
    Excel 2003, 2007, 2010 and 2013
    Posts
    56

    Re: Why = false

    Thank you for your response, but i want value, not false, true or blank cell

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: Why give this formula "FALSE"? help me

    your last if() is missing the "else" part....

    =IF(OR(AND(H2<=100,I2<=10),AND(H2<=750,I2<=6)),"S1",
    IF(OR(AND(H2<=100,I2<=18),AND(H2<=750,I2<10)),"S2",
    IF(OR(AND(H2<=100,I2<=26),AND(H2<=750,I2<18)),"S3",
    IF(OR(AND(H2<=100,I2>26),AND(H2<=750,I2>18)),"S4"))))

  9. #9
    Forum Expert dredwolf's Avatar
    Join Date
    10-27-2012
    Location
    Clearwater,Canada
    MS-Off Ver
    Excel 2007
    Posts
    2,649

    Re: Why give this formula "FALSE"? help me

    AND, just as a 'by the way', I explained why you got the false...no conditions meet the true parts of the nested if's, and the last false was not defined, so it returned a FALSE..(or 0, if you prefer); you just have to make sure all conditions get a answer in your nested if's...

  10. #10
    Registered User
    Join Date
    05-12-2009
    Location
    Egypt
    MS-Off Ver
    Excel 2003, 2007, 2010 and 2013
    Posts
    56

    Re: Why give this formula "FALSE"? help me

    Thank you for your response, but the same result the formula give "FALSE"
    please look attach file
    Attached Images Attached Images
    Attached Files Attached Files

  11. #11
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: Why give this formula "FALSE"? help me

    OK Im looking at your file. I see nowhere where you have that formula?

    did you upload the correct file? you make reference to data in H&!, but there is no data in H or I?

  12. #12
    Registered User
    Join Date
    05-12-2009
    Location
    Egypt
    MS-Off Ver
    Excel 2003, 2007, 2010 and 2013
    Posts
    56

    Re: Why give this formula "FALSE"? help me

    look attach file
    data.xlsx

  13. #13
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,942

    Re: Why give this formula "FALSE"? help me

    That is not the same formula you showed us to begin with, but it has the exact same problem...your last IF() is missing the last part. we have already pointed this out to you a number of times....

    =IF(AND(H2<=100,I2<=10),"S1",
    IF(AND(H2<=750,I2>6),"S1",
    IF(AND(H2<=100,I2<=18),"S2",
    IF(AND(H2<=750,I2>10),"S2",
    IF(AND(H2<=100,I2<=26),"S1",
    IF(AND(H2<=750,I2>18),"S3",
    IF(AND(H2<=100,I2>26),"S3",
    IF(AND(H2<=750,I2>18),"S4",""))))))))

+ 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