A
Alan Silver
Hello,
I teach teenage boys computer basics and am currently going over Excel
with them. I came across something which I am sure is inefficient the
way I explained it. I would like to know the best way to build a
spreadsheet for the following scenario :-
Suppose you run a sandwich business and wanted to do a "what if"
analysis. This would be to see what effect varying the cost of various
components (ie bits that are used to make the sandwiches) would have on
the profits.
The way I set it up was to have the components listed at the top, with
their prices. So, column A (first eight rows or so) would contain the
names of various bits needed, such as bread, butter, cheese, meat,
cucumber, etc. Column B would contain the prices for each of these (per
sandwich).
Below that, I listed various types of sandwich, eg cheese and tomato,
one per row. On the row, I had a column for each component, and put a 1
in any column where the component was used in the sandwich. Thus the
cheese and tomato sandwich would have a 1 in the bread, butter, cheese
and tomato columns, and nothing in the other columns. The cost was
worked out by creating a formula that multiplied the number in the
appropriate column by the cost in the list at the top. It was done this
way so you could have a double cheese sandwich by including a 2 for the
bread and for the cheese.
This all worked fine, but seemed very inefficient. For one thing, the
formula for the cost was very long and could easily have been entered
incorrectly.
More to the point, it was very inflexible. If I had wanted to add
another component (say I started selling cream cheese sandwiches as
well), the whole spreadsheet would need to be changed. I would need an
extra row in the components list, an extra column in the part that had
the types of sandwiches, and I would need to alter the formula to
calculate the cost.
Does anyone have any better suggestions as to how I should have done
this ? I'm sure there is some simple way, but I couldn't think of it.
TIA
Alan
P.S. I hope my explanation is clear. If you want a copy of the
spreadsheet I did, please e-mail me at :- google at alansilver dot co
dot uk
I teach teenage boys computer basics and am currently going over Excel
with them. I came across something which I am sure is inefficient the
way I explained it. I would like to know the best way to build a
spreadsheet for the following scenario :-
Suppose you run a sandwich business and wanted to do a "what if"
analysis. This would be to see what effect varying the cost of various
components (ie bits that are used to make the sandwiches) would have on
the profits.
The way I set it up was to have the components listed at the top, with
their prices. So, column A (first eight rows or so) would contain the
names of various bits needed, such as bread, butter, cheese, meat,
cucumber, etc. Column B would contain the prices for each of these (per
sandwich).
Below that, I listed various types of sandwich, eg cheese and tomato,
one per row. On the row, I had a column for each component, and put a 1
in any column where the component was used in the sandwich. Thus the
cheese and tomato sandwich would have a 1 in the bread, butter, cheese
and tomato columns, and nothing in the other columns. The cost was
worked out by creating a formula that multiplied the number in the
appropriate column by the cost in the list at the top. It was done this
way so you could have a double cheese sandwich by including a 2 for the
bread and for the cheese.
This all worked fine, but seemed very inefficient. For one thing, the
formula for the cost was very long and could easily have been entered
incorrectly.
More to the point, it was very inflexible. If I had wanted to add
another component (say I started selling cream cheese sandwiches as
well), the whole spreadsheet would need to be changed. I would need an
extra row in the components list, an extra column in the part that had
the types of sandwiches, and I would need to alter the formula to
calculate the cost.
Does anyone have any better suggestions as to how I should have done
this ? I'm sure there is some simple way, but I couldn't think of it.
TIA
Alan
P.S. I hope my explanation is clear. If you want a copy of the
spreadsheet I did, please e-mail me at :- google at alansilver dot co
dot uk