I have working formula if I use this formula in every row. But my table is connected to google forms, so when new data is generated my formula shifts down as new row is created and doesn't work. So I need to put array formula to the header row, so that every time new row created, the array formula generates desired result.

```
=arrayformula(INDEX($E$2:$E$13,MATCH(1,SEARCH($E$2:$E$13,A2),-1))))

```

Not working formula for header array row:

```
=arrayformula(iferror(
              ifs(row(C:C)=1,"Header_array_formula",
                  isblank(A:A),"",
                  len(A:A)>0,INDEX($E$2:$E$13,MATCH(1,SEARCH($E$2:$E$13,A:A),-1))),""))

```

[![Sample](https://i.stack.imgur.com/GlMQB.png)](https://i.stack.imgur.com/GlMQB.png)

Here is link to my sample:
<https://docs.google.com/spreadsheets/d/1q5fkhk3o9SQTt4ye37vfVEjzQ6zREbu-8a-xMsA7wYs/edit?usp=sharing>