how can I return every value of each cells in a range that equals a given criteria

(sourcerange, criteria, destinationrange)