+ Reply to Thread
Results 1 to 7 of 7

Decision-Making Formula

  1. #1
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Decision-Making Formula

    Hi,

    I have two columns of data arranged as shown in the sample attached.

    I would like to create in column C a formula that returns a 1 under the following circumstances:

    If the text in column A is Absolute or Relative and the associated value in column B is >=0
    If the text in column A is Percentile and the associated value in column B is <=50

    Otherwise a zero should be returned.

    Can someone please suggest a solution.

    Thanks!
    Attached Files Attached Files
    Last edited by andrewc; 11-20-2013 at 04:53 AM.

  2. #2
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Decision-Making Formula

    hi andrewc. 1 of the ways:
    =--OR(AND(OR(A2={"Absolute","Relative"}),B2>=0),AND(A2="Percentile",B2<=50))

    Thanks, if you have clicked on the * and added our rep.

    If you're satisfied with the answer, click Thread Tools above your first post, select "Mark your thread as Solved".

    "Contentment is not the fulfillment of what you want, but the realization of what you already have."


    Tips & Tutorials I Compiled | How to Get Quick & Good Answers

  3. #3
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Decision-Making Formula

    Excellent, thank you!

  4. #4
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Decision-Making Formula

    Sorry, something I noticed is that the formula returns a 1 when the cell in column B is blank. Is it possible please to amend the formula so that it will return a blank if cell B is blank?

    Thanks

  5. #5
    Forum Guru benishiryo's Avatar
    Join Date
    03-25-2011
    Location
    Singapore
    MS-Off Ver
    Excel 2013
    Posts
    5,147

    Re: Decision-Making Formula

    you're welcome. maybe:
    =--OR(AND(OR(A2={"Absolute","Relative"}),B2>=0,B2<>""),AND(A2="Percentile",B2<=50,B2<>""))

    or:
    =IF(B2="",0,--OR(AND(OR(A2={"Absolute","Relative"}),B2>=0),AND(A2="Percentile",B2<=50)))

  6. #6
    Forum Contributor
    Join Date
    02-08-2005
    MS-Off Ver
    Microsoft 365
    Posts
    810

    Re: Decision-Making Formula

    Thank you!

  7. #7
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Decision-Making Formula

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Excel decision making
    By wrigh2uk in forum Excel General
    Replies: 7
    Last Post: 08-31-2012, 10:49 AM
  2. Decision formula
    By brammo in forum Excel General
    Replies: 8
    Last Post: 03-01-2010, 06:57 AM
  3. Decision Making in Excel
    By Bob Saint in forum Excel General
    Replies: 2
    Last Post: 04-26-2007, 11:23 AM
  4. making a decision tree using excel!
    By andrew h via OfficeKB.com in forum Excel General
    Replies: 1
    Last Post: 09-07-2005, 03:05 PM
  5. Excel decision
    By Reggie2004 in forum Excel General
    Replies: 3
    Last Post: 06-24-2005, 09:29 AM

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