+ Reply to Thread
Results 1 to 12 of 12

If statements for ranges

  1. #1
    Registered User
    Join Date
    09-28-2011
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    47

    If statements for ranges

    Since you guys were so helpful on the last one here on last calc in need

    95 - 90.01% = 0.84%
    90 - 85.01% = 0.62%
    85% & Below = 0.45%

    All above are a % of F22 ie: 96.5% or 88% or whatever

    so

    If(f22 is >=90.01% and < 95% the result is .084%) and >85.01 and < 90% = .062%)

    and so on

    Thanks
    Last edited by NBVC; 09-29-2011 at 08:26 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If statements for ranges

    Try:

    =LOOKUP(F22,{0,.8501,.9001},{.45,.62,.84})

    or

    =IF(F22<=0.85,0.45,IF(F22<=.9,.62,.84)

    formatted as percentage.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    09-28-2011
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: If statements for ranges

    Sorry I have one other variable

    f16 has to be "Conv" if not the result should be 0. everything else worked great!

    Thanks and sorry for leaving out

  4. #4
    Registered User
    Join Date
    09-28-2011
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: If statements for ranges

    Oh and I did the IF forumla..thanks

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If statements for ranges

    Try:

    =IF(F16="Conv",IF(F22<=0.85,0.45,IF(F22<=.9,.62,.84),0)

  6. #6
    Registered User
    Join Date
    09-28-2011
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: If statements for ranges

    Says I have too many arguments

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If statements for ranges

    Lost a closing bracket...

    =IF(F16="Conv",IF(F22<=0.85,0.45,IF(F22<=0.9,0.62,0.84)),0)

  8. #8
    Registered User
    Join Date
    09-28-2011
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: If statements for ranges

    I have the following in my formula and when it is Conv is giving me a 0

    =IF(F16="Conv",IF(G22<=85%,0.45,IF(G22<=90%,0.62,0.84)),0)

    G22 is the correct cell for the LTV%

    sorry

  9. #9
    Registered User
    Join Date
    09-28-2011
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: If statements for ranges

    I just fourn the problem I had left the period(.) out of conv.

    Works great......I'm an idiot

    Thanks so much

  10. #10
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If statements for ranges

    Check that F16 doesn't contain any extra leading/trailing spaces.

  11. #11
    Registered User
    Join Date
    09-28-2011
    Location
    Dallas, TX
    MS-Off Ver
    Excel 2007
    Posts
    47

    Re: If statements for ranges

    Sorry I put 85% and below was wrong it <=85% and >=80% it was printed like that and I just copied it and they assumed I knew no PMI below 80% or 0 result

    Thanks again
    Last edited by garopro; 09-28-2011 at 05:36 PM.

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If statements for ranges

    Do you mean?

    =IF(F16="Conv",IF(G22<=80%,0,IF(G22<=85%,0.45,IF(G22<=90%,0.62,0.84))),0)

    remember to add the . to Conv... not sure where exactly you made that earlier change.

+ 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