+ Reply to Thread
Results 1 to 8 of 8

Nesting more than 7 ifs...another way?

  1. #1
    Registered User
    Join Date
    04-14-2006
    Posts
    16

    Nesting more than 7 ifs...another way?

    Please help

    I am trying to design a salary checker to work out when an employee started working in a particular year e.g. 2000 and on what scale point eg. MPS1, what year thay will break through onto my threshold scale. The main scale points range from 1 to 6, and an employee would increase a point up the scale yearly. When they reach MPS6 they would stay on that point for two years before progressing to threshold 'upper 1'. There are 3 points on the threshold scale, and 2 years have to be spent on each before progressing to the top of the scale 'Upper 3'. I have managed to set the table up exactly how i want it (attached) but i use nested IF statements to do the calculating and now I have nested 7 statements I cannot continue. Could anyone please show me another way of doing what i want. I dare say by looking at the attached file someone will work out what i am trying to do pretty quickly.

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    See previous thread ...
    http://www.excelforum.com/showthread.php?t=591090
    HTH
    Carim


    Top Excel Links

  3. #3
    Registered User
    Join Date
    04-14-2006
    Posts
    16

    Still no joy

    Hi

    I tried your suggestion and i still cannot make it work, please help!!

  4. #4
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Have you also looked into Oldchippy's suggestion with 26 If's ....
    http://www.usd.edu/trio/tut/excel/adv/26if.html

  5. #5
    Forum Expert dominicb's Avatar
    Join Date
    01-25-2005
    Location
    Lancashire, England
    MS-Off Ver
    MS Office 2000, 2003, 2007 & 2016 365
    Posts
    4,867

    Smile

    Hi Blade2304

    Chip Pearson also makes a suggestion here on a workaround to the 7 nested IFs limitation :

    http://www.cpearson.com/excel/nested.htm

    HTH

    DominicB
    Please familiarise yourself with the rules before posting. You can find them here.

  6. #6
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    the answer to your problem does not need to contain if statements, you could use the match function or the vlookup function to return the value and just add this to C3

    regards

    Dav

  7. #7
    Banned User!
    Join Date
    10-14-2006
    Posts
    1,211
    Quote Originally Posted by Blade2304
    Please help

    I am trying to design a salary checker to work out when an employee started working in a particular year e.g. 2000 and on what scale point eg. MPS1, what year thay will break through onto my threshold scale. The main scale points range from 1 to 6, and an employee would increase a point up the scale yearly. When they reach MPS6 they would stay on that point for two years before progressing to threshold 'upper 1'. There are 3 points on the threshold scale, and 2 years have to be spent on each before progressing to the top of the scale 'Upper 3'. I have managed to set the table up exactly how i want it (attached) but i use nested IF statements to do the calculating and now I have nested 7 statements I cannot continue. Could anyone please show me another way of doing what i want. I dare say by looking at the attached file someone will work out what i am trying to do pretty quickly.

    Thanks
    -Excel 2007 is the solution. You can get more than 7 nested IF statements.
    -or you have to set up a lookup table and use VLOOKUP function

  8. #8
    Forum Contributor
    Join Date
    03-03-2007
    Posts
    101

    Have you tried the IF(OR(CHOOSE Function?

    Hello,

    I use the following formula many times when I need more than 7 IF arguments. I'm not sure if it works in all situations, though. But worth a try.

    E.g., let's say you have the following conditions:

    If 1, then X
    If 2, then Y
    If 3, then Z
    Otherwise "Value Not Found"

    You'd use this formula, assuming cell A1 is the data input box.

    =IF(OR(A1={1,2,3}),CHOOSE("X","Y","Z"),"Value Not Found")

    I tried this the other way around, but it didn't work. For example, let's say
    the conditions are this:

    If X, then 1
    If Y, then 2
    If Z, then 3

    =IF(OR(A1={"X","Y","Z"}),CHOOSE(1,2,3),"Value Not Found")

    If anyone knows how to get this formula to work both ways, I'm all ears.

    Hope this helps some.

+ 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