+ Reply to Thread
Results 1 to 8 of 8

IF Statements (Beginner)

  1. #1
    Registered User
    Join Date
    02-02-2016
    Location
    Orono, ME
    MS-Off Ver
    2013
    Posts
    21

    IF Statements (Beginner)

    Hello guys, here's a little background. This is for an insurance company (hypothetically)
    • $10 for a sports vehicle
    • $15 for a red vehicle
    • $20 for each accident in the past five years
    • $5 for each accident historically not in the past five years

    I am trying to calculate the Premium Modification
    is there a way to get the IF Statement to return "0" rather than false if none of the statements apply?

    This is what I have currently
    =IF(H3="Sports",20,IF(I3="Red",15,IF(G3>0,G3*20,IF(F3>0,F3*5))))
    When I try to add a 0 after the 20, it says I have too many arguments.

    Also, here is a picture of my sheet.
    https://gyazo.com/bc4997cff1c1c0a48e6248b2cdd1fdf3

    Another issue:
    Im showing the formula for R17, the result is 60, however the expected result should be G17*20 = 60, and then F17*5 = 35 so the total should be 95. Im thinking that Or is not the right solution here, maybe XOR? This is just counting the first condition it comes to.

  2. #2
    Registered User
    Join Date
    12-07-2015
    Location
    delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: IF Statements (Beginner)

    Hi,

    can you attached some excel file for that.

    Imran.

  3. #3
    Registered User
    Join Date
    02-02-2016
    Location
    Orono, ME
    MS-Off Ver
    2013
    Posts
    21

    Re: IF Statements (Beginner)

    Paws.xlsx

    Here you go! Thanks for the help.

  4. #4
    Registered User
    Join Date
    12-07-2015
    Location
    delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: IF Statements (Beginner)

    Hi,

    Please find attached excel file.

    Imran.
    Attached Files Attached Files

  5. #5
    Registered User
    Join Date
    02-02-2016
    Location
    Orono, ME
    MS-Off Ver
    2013
    Posts
    21

    Re: IF Statements (Beginner)

    Mdimran, thank you for your work, but however, The first premium ( R3 ) should show as 25, this is because 3 Accidents Total = 3*5 = 15 and Sports Vehicle = 10, so 25.

  6. #6
    Registered User
    Join Date
    12-07-2015
    Location
    delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: IF Statements (Beginner)

    Hi,

    I am some modification in formula i hope this will help you.

    Imran.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    02-02-2016
    Location
    Orono, ME
    MS-Off Ver
    2013
    Posts
    21

    Re: IF Statements (Beginner)

    Added Rep! Thanks

  8. #8
    Registered User
    Join Date
    12-07-2015
    Location
    delhi
    MS-Off Ver
    2010
    Posts
    80

    Re: IF Statements (Beginner)

    Hi,

    if you have satisfied with my answer please add reputation. Click on Add Reputation button on your left bottom.

    Imran.

+ 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. Beginner help
    By saratu in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-21-2014, 02:32 PM
  2. Hello from a beginner
    By bstinson in forum Hello..Introduce yourself
    Replies: 5
    Last Post: 08-11-2013, 09:57 PM
  3. Beginner If Then Help
    By Than924 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-05-2012, 09:38 AM
  4. Beginner
    By Mardikas09 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-11-2009, 05:59 AM
  5. Replies: 12
    Last Post: 05-15-2009, 08:38 AM
  6. beginner needs help
    By mikemike in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 09-19-2006, 11:34 AM
  7. Please help a beginner....
    By Lindsey in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-25-2005, 12:11 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