+ Reply to Thread
Results 1 to 4 of 4

How do I satisfy 3 of 4 conditions and get a true/false result?

  1. #1
    Registered User
    Join Date
    01-09-2008
    Location
    Dalby, Australia
    MS-Off Ver
    MS Office 2007
    Posts
    11

    How do I satisfy 3 of 4 conditions and get a true/false result?

    Hi all,

    I have a problem where I need to create a formula that will give me a "true" result if 3 of 4 or 4 of 4 conditions are found in a particular row, and a "false" result if 2 or less conditions are found.

    A B C D
    1 100 120 40 Vegetable
    2 80 130 105 Mineral
    3 205 150 140 Vegetable
    4 90 85 20 Mineral
    5 50 70 120 Mineral

    The conditions that need solving are:
    Column A - Number must be greater than or equal to 100
    Column B - Number must be greater than or equal to 90
    Column C - Number must be greater than or equal to 95
    Column D - Text must be "Vegetable"

    It does not matter which of the columns satisfy the conditions.

    In the above, rows 1 and 3 will be true, rows 2, 4 and 5 will be false.

    Can anyone help? Or have I made this totally incomprehensible?

  2. #2
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Try

    =IF(--(A1>=100)+--(B1>=90)+--(C1>=95)+--(D1="Vegetable")>2,TRUE,FALSE)
    rylo

  3. #3
    Registered User
    Join Date
    01-09-2008
    Location
    Dalby, Australia
    MS-Off Ver
    MS Office 2007
    Posts
    11

    Thanks!

    Thanks heaps, Rylo.

    Very much appreciated.

  4. #4
    Forum Expert oldchippy's Avatar
    Join Date
    02-14-2005
    Location
    Worcester, UK
    MS-Off Ver
    Excel 2007 (Home)
    Posts
    7,097
    Or slightly shorter

    Please Login or Register  to view this content.
    oldchippy
    -------------


    Blessed are those who can give without remembering and take without forgetting

    If you are happy with the help you have received, please click the <--- STAR icon on the left - Thanks.

    Click here >>> Top Excel links for beginners to Experts

    Forum Rules >>>Please don't forget to read these

+ 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