+ Reply to Thread
Results 1 to 3 of 3

Trouble with OR function

  1. #1
    Registered User
    Join Date
    04-26-2016
    Location
    Australia
    MS-Off Ver
    07
    Posts
    1

    Trouble with OR function

    I have two cells that are age specific of 50 years and 60 years old cell C10=50 and D10=60 .........

    Money will be given to these people if they fall between the ages from 50 to 60 and i've tried this combination =IF(OR(E20<=C$10,E20>=D$10,E21<=D12),D$13,0)

    The formula above is trying to suggest if the client(E20) falls between the ages 50 to 60 OR has an income(E21) over 20,000(D12) then they will receive D13 lump sum.... the second part works fine but I can't figure out how to get the ages between 50 and 60 years old. I realise the function isn't working because this function assumes any age from 50 and over or 60 and under which is everyone in the world..... please help? haha

  2. #2
    Forum Contributor
    Join Date
    10-19-2012
    Location
    Omaha, Nebraska USA
    MS-Off Ver
    Excel 2010
    Posts
    249

    Re: Trouble with OR function

    Hi Jukez,

    The formula below matches your description. The formula you posted appears to have the greater than and less than symbols reversed. The formula below first checks income, and if it is over the value in D12, then it awards the lump sum. If the income is less than that in D12, then it checks the age, if it is between 50 and 60, then it awards the lump sum.

    Please Login or Register  to view this content.
    Hope that provides some direction,

    Dan

  3. #3
    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: Trouble with OR function

    You could also do it this way:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

+ 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. Replies: 1
    Last Post: 06-10-2015, 12:56 PM
  2. Trying the IF(AND IF(OR function and having trouble
    By ksa4ever in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-07-2014, 03:53 PM
  3. Having trouble with the IF Function.
    By nikkismella1 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 08-26-2011, 05:12 AM
  4. Having trouble with a function
    By Gemstar in forum Excel General
    Replies: 4
    Last Post: 06-08-2011, 10:55 AM
  5. Having trouble with AVG Function
    By karto2k@yahoo.com in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-17-2006, 04:25 AM
  6. IF function trouble
    By raye in forum Excel Formulas & Functions
    Replies: 23
    Last Post: 09-06-2005, 09:05 PM
  7. IF FUNCTION Trouble
    By J. Cornor in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-12-2005, 06:05 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