+ Reply to Thread
Results 1 to 5 of 5

Nested If/And function based on multiple range conditions FAILING

  1. #1
    Registered User
    Join Date
    02-12-2019
    Location
    new york
    MS-Off Ver
    office 365 proplus 1811
    Posts
    13

    Lightbulb Nested If/And function based on multiple range conditions FAILING

    I have returned again guys.. thank you for all the help you all have provided me.
    The assistance helps because I use these tools at work, and usually I am submitting these inquiry's at work. It helps a lot.

    Here is my problem:
    Row S contains purchase cost.
    Row T contains market value.
    I am trying to populate the corresponding cells in column U based on certain constraints.
    If T2<S2 = Underperformance
    If the MV in T2 is between S2*1 - S2*1.25 = Minor move
    If the MV in T2 is between S2*1.25 - S2*1.5 = Mid move
    If the MV in T2 is between S2*1.5 - S2*1.75 = Major move
    If the MV in T2 is between S2*1.75 - S2*2 = Drastic move

    Every time I submit my formula, I get a FALSE result. I'm sure something is wrong with it.
    See Below:

    =IF(T2<S2,"Underperformance",
    IF(AND(S2*1<T2<A2*1.25), "Minor Move",
    IF(AND(S2*1.25<T2<S2*1.5),"Mid Move",
    IF(AND(S2*1.5<T2<S2*1.75),"Major Move",
    IF(AND(S2*1.75<T2<S2*2),"Drastic Move","")))))


    Please assist.. thanks guys

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,711

    Re: Nested If/And function based on multiple range conditions FAILING

    Try it like this:

    =IF(T2<S2,"Underperformance",
    IF(T2<S2*1.25, "Minor Move",
    IF(T2<S2*1.5,"Mid Move",
    IF(T2<S2*1.75),"Major Move",
    IF(T2<S2*2),"Drastic Move","")))))

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    02-12-2019
    Location
    new york
    MS-Off Ver
    office 365 proplus 1811
    Posts
    13

    Re: Nested If/And function based on multiple range conditions FAILING

    Thank you very much Pete_UK. You're a genius.

    That formula worked great, just removed the 2nd parenthesis before "Major Move".

    Here is the final function:
    =IF(S2=T2,"Unchanged",
    IF(T2<S2,"Underperformance",
    IF(T2<S2*1.25,"Minor Move",
    IF(T2<S2*1.5,"Mid Move",
    IF(T2<S2*1.75,"Major Move",
    IF(T2<S2*2,"Drastic Move"," Other"))))))

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,711

    Re: Nested If/And function based on multiple range conditions FAILING

    Sorry, I missed that one when I deleted the AND parts from your original.

    Note that if Excel gets past the first IF, then you don't need to test for that criterion anymore, and similarly, if it gets past the second IF, so your AND functions were redundant. Also, they were syntactically incorrect, as you can't write:

    AND(S2<T2<S2*1.25)

    You would have to write it as:

    AND(S2<T2,T2<S2*1.25)

    (no need for the *1).

    Hope this helps.

    Pete

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,711

    Re: Nested If/And function based on multiple range conditions FAILING

    Thanks for the rep. If that takes care of your original question, please take a moment to select Thread Tools from the menu above and to the right of your first post in this thread, and mark the thread as SOLVED.

    Pete

+ 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. [SOLVED] User Defined Function for Summing a range based on multiple conditions
    By judeprem in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-29-2020, 03:39 AM
  2. Replies: 2
    Last Post: 01-05-2019, 03:33 AM
  3. Summing numbers based on multiple conditions across a range
    By docstew in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 12-02-2018, 04:05 PM
  4. nested IF formula with multiple conditions based on 2 columns
    By Beattle Juice in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 09-13-2016, 12:21 AM
  5. Replies: 8
    Last Post: 11-11-2014, 10:30 PM
  6. Replies: 5
    Last Post: 03-15-2014, 11:07 PM
  7. Date Range Count based on multiple conditions
    By Baka Jaimito in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-27-2011, 11:43 AM

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