Use formula to get "B" Break Time for each agent in the first column

53 Views Asked by At

enter image description here

I want to know the correct function to use here to get the break for each agent

2

There are 2 best solutions below

1
player0 On

try in row 7:

 =INDEX(TRIM(FLATTEN(QUERY(TRANSPOSE(IF(E7:R="B"; E6:P6; ));;9^9))))
0
Osm On

Paste this formula in A7

=IFERROR(INDEX($E$6:$Q$6,1,ArrayFormula(MATCH(1,SEARCH("B",E7:NQ7),0))),"No Break")

enter image description here