+ Reply to Thread
Results 1 to 5 of 5

limit of 7 nested functions?

  1. #1
    Olympiad
    Guest

    limit of 7 nested functions?

    I have the following formula working well, however as there is a limit of 7
    nested functions and need some more, what is my options?

    =IF(B5="P-NE","Pre App Not Endorsed",IF(B5="P-PI","Pre App Pending
    Info",IF(B5="P-WD","Pre App
    Withdrawn",IF(B5="WFIN","Withdrawn",IF(B5="PREP","App Being
    Prepared",IF(B5="PFI","App Pending Further Info",IF(B5="PDD","App Pending D&D
    report",IF(B5="PID","App",))))))))

  2. #2
    Niek Otten
    Guest

    Re: limit of 7 nested functions?

    Use the Vlookup function instead.
    Look in Help for details, post back in this thread if you have problems.

    --

    Kind Regards,

    Niek Otten

    Microsoft MVP - Excel

    "Olympiad" <[email protected]> wrote in message
    news:[email protected]...
    >I have the following formula working well, however as there is a limit of 7
    > nested functions and need some more, what is my options?
    >
    > =IF(B5="P-NE","Pre App Not Endorsed",IF(B5="P-PI","Pre App Pending
    > Info",IF(B5="P-WD","Pre App
    > Withdrawn",IF(B5="WFIN","Withdrawn",IF(B5="PREP","App Being
    > Prepared",IF(B5="PFI","App Pending Further Info",IF(B5="PDD","App Pending
    > D&D
    > report",IF(B5="PID","App",))))))))




  3. #3
    Registered User
    Join Date
    02-21-2005
    Posts
    56
    use code:

    Sub test()

    If Range("B5") = "P-NE" Then Range("A1") = "Pre App Not Endorsed"
    If Range("B5") = "P-PI" Then Range("A1") = "Pre App Pending Info"
    If Range("B5") = "P-WD" Then Range("A1") = "Pre App Withdrawn"
    If Range("B5") = "WFIN" Then Range("A1") = "Withdrawn"
    If Range("B5") = "PREP" Then Range("A1") = "App Being Prepared"
    If Range("B5") = "PFI" Then Range("A1") = "App Pending Futher Info"
    If Range("B5") = "PDD" Then Range("A1") = "App Pending D&D Report"
    If Range("B5") = "PID" Then Range("A1") = "App"

    End Sub

    I'm fairly new to VBA, this will work (I have just tested) but there are probably much 'prettier' ways of doing it. Change "A1" to wherever you want the result to appear.

    Alastair

  4. #4
    olympiad
    Guest

    RE: limit of 7 nested functions?

    With the limit of 7 nested function on the formula below, I am still
    struggling with a solution how to add several more for the purpose of my
    workbook. The aim of this is that I have for example in cell B5 a variety of
    abreviations (codes) that I would like to appear in another cell with as a
    full description.

    "Olympiad" wrote:

    > I have the following formula working well, however as there is a limit of 7
    > nested functions and need some more, what is my options?
    >
    > =IF(B5="P-NE","Pre App Not Endorsed",IF(B5="P-PI","Pre App Pending
    > Info",IF(B5="P-WD","Pre App
    > Withdrawn",IF(B5="WFIN","Withdrawn",IF(B5="PREP","App Being
    > Prepared",IF(B5="PFI","App Pending Further Info",IF(B5="PDD","App Pending D&D
    > report",IF(B5="PID","App",))))))))


  5. #5
    Forum Contributor
    Join Date
    06-10-2004
    Location
    India
    Posts
    1,066
    Hi olympiad,

    As Niek Otten replied, use vlookup. Lets say you save your list of codes and their description in a table in range A1:B10. e.g.
    Col A | Col B
    P-NE | Pre App Not Endorsed
    P-PI | Pre App Pending Info
    P-WD | Pre App Withdrawn
    and so on...

    In your formula use:
    =VLOOKUP(B5,A1:B10,2)


    Mangesh
    Last edited by mangesh_yadav; 05-29-2005 at 11:58 PM.

+ 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