+ Reply to Thread
Results 1 to 3 of 3

And statement - forcing an outocme to take preference

  1. #1
    Registered User
    Join Date
    08-02-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2010
    Posts
    38

    And statement - forcing an outocme to take preference

    =+IF(AND(R5="< $1.0m potential P&L impact"),"No escalation",IF(AND(R5="> $1.0m potential P&L impact"),"Regional CFO/Head Fin Ops",IF(AND(T5="< $1.0m potential P&L impact"),"Regional CFO/Head Fin Ops",IF(AND(T5="> $1.0m potential P&L impact"),"Regional CFO/Head Fin Ops and Reinsurance CFO",IF(AND(AB5="< $250k potential P&L impact"),"Regional CFO/Head Fin Ops",IF(AND(AB5="> $250k potential P&L impact"),"Regional CFO/Head Fin Ops and Reinsurance CFO",IF(AND(Z5="< $250k potential P&L impact"),"No escalation",IF(AND(Z5="> $250k potential P&L impact"),"Regional CFO/Head Fin Ops",IF(AND(Z5="<Enter amount>",R5="<Enter amount>"),"",""))))))))))


    Consider the above formula.

    IF R5 = True the result is "No escalation". However, if further along row 5 for example, T5 is True then the outcome will still be "No escalation" when it should be Regional CFO/Head Fin Ops i.e the formula only works if the results are all consistent.

    Is there anyway that I can order the result so that "Regional CFO/Head Fin Ops and Reinsurance CFO" takes precedence over Regional CFO/Head Fin Ops and No escalation and Regional CFO/Head Fin Ops takes precedence over no escalation?

  2. #2
    Forum Contributor
    Join Date
    05-24-2013
    Location
    India
    MS-Off Ver
    Excel 2010
    Posts
    291

    Re: And statement - forcing an outocme to take preference

    Hi

    if statement will always give you a result of first true condition, it will only check next condition in case earlier is false.

    hence amend your formula accordingly , if you want all conditions to be tru then use AND(R5="< $1.0m potential P&L impact",T5="< $1.0m potential P&L impact") etc.
    Click on * below if you find this helpful

    Thanks,
    A

  3. #3
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: And statement - forcing an outocme to take preference

    The IF's are read one at a time from Left to Right.
    The FIRST one to have a TRUE result is used, all IF's further to the right are ignored.

    So your order of preference should be highest priority on the left, to the lowest priority on the right.

+ 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. Preference Sorting
    By jamesvenning in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-22-2010, 03:51 PM
  2. Analysing voting preference - using VBA?
    By ad1bath in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-26-2009, 12:31 PM
  3. IF function in order to preference
    By XLS-EXCEL in forum Excel General
    Replies: 2
    Last Post: 09-26-2007, 11:37 AM
  4. [SOLVED] how to disable ms exchange as email preference
    By Cathy in forum Excel General
    Replies: 0
    Last Post: 02-21-2006, 04:25 AM
  5. [SOLVED] preference question
    By Gary Keramidas in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-07-2005, 08:05 PM

Tags for this Thread

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