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

Displaying specific column header for cells, based on the cell value and its row header

$
0
0

I have a very large table looking somewhat along the lines of the below example:

        Date1   Date2   Date3   Date4   Date5
        ShiftA  ShiftB  ShiftA  ShiftB  ShiftA
Person1 x       x       x       x       late
Person2 late    x       late    late    x
Person3 late    late    x       x       x

I'd like to find some way of displaying a list of the dates on which an individual was "late" to a certain shift type.

Using two input values, for example "Person2" and "ShiftA", it would yield an output "Date1", "Date3" (optimally the output would be in the form of a row with one cell for each date, but that's not necessarily within the scope of this question).

I've tried using things like nested filter() functions, query() functions and index() functions containing match(), but I keep running into different issues and I feel like I'm not quite savvy enough at Google Sheets to find a great solution to my problem.

Any push in the right direction would also be greatly appreciated!


Viewing all articles
Browse latest Browse all 9626

Trending Articles



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