+ Reply to Thread
Results 1 to 10 of 10

Issue with nested IF function and structured references

Hybrid View

  1. #1
    Registered User
    Join Date
    10-21-2014
    Location
    missouri
    MS-Off Ver
    2013
    Posts
    4

    Issue with nested IF function and structured references

    Hello,

    I am definitely not great with nested functions, so any help would be very appreciated. This is the formula I have thus far. There is an issue with it, but I am not skilled enough with it to see where it is at. =IF([@[Discount Y/N]]=N,0,[@[Tenure (Yrs)]]<5,=IF([@[Tenure (Yrs)]]<7,0.07,0.1))

    Thanks,
    Jason

  2. #2
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Issue with nested IF function and structured references

    Breaking down your formula you get this:
    =IF([@[Discount Y/N]]=N

    Then 0

    Else [@[Tenure (Yrs)]]<5,=IF([@[Tenure (Yrs)]]<7,0.07,0.1))

    The Else part is the part that doesn't make sense.

    To sort your issue, what do you want to happen if Discount = Y?
    Please add reputation by clicking on the * if I have helped.
    Please mark the thread SOLVED if your issue has been resolved.
    Thanks, Glenn.

  3. #3
    Registered User
    Join Date
    10-21-2014
    Location
    missouri
    MS-Off Ver
    2013
    Posts
    4

    Re: Issue with nested IF function and structured references

    Ok, it might be better if I list the steps I am to take.
    a. If the value in Discount Y/N column is equal to N, the Discount column value should be 0.
    b. 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.
    c. If the value in Tenure (Yrs) column is less than 5, the Discount column value should be 0.07
    d. Otherwise, the value of Discount column should be 0.1.

    The "Y" is exactly where I am confused. Thanks for the quick reply too.

  4. #4
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Issue with nested IF function and structured references

    Ok. You were pretty close. Try this:
    Formula: copy to clipboard
    =IF([@[Discount Y/N]]=N,0,IF([@[Tenure (Yrs)]]<5,0.07,0.1))

  5. #5
    Registered User
    Join Date
    10-21-2014
    Location
    missouri
    MS-Off Ver
    2013
    Posts
    4

    Re: Issue with nested IF function and structured references

    I am getting the "#NAME?" error. I was getting that before as well.

  6. #6
    Valued Forum Contributor
    Join Date
    04-22-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    Office 365 (work) and Excel 2013 (home)
    Posts
    1,167

    Re: Issue with nested IF function and structured references

    Doh Try this:
    Formula: copy to clipboard
    =IF([@[Discount Y/N]]="N",0,IF([@[Tenure (Yrs)]]<5,0.07,0.1))


    If that doesn't fix it, make sure the Tenure (Yrs) data is in fact numbers not text.

  7. #7
    Registered User
    Join Date
    10-21-2014
    Location
    missouri
    MS-Off Ver
    2013
    Posts
    4

    Re: Issue with nested IF function and structured references

    Beautiful! That worked. I will study the structure of this so I can gain a somewhat talent in this. Thank you so much for your guidance!

  8. #8
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Issue with nested IF function and structured references

    Often with formulas for structured tables, I find it easier to manually type in the references so that they are easier to visualize. The "[@[Tenure (Yrs)]]" path then becomes a familiar-looking range A1:A20, or something
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  9. #9
    Registered User
    Join Date
    11-07-2014
    Location
    Wellford
    MS-Off Ver
    2013
    Posts
    1

    Re: Issue with nested IF function and structured references

    I have tried that formula. it tells me that I entered to many arguments for this function and it highlights 0.07.

  10. #10
    Registered User
    Join Date
    03-28-2015
    Location
    radford
    MS-Off Ver
    excel2013
    Posts
    1

    Re: Issue with nested IF function and structured references

    This thread help me as well thanks to gak67

+ 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] Cannot use structured references for tables
    By aliceinwonderland in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-09-2018, 01:29 PM
  2. VBA / Structured Table References
    By carlyman in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 04-08-2014, 06:11 AM
  3. Variants on Structured References i.e. [@Header]
    By SymphonyTomorrow in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-05-2013, 03:59 PM
  4. Help with structured references
    By hellur_kitty in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-07-2013, 10:50 PM
  5. Structured Table References: What is [#Data]?
    By badaboom55 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-01-2010, 06:31 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