+ Reply to Thread
Results 1 to 4 of 4

dropdown returns results (comma separated data from another tab) or should i use access?

  1. #1
    Registered User
    Join Date
    06-20-2011
    Location
    Travelers Rest, SC
    MS-Off Ver
    Excel 2010
    Posts
    48

    dropdown returns results (comma separated data from another tab) or should i use access?

    See attached. On the data tab, someone enters abbreviated days for every hour an employee is available. In some instances, the employee is available m,t,w (monday, tuesday, wednesday), sometimes unavailable, sometimes just one day.

    On the search tab are two combo boxes. Id like to choose a day and hour from the dropdowns, and a list of names are returned for those employees who match the criteria. Is this a task better suited for Access?
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: dropdown returns results (comma separated data from another tab) or should i use acces

    scheduleHarribone.xlsx

    I have created a new Sheet in the file. Your Search tab remains but doesn't do anything.

    To make things easier I've made B2 and B3 on Sheet1 drop down lists instead of adding drop downs as you have.
    To do this select the cell then choose Data>Data Validation. Set 'Allow' to list and then 'Source' to the range you want to use.

    C2 returns the day code (m,t,w etc). C3 returns a Column number for that time (this is from the row added under the times in the Data tab).

    Col F list all the users. Col E looks for that user on the data tab and check the cell for the given time. if it finds the day code then it is assigned the next lowest number.

    The 'Names Found' table then shows these names. The reason for this bit is because I have made it so that you can hide the orange areas (Col C E and F). Once hidden this looks a lot cleaner.


    Hope this helps. Let me know if I've missed anything.
    Say thanks, click *

  3. #3
    Registered User
    Join Date
    06-20-2011
    Location
    Travelers Rest, SC
    MS-Off Ver
    Excel 2010
    Posts
    48

    Re: dropdown returns results (comma separated data from another tab) or should i use acces

    That's fantastic, thank you! ill have to look closer at the formulas when im at an actual computer but i tested it and it works. I like how you assigned a time, a number. thanks for taking the time to help me.

  4. #4
    Valued Forum Contributor Harribone's Avatar
    Join Date
    02-24-2013
    Location
    Midlands, UK
    MS-Off Ver
    Excel 2019/365
    Posts
    570

    Re: dropdown returns results (comma separated data from another tab) or should i use acces

    The number represents the column number so that the VLOOKUP formula knows which column the time is in.

    To further improve this for looks you can hide Col I on sheet1.
    Then select J3. Choose Home>Conditional Formatting>New Rule.
    Select 'Use a formula to determine...'.
    Type in =J3=""
    Click 'Format' and set the fill to White and in Border remove the Left/Right/Bottom border (The top border should be left untouched as a grey dotted line).
    Click OK. Click OK again.

    With J3 still selected click Home>Format Painter.
    Select cells J4:J14 in one go.

    Change the formula in J3 to =IFERROR(VLOOKUP(I3,$E$3:$F$14,2,0),"None Found")

    Now the 'Names Found' will hide any blanks and also show 'None Found' when there are no results (good for other users so they know that nothing is broken!).


    Once you are happy that the solution given does the job can you please go to Thread Tools at the top of the page and mark as SOLVED. That way other users doing a search will know to look here if they have a similar need.

+ 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