+ Reply to Thread
Results 1 to 3 of 3

Nested If function

  1. #1
    Registered User
    Join Date
    12-13-2007
    Posts
    2

    Nested If function

    I had this working before to a certain extent, then I changed something and it all went wrong
    =IF(H12<=0,"0%",IF(H12=3<="5","10%",IF(H12=6<=10,"15%","20%")))

    What I need is, that if 0 is in cell H12 "0%" is shown, if it is between 1 and 2 then "5%" is shown (I know I have completely missed it out of the formula, I realised after pasting it here, but that is not what the problem is) if it is between 3 and 5 then "10%" is shown, if it is between 6and 10 then 15% is shown and if it is anything else then 20% is shown.
    Last edited by Lahiho; 12-13-2007 at 11:24 AM.

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

    =LOOKUP(H12,{0,1,3,6,11},{0,.05,.10,.15,.20})

    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
    12-13-2007
    Posts
    2
    Ok, that works, thanks alot =)

+ 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