+ Reply to Thread
Results 1 to 7 of 7

Inserting List in IF function

  1. #1
    Registered User
    Join Date
    03-28-2007
    Posts
    3

    Question Inserting List in IF function

    I have the following situation:

    In one column i have a list in every cel, this list is fix it is the same in every cel.
    In the next column i need excel to insert a list (created on another sheet) depending on the selection from the first column. (i dont know how else to explain).

    The formula (or function or whatever) should be something like this:

    IF B2="Project1" than C2="List1" -

    so if i selected project1 in cel B2 i want excel to insert List1 (the whole list) in the cel C2.

    I tried IF (B2="Project1";C2="List") - but it only inserts a value from the "List" it doesn't insert the whole list.

    PLEASE HELP

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Do you mean you want a drop down list?
    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
    03-28-2007
    Posts
    3

    further explanation

    In one sheet i have one list from which someone selects lets say: 1. Project.
    and now i want excel to insert (automatically) a (already existing) list from another sheet into the cel.


    Cel B2 Cel C2

    -in cel B2 i have
    a list and when someone
    selects something
    i need excel to insert
    a list (from another sheet,or
    the same sheet) into cel C2

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    I am assuming, then that these are drop down type lists.

    Start by naming each of the ranges that represents individual lists. This you do by selecting each range one at a time and going to Insert|Name|Define and entering a name matching an item in the original list (in B2).

    Then in C2 go to Data|Validation and select list. In the source field enter formula =Indirect(B2)

    So when someone select an item in B2, then C2 will automatically populate with a list with the same name as the item selected in B2.

    Hope this is what you're after/.

  5. #5
    Registered User
    Join Date
    03-28-2007
    Posts
    3

    Thx

    THANK YOU VERY MUCH.

    Your answer really helped, i solved the problem.
    THX

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

  7. #7
    Registered User
    Join Date
    03-31-2007
    Location
    Toronto, Canada
    Posts
    4
    Helped me immensely as well. THANKS! (I have a next question, though I'll start a new thread).

+ 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