+ Reply to Thread
Results 1 to 3 of 3

IF / OR / Function 3 options

  1. #1
    Registered User
    Join Date
    07-09-2013
    Location
    Denver
    MS-Off Ver
    Excel 2010
    Posts
    26

    IF / OR / Function 3 options

    I have setup a IF OR function, but I need to put a third option on there and I am having trouble.

    What I have currently. **A**
    =IF(OR(D17=AB6,D17=AB7), "Target Change: ", "Current Target: ")

    What I want to add (RED UNCERTAINTY) ***B***
    =IF(OR(D17=AB6,D17=AB7,D17=AB8,) "Target Change: ", "Current Target: ", Suggested Target: ",)

    The function works in **A**, but I am unsure how to get ***B*** to work & demonstrate what I would like to see.

    Thanks for your help.

  2. #2
    Forum Expert etaf's Avatar
    Join Date
    10-22-2004
    Location
    Wittering, West Sussex, UK
    MS-Off Ver
    365 (Mac OSX) (16.92 (24120731))
    Posts
    9,101

    Re: IF / OR / Function 3 options

    the function IF uses

    if( test, true, false)
    so IF
    D17=AB6
    OR
    D17=AB7
    is true then you get
    "Target Change: "
    otherwise its false and you get
    "Current Target: "

    Now you want to bring in a third option
    OR(D17=AB6,D17=AB7,D17=AB8,)

    D17=AB6
    OR
    D17=AB7
    OR
    D17=AB8
    any are true - then you get
    "Target Change:

    So what are the next set of rules to work out if
    "Current Target: "
    OR
    Suggested Target: "
    should be used

    does that help

    you can use nested IFs

    so
    IF( TEST1, TRUE , IF(TEST2, TRUE, FALSE))

    so if the result of test1 is false - you can then do another tests
    or use true

    IF( TEST1, IF(TEST2, TRUE, FALSE), FALSE))
    Wayne
    if my assistance has helped, and only if you wish to , there is an "* Add Reputation" on the left hand side - you can add to my reputation here

    If you have a solution to your thread - Please mark your thread solved do the following: >
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  3. #3
    Forum Expert newdoverman's Avatar
    Join Date
    02-07-2013
    Location
    Port Dover, Ontario, Canada
    MS-Off Ver
    2010
    Posts
    10,330

    Re: IF / OR / Function 3 options

    Something like this will give the third option.

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This means that if all the cells are equal, that is the "Current Target: "

    If only one cell is equal to D17 then "Target Change: "

    If none of the cells equal D17 then "Suggest Target: "
    <---------If you like someone's answer, click the star to the left of one of their posts to give them a reputation point for that answer.
    Ron W

+ 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. IF function with multiple options
    By PAKTIRE in forum Excel General
    Replies: 1
    Last Post: 10-30-2009, 03:09 AM
  2. IF-function with multiple options+sum function
    By PALLE123 in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 10-01-2007, 09:42 PM
  3. Copy Function Options
    By jonn in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-15-2007, 08:23 AM
  4. If function for multiple options?
    By sbweld in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-31-2006, 07:04 PM
  5. Show what options are in custom function?
    By quartz in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-11-2006, 05:15 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