Forum Discussion

newbjohny's avatar
newbjohny
Copper Contributor
Apr 26, 2021
Solved

TEXTJOIN AND not working

Hi All   Any ideas why this is not working please?   If I do a TEXTJOIN for just VACANT rooms it works fine, but if I add in the AND function for both VACANT and Single it returns nothing.   =T...
  • HansVogelaar's avatar
    Apr 26, 2021

    newbjohny 

    AND returns a single TRUE/FALSE value, not an array. Try

     

    =TEXTJOIN(", ",TRUE,IF((Current_Staff[Full Name]="VACANT")*(Current_Staff[Occupancy]="Single"),Current_Staff[Office/desk number],""))

     

    confirmed with Ctrl+Shift+Enter

Resources