Thread: row multiplier?
View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.misc
Shane Devenshire[_2_] Shane Devenshire[_2_] is offline
external usenet poster
 
Posts: 3,346
Default row multiplier?

Hi,

Add a column say A because that will always be first and is easy to get to.
In that column enter 1 all the way down to the total row.

On the total row replace your =SUM(B2:B20) (B is now the first column with
ingredient counts) type formula with

=SUMPRODUCT(B2:B20*$A2:$A20)

copy this formula across your total row.

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"annabella" wrote:

i copy a row of ingredients for a meal and paste it into my weekly shopping
list.
each meal's ingredients are lined up in their respective columns ("2" is in
the column "lettuce" because there are 2 cups of lettuce in the dinner salad,
"3" in the "onions" column because there will be three chopped onions, but
there is "0" in the "eggs" column because this salad doesnt have eggs,
however, the row above this row has "3" in the eggs column because it is for
an omelette).
at the bottom of the page there is a running total of the amount of each
ingredient i should buy (a total of "16" in the lettuce column means im using
a total of 16 cups of lettuce that week - buy accordingly)...
the question is, can i have a cell somewhere at each row that can be used as
a multiplier so if i have THREE of the very same meals that week i dont have
to multiply each cell in the row of that meal by three, i could just have a
"3" at the end of the row and it would multiply each amount in the row by
three? like "3" at the end of the "omelette" ingredients row would cause the
amount of eggs necessary to turn to 9, that way i dont have the omelette
listed three times, but can just multiply the one meal ingredients by three?
is this clear enough?
thanks,
annabella