+ Reply to Thread
Results 1 to 14 of 14

Look up function

  1. #1
    Registered User
    Join Date
    08-13-2014
    Location
    seattle
    MS-Off Ver
    2010
    Posts
    30

    Look up function

    I created a drop down menu on an excel spreadsheet. Everytime I click a different drop down manager name, I want the cells below it (Employees) to automatically change to what ever employee that manager have. I have a table imported from access on sheet (called table).

    I want to have some kind of look up that return "the unique employee name" everytime I change the manager drop down name.

    For more details please see the attached file.

    Thank you very much for your help.
    Attached Files Attached Files

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

    Re: Look up function

    Try this (entered as an Array Formula) using CTRL + SHIFT + ENTER and not just enter

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    ,
    copied down as far as you need.
    Attached Files Attached Files
    Last edited by Glenn Kennedy; 08-13-2014 at 01:20 PM. Reason: Attachment added...
    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

  3. #3
    Registered User
    Join Date
    08-13-2014
    Location
    seattle
    MS-Off Ver
    2010
    Posts
    30

    Re: Look up function

    Thanks!!! Your help is greatly appreciated

  4. #4
    Registered User
    Join Date
    08-13-2014
    Location
    seattle
    MS-Off Ver
    2010
    Posts
    30

    Re: Look up function

    =IFERROR(INDEX(Table_callsheet[[#Headers],[EMPLID]],SMALL(IF(Table_callsheet[[#Headers],[MGR_EMPLOYEE_NAME]]='DailyR''sByBems'!$G$1,ROW(Table_callsheet[[#Headers],[MGR_EMPLOYEE_NAME]]-5),ROW(1:1)),0),"")

    Can you please tell me whats wrong with my formula?

  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 2406
    Posts
    44,662

    Re: Look up function

    What is header row number in your real table ?

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

    Re: Look up function

    In your example, the Table began (header row) in row 5 of Sheet "Table". If, in your real data, it begins (header row) in row 12 (for example), then substitute the 5 (in big bold red) with 12

    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Also, did you use CTRL + SHIFT + ENTER to set the array formula?
    Last edited by Glenn Kennedy; 08-13-2014 at 03:03 PM.

  7. #7
    Registered User
    Join Date
    08-13-2014
    Location
    seattle
    MS-Off Ver
    2010
    Posts
    30

    Re: Look up function

    my table began (header row) cell c1 so i replaced it with -1, for some reason it still doesnt work. Yes, I made it the array formula.


    thanks for your help
    Last edited by nguyenal07; 08-13-2014 at 04:10 PM.

  8. #8
    Registered User
    Join Date
    08-13-2014
    Location
    seattle
    MS-Off Ver
    2010
    Posts
    30

    Re: Look up function

    Hi attached a very similar version of the excel please help me on getting the formula to get the list of employees id for each manager using the drop down list..

    Thanks,
    Attached Files Attached Files

  9. #9
    Forum Expert Vikas_Gautam's Avatar
    Join Date
    06-04-2013
    Location
    Ludhiana,Punjab, India
    MS-Off Ver
    Excel 2013
    Posts
    1,850

    Thumbs up Re: Look up function

    Try this in A7 and drag it down..

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    if you want to know how it works.. then click following links...
    http://www.excelforum.com/tips-and-t...-countifs.html
    or
    http://excel-buzz.blogspot.in/2014/0...xsmall-as.html

    Don't forget to click *
    Attached Files Attached Files

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

    Re: Look up function

    I don't know what was going on, but it's fine, now.
    Attached Files Attached Files

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

    Re: Look up function

    I was looking at the formula that you posted (#4). You seem to have made an error in selecting the data column. This bit [#Headers] shouldn't be there.

  12. #12
    Registered User
    Join Date
    08-13-2014
    Location
    seattle
    MS-Off Ver
    2010
    Posts
    30

    Re: Look up function

    It still doesnt work I attached another file that is exactly the same from what I have

    Please help thanks
    Attached Files Attached Files

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

    Re: Look up function

    Can you post YOUR attempt at getting it to work, so that I can see what you are doing wrong?

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

    Re: Look up function

    In the meantime, here's your own sheet, working again. It would be good to see wjht you have tried & failed with. that way, you'll know what to do next time...

    Just a random thought.... Are you physically typing the curly braces round the formula? Hoipefully the answer is "no". Excel will enter them when you set the formula with CTRL + SHIFT + ENTER
    Attached Files Attached Files

+ 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: 13
    Last Post: 04-08-2014, 05:46 AM
  2. Replies: 2
    Last Post: 01-15-2014, 11:40 PM
  3. [SOLVED] IF Function referencing IsNumber, Match, Left function on separate sheets
    By Touch9713 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-12-2013, 10:09 PM
  4. Replies: 1
    Last Post: 03-21-2012, 11:22 AM
  5. Excel - User Defined Function Error: This function takes no argume
    By BruceInCalgary in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-18-2006, 04:05 PM

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