Results 1 to 6 of 6

Thread: Problem with "IF" in excel

  1. #1
    Join Date
    Jul 2009
    Posts
    154

    Problem with "IF" in excel

    Hello
    I have a formula for the IF function and I'd like to find a solution for it , see if you have any solution for this one
    In general I am trying to do this
    Code:
    -if the MG is between 18 and 12, the entry is "fine"
    -if the MG is <12, the statement is "not allowed"
    Thank you in advance.
    Last edited by Triple-X; 30-12-2009 at 12:41 PM.

  2. #2
    Join Date
    May 2008
    Posts
    4,831

    Re: Problem with "IF" in excel

    Hello,
    The MG in A1 should be some thing like this.
    Code:
    SI =(A1 <12;"allowed", IF(A1 <=18;"well";""))
    And not the one which you are using.
    -if the MG is between 18 and 12, the entry is "fine"
    -if the MG is <12, the statement is "not allowed"
    Try the above and it will work.

  3. #3
    Join Date
    Jul 2009
    Posts
    154

    Re: Problem with "IF" in excel

    Hello
    Thank you for your reply
    But as you know the table if the formula are in 3 category
    1 - TEST LOGIC
    2- value_if_true
    3- value if false
    now you just answered my 3rd point, I guess, on which the value false if I'd like to have it on 3 stages. If you have any solution for the remaining then please do post back.

  4. #4
    Join Date
    May 2008
    Posts
    4,831

    Re: Problem with "IF" in excel

    Hello
    Ok, you can try this out, see if it works with you. It work fine with me.
    Code:
    = IF (
    logical test: A1 <12;
    value_if_true: "not allowed";
    value_if_false: IF (A1 <= 18; "fairly ";"")
    Code:
    = IF (
    logical test: A1 <= 18;
    value_if_true: "fairly well";
    value_if_false: ""
    Hope you will solve your problem. And if any more queries then do post back.

  5. #5
    Join Date
    Jul 2009
    Posts
    154

    Re: Problem with "IF" in excel

    Hello
    = IF (
    logical test: A1 <12;
    value_if_true: "not allowed";
    value_if_false: IF (A1 <= 18; "fairly ";"")
    Thanks for you answer, I think this will work for me.
    It has given me a positive reply, but I do not understand what is happening in the back ground. If you could explain me in more details it will be appreciated.

  6. #6
    Join Date
    May 2008
    Posts
    4,570

    Re: Problem with "IF" in excel

    Hello
    Instead of the following formula to use
    Code:
    SI =(A1 <12;"allowed", IF(A1 <=18;"well";""))
    You can use this formula, it would be much more effective than the earlier one.
    Code:
    = IF (A1 <12,"not allowed", IF (A1 <= 18,"fairly well",""))
    Hope you will try this one.

Similar Threads

  1. Replies: 1
    Last Post: 21-03-2013, 04:13 PM
  2. Replies: 3
    Last Post: 04-03-2012, 01:53 AM
  3. Replies: 6
    Last Post: 18-05-2010, 12:27 AM
  4. Replies: 1
    Last Post: 15-11-2007, 02:13 PM
  5. Replies: 2
    Last Post: 17-01-2007, 09:47 PM

Tags for this Thread

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
  •  
Page generated in 1,715,075,238.74245 seconds with 17 queries