+ Reply to Thread
Results 1 to 4 of 4

Work around to the 7 function limit with the IF function

  1. #1
    Registered User
    Join Date
    11-11-2008
    Location
    Nebraska
    Posts
    4

    Work around to the 7 function limit with the IF function

    I'm comfortable with the IF statements in excel and not familir with many of the other functions available to me. I am trying to create a character calulator for Elder Scrolls III (Marrowind). So that a person may enter their race, ***, and other choices and their by calculating all starting stats. There are 10 races you can choose from and I can cover 9 of them with the if function (leaving one as if all other options are false). I would like to know if there is a better way such as a drop down list or some way to search an array or anything that would be better suited to search the race cell and return data if it's true. I'm running into the same probably with choosing the constalation (13 choices in this catagory). I thought to split it two different data fields, by letting you choose from 4 in one cell and the other 9 in a different cell, but realized I don't know how to make it check two different cells for a choice to return it to the display cell without hitting the limitation of the 7 nested funcations in a forumla again.

    I have attached the worksheet for review and help. Thank you guys in advance for your time and help. I'm open to any options that will help me.
    Attached Files Attached Files
    Last edited by Venka; 11-11-2008 at 07:04 PM.

  2. #2
    Forum Expert Bob Phillips's Avatar
    Join Date
    09-03-2005
    Location
    Wessex
    MS-Off Ver
    Office 2003, 2010, 2013, 2016, 365
    Posts
    3,284
    Try formulae such as

    =INDEX(AE1:AE11,MATCH(C16,B1:B11,0))

    in A26

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    If you want to replace this formula

    =IF(C16=B3,C3,IF(C16=B4,C4,IF(C16=B5,C5,IF(C16=B6,C6,IF(C16=B8,C8,IF(C16=B9,C9,IF(C16=B10,C10,IF(C16=B11,C11,C7))))))))
    try this

    =INDEX($C$2:$C$11,MATCH(C16,$B$2:$B$11,0))
    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Registered User
    Join Date
    11-11-2008
    Location
    Nebraska
    Posts
    4
    Thank you both so much, that works wonders =)

+ 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