+ Reply to Thread
Results 1 to 12 of 12

Complicated nested if formula for weapons qualification.

  1. #1
    Registered User
    Join Date
    12-15-2008
    Location
    East Texas
    Posts
    40

    Complicated nested if formula for weapons qualification.

    I have tracker I'm using for weapons qualification but I know ther has to be a smater way to do it. I have a formula that is giving "too many arguments for this function" error. Basically the formula is supposed to determine the type of weapon in "D2" from a pull down menu it then reads the score in "F2" and compares it to the criteria for a "rating".

    =IF(OR(D2="M4T",D2="M16T"),IF(F2>35,"EXP",IF(F2>29,"SS",IF(F2>22,"MM",IF(F2>=1,"UNQUAL","")))),IF(D2="M4P",D2="M16P"),IF(F2>37,"EXP",IF(F2>32,"SS",IF(F2>25,"MM",IF(F2>=1,"UNQUAL","")))),IF(D2="M249",IF(F2>182,"EXP",IF(F2>158,"1st",IF(F2>133,"2nd",IF(F2>=1,"UNQUAL","")))),IF(D2="M240B",IF(F2>206,"EXP",IF(F2>180,"1st",IF(F2>158,"2ND",IF(F2>=1,"UNQUAL","")))),IF(D2="M203",IF(F2>80,"EXP",IF(F2>70,"1st",IF(F2>60,"2ND",IF(F2>=1,"UNQUAL","")))),IF(D2="M9",IF(F2>159,"EXP",IF(F2>119,"SS",IF(F2>79,"MM",IF(F2>=1,"UNQUAL","")))),IF(D2="M2 .50 CAL",IF(F2>195,"EXP",IF(F2>173,"1ST",IF(F2>152,"2ND",IF(F2>=1,"UNQUAL","")))),"")))))

    I would like to be able to do the same thing with either more simple formula or a type of lookup wich is not my strong suit I want to also add more weapons type..
    Attached Files Attached Files
    Last edited by SavageMind; 05-12-2010 at 02:07 PM. Reason: Moderator told me too...lol. Forum rules.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: There has to be a easier way for this. Weapons Qual.

    Please take a few minutes to read the forum rules, and then amend your thread title accordingly.

    Thanks.

    It would be a lot easier to suggest an alternative if you posted a workbook so people could see what you're trying to do.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Weapons Qual Formula Issue

    Still not really brilliant, have you bothered to read the Forum Rules (LOL)?

    Something like "complicated nested if formula" would be better and no abbreviations we have a lot of members whose first language is not English & they may not follow abbreviations
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  4. #4
    Registered User
    Join Date
    12-15-2008
    Location
    East Texas
    Posts
    40

    Re: Complicated nested if formula for weapons qualification.

    I have read the rules. This is not my first post either. I am try to articulate my issue the best way I can. The "brilliant" remark I can do without. I have attached an example of what I have now wthout the error but without the addtional weapon systems.

  5. #5
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Complicated nested if formula for weapons qualification.

    Thanks for posting the example.

    Now that you have, would you explain in narrative fashion what you're trying to do that led you to this formula?

    EDIT: I think it can all be replaced by a simple table lookup that contains ratings by weapon and score.
    Last edited by shg; 05-12-2010 at 02:19 PM.

  6. #6
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Complicated nested if formula for weapons qualification.

    See attached.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    12-15-2008
    Location
    East Texas
    Posts
    40

    Re: Complicated nested if formula for weapons qualification.

    Thanks shg. It's what I'm looking for, however when I try to use it on my document I get a #Name? error. I cut and pasted the fomula and then dropped the table into my data sheet. I guess I should have said that this was part of a a multi sheet workbook. I cannot post the workbook complete. Where do i drop the table containing the rating criteria?
    Last edited by SavageMind; 05-12-2010 at 03:44 PM.

  8. #8
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Complicated nested if formula for weapons qualification.

    It's part of a dynamic named range. Do Insert > Name > Define to see the definitions.

    Maybe you could add new data and/or sheets to the example to transform it to what you need.

  9. #9
    Registered User
    Join Date
    12-15-2008
    Location
    East Texas
    Posts
    40

    Re: Complicated nested if formula for weapons qualification.

    shg I seem to be lost. "Do Insert > Name > Define to see the definitions." Where do I find this. I'm pretty good with conditional formating, adding objects like calendars and such. But I'm a bit lost here. I appreciate your patience. I may try my hand at making a module for it If I have to.

  10. #10
    Registered User
    Join Date
    12-15-2008
    Location
    East Texas
    Posts
    40

    Re: Complicated nested if formula for weapons qualification.

    shg, Thanks I figured it out. I walked away, washed the cat, got clawed up and it hit me. Funny how a ticked off cat will get you focused. Cheers!

  11. #11
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: Complicated nested if formula for weapons qualification.

    Good job! Glad the cat survived.

  12. #12
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Complicated nested if formula for weapons qualification.

    Quote Originally Posted by SavageMind View Post
    I have read the rules. This is not my first post either. I am try to articulate my issue the best way I can. The "brilliant" remark I can do without. I have attached an example of what I have now wthout the error but without the addtional weapon systems.
    Sorry you don't like being told that you haven't followed the rules correctly. If you don't break them then it won't happen. You are lucky that the thread wasn't simply closed. Checking back on your previous posts it sems you need to pay attention to the thread title rule

+ 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