+ Reply to Thread
Results 1 to 8 of 8

Drop Down lists based on formula??

  1. #1
    Registered User
    Join Date
    03-11-2014
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    4

    Drop Down lists based on formula??

    Hi

    I'm sure this is possible (and possibly been asked many times) but I cant find out how to do it!

    In worksheet 1 I have a list of employee numbers (column A) and and names (Column B)and in worksheet 2 I have a list of employee numbers (column A) and their payroll contracts (Column B). 1 employee can have multiple contracts).

    What I'm trying to achieve in workshet 1 is to have a dropdown list ( Column C) which returns just the contracts that relate to the employee number in column A.

    Is this possible? All help and guidance greatly appreciated.

    Thanks

  2. #2
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Drop Down lists based on formula??

    Look here: http://www.contextures.com/xlDataVal02.html
    Never use Merged Cells in Excel

  3. #3
    Registered User
    Join Date
    03-11-2014
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Drop Down lists based on formula??

    Hi

    THanks for the prompt reply, but I dont think that provides what I'm after.

  4. #4
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,040

    Re: Drop Down lists based on formula??

    Upload example workbook with your inputs and desired output.
    make sure to remove all private informations (like names, wages etc) but keep similliar data important for example.

  5. #5
    Registered User
    Join Date
    03-11-2014
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Drop Down lists based on formula??

    THanks.

    I've uploaded an example of what I'm trying to achieve.

    In Column C of Sheet1, I would like a dropdown list of all contracts attached to the employee number in column A (this data is held in Sheet2).

    So for example the dropdown list for employee no 1 would have 3 entries based on the corresponding data held in Column B.

    Test.xlsx

  6. #6
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Drop Down lists based on formula??

    Hi
    Because I use Excel-2007 I used Name Manager. But in excel 2010 you do not need to do it
    =OFFSET(Start,MATCH(A2,Employee,0),1,COUNTIF(Employee,A2),1)
    Paste this formula to data validation after naming the relevant cells

    PS. In sheet 2 numbers should be sorted from small to larger
    Attached Files Attached Files
    Appreciate the help? CLICK *

  7. #7
    Registered User
    Join Date
    03-11-2014
    Location
    Wales
    MS-Off Ver
    Excel 2010
    Posts
    4

    Re: Drop Down lists based on formula??

    Quote Originally Posted by AZ-XL View Post
    Hi
    Because I use Excel-2007 I used Name Manager. But in excel 2010 you do not need to do it
    =OFFSET(Start,MATCH(A2,Employee,0),1,COUNTIF(Employee,A2),1)
    Paste this formula to data validation after naming the relevant cells

    PS. In sheet 2 numbers should be sorted from small to larger
    Excellent, works a treat. Thanks a lot.

  8. #8
    Valued Forum Contributor AZ-XL's Avatar
    Join Date
    03-22-2013
    Location
    Azerbaijan, Baku
    MS-Off Ver
    Excel 2007
    Posts
    603

    Re: Drop Down lists based on formula??

    You are welcome. Also you can click star * button (add reputation) below my avatar pic.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] Entering a formula in a cell based on the selections in two other drop down lists
    By oddinho in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 06-26-2013, 04:13 PM
  2. [SOLVED] Dynamic Ranges as drop down lists based on another drop down list
    By Excel_Beginner_1 in forum Excel General
    Replies: 4
    Last Post: 05-15-2012, 03:31 PM
  3. [SOLVED] Output a Value Based on Multiple Drop Down Lists
    By VT_2000 in forum Excel General
    Replies: 5
    Last Post: 04-05-2012, 01:35 AM
  4. IF THEN ELSE based on Three Dependent Drop Down Lists (VBA)
    By vtsoldier2010 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-15-2012, 09:56 AM
  5. Two drop down lists, one changes it's options based on the other
    By ukAKB in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-10-2011, 10:46 AM

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