+ Reply to Thread
Results 1 to 6 of 6

Having issue with drop down that can retreive data-Data validation

  1. #1
    Forum Contributor
    Join Date
    08-29-2017
    Location
    Canada
    MS-Off Ver
    Window 2013
    Posts
    127

    Having issue with drop down that can retreive data-Data validation

    Good evening Programming experts,

    I need some assistance with an excel document that holds my sales team's punch in time and punch out time.

    My data looks as such

    Column A have dates
    Column B I have name and last name of employee
    Column C Duration between each punch in and punch out.
    Column D Log in
    Column E Log out

    I would like to have sheet 1 to have a drop down to choose desired date and then a drop down for employee name, once they choose this I want that employees information alone to appear with name , duration between log in and log out and log in and log out.


    I have attached a excel sample if needed.
    Attached Files Attached Files
    Last edited by Noah101; 11-04-2017 at 10:11 PM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: Having issue with drop down that can retreive data-Data validation

    Why not just filter the raw data list?
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Contributor
    Join Date
    08-29-2017
    Location
    Canada
    MS-Off Ver
    Window 2013
    Posts
    127

    Re: Having issue with drop down that can retreive data-Data validation

    Need something more sleek and clean. So I perfer a formula based solution.

  4. #4
    Forum Expert cbatrody's Avatar
    Join Date
    04-15-2014
    Location
    Dubai
    MS-Off Ver
    Microsoft Office 365 ProPlus
    Posts
    2,136

    Re: Having issue with drop down that can retreive data-Data validation

    Try the below array formula in A7 (whats desired):

    Please Login or Register  to view this content.
    Needs to be confirmed by pressing CTRL+SHIFT+ENTER

    See the attached file.
    Attached Files Attached Files

  5. #5
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    43,893

    Re: Having issue with drop down that can retreive data-Data validation

    A few named ranges (CTRL-F3 to view) to return lists of unique names and dates and the following array fromula, copied across and dwon to produce the final resukt.

    =IFERROR(INDEX(raw!A:A,SMALL(IF(Date='whats desired'!$A$2,IF(Name=$D$2,ROW(Date))),ROWS(A$7:A7))),"")

    Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

    You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

    Don't type the curly brackets yourself - it won't work...
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  6. #6
    Forum Contributor
    Join Date
    08-29-2017
    Location
    Canada
    MS-Off Ver
    Window 2013
    Posts
    127

    Re: Having issue with drop down that can retreive data-Data validation

    Hi,

    Thank you Glenn and cbatrod! both of your formulas resolved the problem and will save me lots of time. Now I will not have to of go through 30 to 40 pages of punch in and punch out data.

    Glenn I just want to say that I do greatly appreciate your addition of a helper column in sheet 1 in which assists me in auto-updating my data validation list of names and dates. Amazing! thank you! that will save me time on maintaining the excel sheet when new employees are hired or when dates continue in the future. Great thinking, your very proactive as you foresaw this issue.

    Again thank you Glenn and cbatrod!

    Noah

+ 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. Replies: 11
    Last Post: 06-24-2017, 02:56 AM
  2. Replies: 3
    Last Post: 02-12-2016, 05:05 AM
  3. [SOLVED] Conditional Data Validation Drop-down Lists with Large Amounts of Data
    By Aimee S. in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-27-2015, 01:42 PM
  4. Replies: 7
    Last Post: 03-06-2015, 01:53 PM
  5. [SOLVED] Need help with INDEX(), MATCH() issue over a field of data to retreive column header...
    By bbernzy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-26-2014, 06:47 PM
  6. Replies: 5
    Last Post: 09-26-2013, 11:45 AM
  7. Data Validation Issue and Data Manipulation of Delimited Data on a Cell
    By young_padawan_in_exl in forum Excel Formulas & Functions
    Replies: 25
    Last Post: 05-09-2013, 04:04 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