Hi,
there's 2 ways to understand your design:
1. You have row 2 at the top to specify the type of expense, the month
and to enter a Dollar amount. Below that you have the expense
categories listed in a column say A4:A10 and the months listed across
say in B3:M3 and in e.g. B4:M10 (for 10 expense categories) you have
the accumulators for the expense amounts. Everytime you select a
category and a month and enter an amount in row 2 you want to add the
amount in the cell intersecting the expense category in A4:A10 and the
month in B3:M3.
This is what I described in my first post. It is not possible with
normal Excel formulas because in Excel you cannot have a formula like
=A3=A3+B4. This will result in an error message "circular reference".
The only sensible way to oranize this seems a command button with an
associated macro that, if the button is clicked, adds the input amount
to the correct cell in your expense matrix.
2. You have kind of a journal design. columns A, B and C hold your
input data per line. Columns D:O have the amount in Column C in the
correct month. like in this example:
Expenses table
jan feb mrz apr mai
category month amount
Fuel jan 45,00 45,00
Repair feb 112,50 112,50
hotel feb 245,00 245,00
tyres jan 256,00 256,00
Penalty mrz 70,00 70,00
Total 301,00 357,50 70,00
The formula in D4 is simple: =IF($B4=D$2;$C4;0)
copied down and across as required.
This means, when you have a new expense you enter it in a new row, copy
the formulas from the previous row into the new one and that's it. Any
sums you would display at the bottom. If you want the total amount per
Category and month use a different area on the same sheet or a
different sheet and extract the information from your "journal".
Does that make sense?
Hans