hi all,
can anybody help me.

how to create formula if sub string value in cell match with other string, can output with substring it self

A1
sampletext1

reference B1:B3
sample
bunga
flower

question : if A1 contains reference B1:B3, then output will be "sample"
Its difficult for me because we used an reference, thanks a lot