Closed Thread
Results 1 to 3 of 3

How to create a formula that goes back to check if the statement is true (nesting)

  1. #1
    Registered User
    Join Date
    03-03-2014
    Location
    us
    MS-Off Ver
    Excel 2013
    Posts
    17

    How to create a formula that goes back to check if the statement is true (nesting)

    I want to perform this action but get stuck doing so..

    If the value in "Dscnt Y/N" column is equal to N, the Discount column value should be 0.
    If the value in the "Discount Y/N column" is equal to Y, the formula should check if the value in the Tenure (Yrs) column is less than 5.
    If the value in "Tenure (Yrs)" column is less than 5, the Discount column value should be 0.07
    Otherwise, the value of Discount column should be 0.1.


    So far my formula returned the the first one correct

    =IF([@[Discount Y/N]]="N","0") it returned the correct values.

    =IF([@[Discount Y/N]]="N","0")IF([@[Discount Y/N]]="Y",[@Tenure (Yrs)]]=<5) (i believe this is incorrect)

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

    Re: How to create a formula that goes back to check if the statement is true (nesting)

    Try this assuming the Dscnt Y/N can ONLY be Y or N, no blanks or any other value..

    =IF([@[Discount Y/N]]="Y",0,IF([@[Tenure (Trs)]]<=5,0.07,0.1))

  3. #3
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2403 Win 11 Home 64 Bit
    Posts
    23,810

    Re: How to create a formula that goes back to check if the statement is true (nesting)

    Welcome to the Forum, unfortunately:

    This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.

    Thread Closed.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Excel formula If A is true then check B and if B is negative then return
    By andreasnw in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 09-18-2013, 08:42 AM
  2. If formula to come back as TRUE?
    By ryan28nikki in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 10-24-2012, 02:48 PM
  3. If formula with true/false check box options
    By jamierat in forum Excel - New Users/Basics
    Replies: 4
    Last Post: 12-21-2011, 08:48 PM
  4. check TRUE / FALSE statement
    By ccsmith in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-09-2011, 10:40 AM
  5. CREATE AN "IF' STATEMENT FOR CHOICES OF CHECK BOXES
    By pjb in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 05-08-2006, 04:10 PM

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