+ Reply to Thread
Results 1 to 7 of 7

Excel lesser than equal to not working

  1. #1
    Registered User
    Join Date
    06-12-2014
    Posts
    21

    Excel lesser than equal to not working

    Hi guys i have an excel function lesser than equal to and it doesn't work right in some places. This is my formula.

    IF(AND(C33>=A113;C33<=A117;C35>=A113;C35<=A117); ((MAIN!C15*8) +8+5)*10;"NO AREA MATCH")

    In some cells it works and gives me the right value but in others the part in italics does not work.

    For eg: if C33= 240 ; C35 = 300; A113=10; A117=50

    The formula still gives me true thought he answer is No area match. Can you guys tell me why? I tries running "evalute formula and the part C33<=A117 is True when it is actually false. Can you tell me why this is happening and how I can correct it

    Regards
    Sneha

  2. #2
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel lesser than equal to not working

    You might have TEXT numbers in the cells even though they look like numeric numbers.

    In Excel any text value is greater than any number. To test it try this formula:

    ="x">1000

    On a cell where it doesn't work try testing that the cells are really numeric numbers:

    =ISNUMBER(A117)
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  3. #3
    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,929

    Re: Excel lesser than equal to not working

    By using AND, you are saying that all tests must be true, not just some of them. If even 1 is not met, the whole AND part is false - you have TRUE/False/TRUE/FALSE
    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

  4. #4
    Registered User
    Join Date
    06-12-2014
    Posts
    21

    Re: Excel lesser than equal to not working

    Hey Tony thank you. it worked. You were right

  5. #5
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Excel lesser than equal to not working

    Good deal. Thanks for the feedback!

  6. #6
    Registered User
    Join Date
    06-12-2014
    Posts
    21

    Re: Excel lesser than equal to not working

    my pleasure

  7. #7
    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,929

    Re: Excel lesser than equal to not working

    Thanks for the feedback

+ 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] Basic equal and not equal not working?
    By petermichael in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-18-2015, 09:25 AM
  2. [SOLVED] count number of cells in Column C that have a lesser or equal value to the adjacent cell
    By Geoff Jones in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 12-18-2013, 11:01 AM
  3. Replies: 3
    Last Post: 10-10-2012, 06:37 AM
  4. [SOLVED] If cells are equal - not working with text
    By gryffin13 in forum Excel General
    Replies: 3
    Last Post: 07-11-2012, 04:16 PM
  5. [SOLVED] lesser equal ?
    By -[::::Shamran::::]- in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2005, 06: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