Both are possible and even multiple results in one cell.
All I need to know is how you want it.