+ Reply to Thread
Results 1 to 6 of 6

Nested If Function

  1. #1
    Registered User
    Join Date
    09-20-2014
    Location
    Ottawa, Canada
    MS-Off Ver
    2013
    Posts
    21

    Nested If Function

    Is there a way to make F8 a nested IF function instead of what I have?
    Attached Files Attached Files

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,169

    Re: Nested If Function

    Hi Petsi,

    I like what you have now. To nest the if statement you would need something that triggered if you had NO. Your formulas look fine to me. What if you added two columns after the Locker and Spa fee that would show zero if they were no. Would that make you happier?

    Another method might be a lookup table for all the members by name and have a Yes or No table, on its own, for just Locker and Spa.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Nested If Function

    Nested ifs indicate a relationship between the items ... in your situation there is no dependency between locker fees and spa passes . So I don't see them being nested if's.

  4. #4
    Registered User
    Join Date
    09-20-2014
    Location
    Ottawa, Canada
    MS-Off Ver
    2013
    Posts
    21

    Re: Nested If Function

    Thank you, you two! I didn't think so, but this is for an assignment and it's telling me to use a nested IF and I can't figure out how without confusing myself and trying to use AND/OR and still getting an error or not counting both when the first is "No."

    I am going to keep it like that and see how it goes. I will at least get part marks right?

  5. #5
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Nested If Function

    The only way a nested if makes sense is if the Locker Fee and Spa Fee are not independent of one another. For example if you have a Spa Fee then the Locker Fee is not charged then nesting makes sense. Are you sure if both are marked yes then both are to be applied ??

    ... when your instructor gives you the answer he/she expected I'd love to see it posted.
    Last edited by nimrod; 11-19-2014 at 05:27 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    09-21-2003
    Location
    British Columbia , Canada
    MS-Off Ver
    03,07,10,13
    Posts
    727

    Re: Nested If Function

    Here's your nested answer ... but your instructor is just wrong if they think this is a better solution than the original

    =IF(OR(D8="Yes",E8="Yes"),IF(AND(D8="Yes",E8="Yes"),C31+C32,IF(D8="YES",C31,C32)),0) + C8

+ 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] ROUNDUP function nested in IF function--Having problems!
    By whitequeen11 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 04-08-2014, 04:32 PM
  2. [SOLVED] Nested Function With Division - Receiving #VALUE! Function Error
    By DDM64 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 01-17-2013, 01:16 PM
  3. nested MATCH function within the INDEX function
    By thechoosenonesdream in forum Excel General
    Replies: 4
    Last Post: 10-25-2012, 03:55 PM
  4. [SOLVED] Nested AND function within IF function is only addressing logical1 but not logical2
    By betic in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-20-2012, 09:17 AM
  5. Offset function with nested match function not finding host ss.
    By MKunert in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-21-2006, 06:50 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