Quantcast
Channel: Hot Weekly Questions - Web Applications Stack Exchange
Viewing all articles
Browse latest Browse all 9782

Choose an employee and show the days where he has a specific shift code , along with the employees with the same shift

$
0
0

For convenience,Let's assume we have a shift schedule of a week.Header has the days from Monday to Sunday, and the 1st column contains the names of the employees.

NamesMondayTuesdayWednesdayThursdayFridaySuturdaySunday
Andreas17-01DO22-06DO17-0122-0622-06
Bob22-0622-0617-01DO22-0609-1709-17
Celia09-17DO22-0622-06DO17-0117-01
Daniela17-0122-0617-01DO22-06DO22-06
Elena22-06DO09-1709-1709-1722-0609-17
Franc09-1709-17DO22-06DO09-1722-06

I also have a in a cell a drop-down list with the names of all employees and once I select a name I want the following:

I want it to show me the days of the week where the agent I chose has the shift code "22-06" and below of each that day I would also want to show me the rest agents who will have the same shift.

For example if I choose agent "Andreas" then the result to be the following:

WednesdaySuturdaySunday
CeliaElenaDaniela
Franc

I was trying to do that with query function but the selection of the column has to be given while here it depends on the name I will choose.

Is there any idea how I can make this?

Below you can find the link of the google spreadsheet that illustrates this example:https://docs.google.com/spreadsheets/d/1JvQL4GFuKM5HZXbUJ7bMpp40YD1QtNtHCXOAE2qoxcU/edit?usp=sharing


Viewing all articles
Browse latest Browse all 9782

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>