Thanks- How about if I have many products in column A each w/ different values in column B?

Can a formula be written to recognize each change in column A?