+ Reply to Thread
Results 1 to 3 of 3

Problem with nested if function. PLS HELP

  1. #1
    Registered User
    Join Date
    06-06-2006
    Posts
    7

    Problem with nested if function. PLS HELP



    Hi,

    I need some help with the nested if function.

    In one cell (J225), i have the following function (which works perfectly):
    =IF(AND(H225>0,F225>0),SUM(F225/I225),"")

    My problem is with the nested if function in the adjacent cell (K225):
    =IF(J225>30,"5",IF(J225>26.5,"4",IF(J225>20.5,"3",IF(J225>17.49999999,"2",IF(J225>=1,"1","")))))

    Whenever J225 is blank, the result in K225 should also remain blank. However, this is not the case as the result is coming out as "5".

    Please note, that if i remove the 1st function (J225), the 2nd function (K225) works perfectly!!!

    thanks

  2. #2
    David Biddulph
    Guest

    Re: Problem with nested if function. PLS HELP

    "sfar007" <[email protected]> wrote in
    message news:[email protected]...
    >
    >
    >
    > Hi,
    >
    > I need some help with the nested if function.
    >
    > In one cell (J225), i have the following function (which works
    > perfectly):
    > =IF(AND(H225>0,F225>0),SUM(F225/I225),"")
    >
    > My problem is with the nested if function in the adjacent cell (K225):
    > =IF(J225>30,"5",IF(J225>26.5,"4",IF(J225>20.5,"3",IF(J225>17.49999999,"2",IF(J225>=1,"1","")))))
    >
    > Whenever J225 is blank, the result in K225 should also remain blank.
    > However, this is not the case as the result is coming out as "5".
    >
    > Please note, that if i remove the 1st function (J225), the 2nd function
    > (K225) works perfectly!!!


    =IF(J225="","",IF(J225>30,"5",IF(J225>26.5,"4",IF(J225>20.5,"3",IF(J225>17.49999999,"2",IF(J225>=1,"1",""))))))
    --
    David Biddulph



  3. #3
    Registered User
    Join Date
    06-06-2006
    Posts
    7
    thanks a lot dave. it works

+ 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