# How to retrieve names from the table? 2 criteria given

1. ## 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!

2. ## 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.

3. ## 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

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

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

#### Thread Information

##### Users Browsing this Thread

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

#### 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