# How do I distribute an operation across a range of cells?

I have a spreadsheet which I use to track deliveries and sales to calculate the cost and profits for a small range of items. I have the items described in columns so that the column head has the item description, the next row has its price, then the cost, and finally the calculated unit profit.

Below that I have the various deliveries of that item (i.e. the number of that item delivered on a date) followed by the sales (again by date or date range).

I want to be able to calculate the gross sales (\$), for example, of a delivery or sale by a formula that would take range of columns and apply the same operation to each cell. For example, to take C2 (the price) * C23 (the number sold that day) and do it across columns such B to R to produce the total price of all goods sold that day.

I’ve tried googling the answer but I can’t even think of a good set of search terms. I think I’d have to know the answer to ask the question.

Ok, got it. SumProduct seems to do what I want.