+ Reply to Thread
Results 1 to 5 of 5

Nested If Statement

  1. #1
    Registered User
    Join Date
    03-08-2013
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Nested If Statement

    Hi, I need some help making this statement work.

    +CEILING(IF(H7>100000,IF((1-F7)>0.93,H7*0.025,0)),IF(H7>100000,IF((1-F7)>0.87,H7*0.125,0)),IF(H7>100000,IF((1-F7)<0.87,0),1))

    What I want to acheive is
    if F7 is greater than 93%, .25% of H7
    if F7 is greater than 87%, .125% of H7
    if F7 is less than 87, 0

    Thanks so much to anybody who can help me out!

  2. #2
    Forum Expert tigeravatar's Avatar
    Join Date
    03-25-2011
    Location
    Colorado, USA
    MS-Off Ver
    Excel 2003 - 2013
    Posts
    5,361

    Re: Nested If Statement

    soniarog,

    Welcome to the forum!
    Give this a try:
    Please Login or Register  to view this content.
    Hope that helps,
    ~tigeravatar

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Nested If Statement

    your boundaries are not clear what happens if f7=87%?
    try
    =h7*LOOKUP(F7,{0,0.88,0.92},{0,0.125,0.25})
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    03-08-2013
    Location
    Manitoba, Canada
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Nested If Statement

    Thanks for your help. I'm still having trouble. I still need if H7 is greater than 100,000. Can you look at the data below and have a look?

    D E F G H J
    New Terminations Termination Net New Billed Retention
    Business % Business Premium Bonus
    65,929.80 39,240.96 3.83% 26,688.84 1,024,455.39 -
    10,926.00 21,273.36 7.26% -10,347.36 293,043.36 -
    1,368.60 592.44 1.03% 776.16 57,271.94 -
    24,155.04 11,208.36 8.35% 12,946.68 134,273.48 -
    23,523.12 - 0.00% 23,523.12 150,097.67 -
    Attached Images Attached Images

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Nested If Statement

    if(h7>100000,h7*LOOKUP(F7,{0,0.88,0.92},{0,0.125,0.25}),1)

+ 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