+ Reply to Thread
Results 1 to 13 of 13

If Function with multi symbol ">" & value in formula

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    If Function with multi symbol ">" & value in formula

    Hi, I'm using following formula for my checksheet.

    =IF(AND(B9="",C9=""),"",IF(OR(AND(C9="",B9>=10,B9<=> 1000),AND(B9>=10,C9>=10,B9<=> 1000,C9<=> 1000)),"OK","NG"))
    I need to make the function to work on "> 1000" input value, but I can't enter the value "> 1000"
    because Excel will correct it to "1000". Is there any other way to solve it?

    Thank you in advance
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: If Function with multi symbol ">" & value in formula

    I think the problem is the <=> part of your formula. To have 'Not Equal To' use <>. If you just want 'Greater Than' then just > is enough. Try
    Formula: copy to clipboard
    =IF(AND(B9="",C9=""),"",IF(OR(AND(C9="",B9>=10,B9> 1000),AND(B9>=10,C9>=10,B9> 1000,C9> 1000)),"OK","NG"))
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  3. #3
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: If Function with multi symbol ">" & value in formula

    Dear gak67,

    Thank you for your feedback & advise.

    FYI, my operator only will input "> 1000" into the "B14" cell for
    value more than 1000, and it's a standard input value (refer attached file).

    Thanks again

  4. #4
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: If Function with multi symbol ">" & value in formula

    The range is between 10 to > 1000

  5. #5
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: If Function with multi symbol ">" & value in formula

    Try this in D8 and copied down:
    Formula: copy to clipboard
    =IF(AND(B8="",C8=""),"",IF(OR(AND(C8="",B8>=10,B8<>"> 1000"),AND(B8>=10,C8>=10,B8<>"> 1000",C8<>"> 1000")),"OK","NG"))

    If any number over 1000 is entered as '> 1000' you don't need the <=1000 check as the number has to be <=1000, because if it was more it would be entered as '> 1000'. I have therefore replaced the <=1000 check with a <>"> 1000" check.

    Please note the operator must enter it as '> 1000'. If it is entered some other way (such as '>1000' or '> 1000 ') it will not work correctly. I would suggest putting this in a custom data validation and adding the appropriate input message and/or error alert:
    Formula: copy to clipboard
    =OR(B8="> 1000",AND(B8>0,B8<=1000))
    (I am assuming the MOhm's cannot be negative).

  6. #6
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: If Function with multi symbol ">" & value in formula

    You can have the same result though without worrying about including '> 1000' in your formula, and with a slightly shorter formula, with this:
    Formula: copy to clipboard
    =IF(AND(B8="",C8=""),"",IF(AND(B8>=10,B8<=1000),IF(OR(C8="",AND(C8>=10,C8<=1000)),"OK","NG"),"NG"))

  7. #7
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: If Function with multi symbol ">" & value in formula

    Dear gak67,

    Thank you for your reply.

    I tried your suggested formula
    =IF(AND(B8="",C8=""),"",IF(OR(AND(C8="",B8>=10,B8<>"> 1000"),AND(B8>=10,C8>=10,B8<>"> 1000",C8<>"> 1000")),"OK","NG"))
    but then it can be input with any text with "OK" return value.

    So I try to change the <> to = sign
    =IF(AND(B14="",C14=""),"",IF(OR(AND(C14="",B14>=10,B14="> 1000"),AND(B14>=10,C14>=10,B14="> 1000",C14="> 1000")),"OK","NG"))
    but then value input (eg.: 10 and above) the return value become NG

    I heard about ISTEXT function, is it can be combine with this IF function?

    Thank you again

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: If Function with multi symbol ">" & value in formula

    Hi there. What about this (using a couple of hidden helper columns).
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  9. #9
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: If Function with multi symbol ">" & value in formula

    Hi Glenn,

    Thank you for your suggestion.
    If possible, I don't want to use hidden formula, I just need the formula
    in the RESULT column only.
    If I need to hide the column, it will effect my other worksheet setting.

    Anyhow, thank you again for your advise

  10. #10
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: If Function with multi symbol ">" & value in formula

    OK then. try this

    Formula: copy to clipboard
    =IF(AND(B9="",C9=""),"",IF(AND(OR(B9="",B9>=10,B9="> 1000"),OR(C9="",C9>=10,C9="> 1000",C9="> 1000")),"OK","NG"))


    If you like it, it may need a slight modification, in case someone enters >1000 instead of > 1000.

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: If Function with multi symbol ">" & value in formula

    Don't forget that the hidden rows can be ANYWHERE. On the same sheet, on another sheet. they DON'T have to be next door to your Table.

  12. #12
    Forum Contributor
    Join Date
    11-29-2013
    Location
    Malaysia
    MS-Off Ver
    Excel 2007
    Posts
    106

    Re: If Function with multi symbol ">" & value in formula

    Thanks Glenn,

    I think I will use this formula as it is & without modification. It works for me
    Thanks again for your advise

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: If Function with multi symbol ">" & value in formula

    You're welcome... and thanks.

+ 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. VBA: Using "<=" symbol with Countifs Function
    By vidyuthrajesh in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-08-2013, 08:33 PM
  2. WHAT DOES THE SYMBOL"$" REPRESENT IN A EXCEL FORMULA?
    By EXCEL NOVICE in forum Excel - New Users/Basics
    Replies: 6
    Last Post: 05-18-2006, 11:30 AM
  3. [SOLVED] Replace "insert function" with "edit formula" button in fourmula b
    By 13brian in forum Excel General
    Replies: 0
    Last Post: 08-24-2005, 04:05 PM
  4. Replies: 2
    Last Post: 05-02-2005, 08:06 PM
  5. how do I display "meter square" symbol in a formula cell ?
    By lau in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-28-2005, 05:06 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