Excel

Copper Contributor

Hi

 

I have a Staff rota and I would like to create a list of staff availability based on date for staff who are not on shift or have booked holiday.

I NEED TO SHOW STAFF WHERE CELLS IN COLUMN C are BLANK ............. COLUMNS D TO L  ARE BLANK or H .........AND IN NUMERICAL ORDER BASED ON COLUMN B

Date would be inputed in cell B19 and the result displayed underneath

 

ABCDEFGHIJKL
   01/01/200102/01/200103/01/200104/01/200105/01/200106/01/200107/01/200108/01/200109/01/2001
Person 112 WWWW WWWW
Person 245epnDDDD  DDD
Person 30na         
Person 44 EEEEEEEEE
Person 510NAHHHHHHHHH
Person 60 HHDDDDHHH
Person 724          
Person 80   HHHH   
Person 915naRRRRRRRRR
Person 1012 RRRRRRRRR
12 Replies
please create a sample excel with manual input (indicating your result)

 

Hopefully attached!!

what is the purpose of c column, how did you get the number 12, 45, 0 ....

Column C is an overtime count in hours.....so it will increase as more overtime is done.

 

 

@simont485 

 

why this four person in this list?

So for 
 02/01/2001
Person 60
Person 80
Person 1012
Person 724
Let me interpret your requirements this way:
1. You want to know which persons are available on a specific date;
2. A person is available if the entry as of such date is blank, "H", or "R";
3. Given the date in B19, the available persons are listed starting in B20; and
4. The list must be sorted in ascending order according to the corresponding value of the available persons in Column C.
Please comment on my foregoing interpretation.

@Gourab Dasgupta 

 

Good point...there should only be 3 people in that list!

 

Person 10 should not be there!!

 

I'd input the date in B19 and the staff who have the lowest count from column C would appear when column D is blank and the corresponding column under the entered date is blank or contains H

@Twifoo 

 

That is correct! Except point 2..........Blank and H only....not R. (my mistake.)

I have been trying Index/Match/ aggregate......but I am having trouble with that approach.......

@simont485 

Please go through the excel file hope this will fulfill your criteria. 

@Gourab Dasgupta 

 

That is amazing but not quite as I need it.......

 

 

If Column D contains N/A and Columns E to M are Blank or H then that person is Not Available

 

Also as columns D to M are updated I need to see the list update accordingly

 

@simont485 , I know that this is an old thread, but the new Excel Dynamic Arrays make the solution easy. If you have the latest update of Excel 365, this should work as you asked.