+ Reply to Thread
Results 1 to 4 of 4

If command with lots of conditions

  1. #1
    Registered User
    Join Date
    06-22-2011
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    2

    Question If command with lots of conditions

    Hi guys,
    I am looking to add a formula whereby it will return a name of a member of my team depending on what number I have in another column. There would be about 100 different numbers and only about 8 team members. I tried to use my basic excel skills to do an =if with about 100 conditions but I wasn't very successful! Idealy if there was a way of setting up some sort of array which I could change in the future to reallocate easily that would be great.
    I would be grateful for any help.

    Cheers
    Adam

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: If command with lots of conditions

    You can try creating a table of values on the side and then using VLOOKUP to get the desired result.

    e.g. =Vlookup(A1,$X$1:$Y$100,2,0)

    where A1 contains lookup value and table in X1:Y100 contains the matches in column X and return values in column Y

    If each player takes on a specified range between, say 0 and 100, then you can try a LOOKUP() like this:

    =LOOKUP(A1,{0,10,20,40,60,80,90,100},{"A","B","C","D","E","F","G","H"})

    where the first array represents the lower bounds of each range and the second range represents the corresponding results based on the ranges....
    Last edited by NBVC; 06-22-2011 at 07:48 AM.
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    06-22-2011
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: If command with lots of conditions

    Thanks a lot for your help, I created the table on a separate worksheet and used your formula to pull it over. You are a star!

  4. #4
    Forum Guru (RIP) Marcol's Avatar
    Join Date
    12-23-2009
    Location
    Fife, Scotland
    MS-Off Ver
    Excel '97 & 2003/7
    Posts
    7,216

    Re: If command with lots of conditions

    Or, on a similar theme.

    Create three dynamic named lists in a seperate worksheet "Lookups"

    "Team_Members" can be used to validate "Team Member" in the "ConditionTable"

    Then in "Sheet 1" Use "ConditionList" to validate say Column A (or your required cell).

    Then put a lookup formula in say Column B
    e.g.
    Please Login or Register  to view this content.
    For more on Named Ranges see this link
    Contextures - Excel Data Validation -- Introduction
    Follow the links as required.

    Hope this helps
    Attached Files Attached Files
    Last edited by Marcol; 06-22-2011 at 08:49 AM. Reason: Initially pressed the wrong button!
    If you need any more information, please feel free to ask.

    However,If this takes care of your needs, please select Thread Tools from menu above and set this topic to SOLVED. It helps everybody! ....

    Also
    اس کی مدد کرتا ہے اگر
    شکریہ کہنے کے لئے سٹار کلک کریں
    If you are satisfied by any members response to your problem please consider using the small Star icon bottom left of their post to show your appreciation.

+ 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