+ Reply to Thread
Results 1 to 4 of 4

How to retrieve names from the table? 2 criteria given

  1. #1
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    How to retrieve names from the table? 2 criteria given

    Hi all! I'm working on KPI for my company. Unfortunately I struggle on one formula. I want to retrieve names of staff who are on holidays or sick. I made a formula and am sure enough it should work, but it doesn't. All I get is #REF, #NUM, and #NA errors. See attached workbook. Maybe someone will find a solution... More info inside the workbook. Thanks in advance!
    Attached Files Attached Files
    Last edited by ABSTRAKTUS; 05-17-2010 at 09:50 AM.

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

    Re: What's wrong with this formula???

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution. Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.
    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.
    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
    Forum Expert contaminated's Avatar
    Join Date
    05-07-2009
    Location
    Baku, Azerbaijan
    MS-Off Ver
    Excel 2013
    Posts
    1,430

    Re: How to retrieve names from the table? 2 criteria given

    try thid out in Main Sheet
    =LOOKUP(REPT("Z",255),CHOOSE({1,2},"",INDEX(Staff!$A$31:$A$51,SMALL(IF(OFFSET(Staff!$A$30,,MATCH(MAIN!$N$4,Staff!$A$30:$IN$30)-1,30)=M$5,ROW(INDIRECT("1:30"))),ROW(A1)))))

    Confirm as an array formula

    In staff sheet use this one

    =INDEX($D$31:$IN$51,MATCH($A6,$A$31:$A$51,0),MATCH(1,($G$2=MONTH(DIENOS))*1,0)+D$5-1)

    For more info see workbook
    Attached Files Attached Files
    Люди, питающие благие намерения, как раз и становятся чудовищами.

    Regards, ?Born in USSR?
    Vusal M Dadashev

    Baku, Azerbaijan

  4. #4
    Forum Contributor ABSTRAKTUS's Avatar
    Join Date
    04-18-2010
    Location
    England
    MS-Off Ver
    Win10 Excel 2016
    Posts
    609

    Re: How to retrieve names from the table? 2 criteria given

    Sposibo drug! Ty prosto genij! Budu dolzen...

+ 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