+ Reply to Thread
Results 1 to 5 of 5

=IF help

  1. #1
    Registered User
    Join Date
    04-06-2010
    Location
    Saint Louis
    MS-Off Ver
    Excel 2003
    Posts
    3

    =IF help

    (Name Sheet2 FML_IF-11): Cell B1 has a gender indicator of F or M. Cell B2 has an accident counter from 0 to 9. Cell B3 contains the standard monthly car insurance rate. Cell B4 is to have a discount percentage to apply to the standard rate, calculated as follows: If the driver is female, a 5% discount is given, if she has 0 accidents, then a 10% discount is given. If the driver is male with zero accidents, then a 5% discount is given. Provide the excel formula to display the correct discount rate in cell B4


    any clue on how to start this?

  2. #2
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: =IF help

    Hi Juvenyle, welcome to the forum.

    Perhaps try:

    =B3*IF(AND(B1="F",B2=0),0.9,IF(OR(AND(B1="M",B2=0),B1="F"),0.95,1))

    Or

    =IF(OR(AND(B1="M",B2=0),AND(B1="F",B2<>0)),B3*0.95,IF(AND(B1="F",B2=0),B3*0.9,B3))

    Both should give the same result, they're just formatted a little differently.

  3. #3
    Registered User
    Join Date
    04-06-2010
    Location
    Saint Louis
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: =IF help

    I understand that part but I'm having to create the whole thing from scratch and don't know how to insert M or F in B1 0-9 in B2 and the car insurance rate in B3.

    Sorry that I wasn't clear the teacher kind of confused me.

  4. #4
    Forum Expert Paul's Avatar
    Join Date
    02-05-2007
    Location
    Wisconsin
    MS-Off Ver
    2016/365
    Posts
    6,885

    Re: =IF help

    You simply type the letter M or F in B1. Then type a number from 0-9 in B2. Then type a car insurance rate in B3.

    Am I missing something? Also, seeing as this is likely a homework assignment, future responses may be more of a push in the right direction rather than a full solution - you're supposed to be learning something here, not have it done for you.

  5. #5
    Registered User
    Join Date
    04-06-2010
    Location
    Saint Louis
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: =IF help

    Sorry your write I must have read something wrong. Thanks for the help, the wording just seemed odd to me like I had to feel out more than one cell.

+ 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