+ Reply to Thread
Results 1 to 7 of 7

Combining 3 IF functions

  1. #1
    Registered User
    Join Date
    04-26-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    33

    Combining 3 IF functions

    Working on an assignment for school and I've mapped out each of the scenarios however, I have to use the IF and AND function to combine them and I'm not quite sure how. Also, it keeps saying use Nested Functions but Im pretty sure I have haven't I?

    Can someone help me combine these please?

    =IF(E8="sports",$B$4,IF(E8="compact",$B$3))

    =IF(AND(B8<$F$2,C8="N"),$F$3,0)

    =IF(D8="OK",F$4,0)


    I've tried going =IF(AND(E8="sports",$B$4,IF(E8="compact",$B$3)),AND(IF(AND(B8<$F$2,C8="N"),$F$3,0),AND(IF(D8="OK",F$4,0)))

    and it just says FALSE which is impossible because its supposed to calculate a payment.

    Thanks

    A

  2. #2
    Forum Contributor
    Join Date
    12-11-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    232

    Re: Combining 3 IF functions

    Without being able to see the data here:

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    04-26-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Combining 3 IF functions

    Thanks Nemo!

    And then I could just use a range function for E8:E50 to do the rest? Then just copy the function down?

  4. #4
    Registered User
    Join Date
    04-26-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Combining 3 IF functions

    Like that formula would work for the Row of 8 but how would I use it for Row 9 +?

  5. #5
    Forum Contributor
    Join Date
    12-11-2012
    Location
    USA
    MS-Off Ver
    Excel 2010
    Posts
    232

    Re: Combining 3 IF functions

    with out seeing the data, I would say you can just drag it down.

  6. #6
    Registered User
    Join Date
    04-26-2013
    Location
    Canada
    MS-Off Ver
    Excel 2003
    Posts
    33

    Re: Combining 3 IF functions

    Q1.xlsx

    Hopefully this will help. I just keep getting an error

    Quote Originally Posted by nemo74 View Post
    with out seeing the data, I would say you can just drag it down.

  7. #7
    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
    52,926

    Re: Combining 3 IF functions

    Hi and welcome to the forum

    Noway can you "nest" those formulas, each 1 is a separate, and each is independent of the others.
    1. =IF(E8="sports",$B$4,IF(E8="compact",$B$3)) this works out a base insurance cost
    2. =IF(AND(B8<$F$2,C8="N"),$F$3,0) this applies (or not) a premium to (1)
    3. =IF(D8="OK",F$4,0) This is a discount that gets applied to (1) if certain criteria are met

    So, you cannot "nest" them, 2&3 are applied to 1

    because you only have 2 options (sports and compact), (1) can be shortened to =IF(E8="sports",$B$4,$B$3)

    Also, because this is a homework assignment, because of forum rules, members cannot "give" you the answers, we can only guide you in the right direction, sorry.

    edit: Just noticed this is (was) in the outlook forum, I will move it to the excel forum
    Last edited by FDibbins; 05-24-2013 at 12:45 AM.
    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

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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