Reputation: 59
I have a list with expenses — some of them are monthly and some of them are yearly expenses. Next to them, there is a column with data validation (2 values = monthly/yearly).
Below everything, I'd like to display the total expenses on a yearly basis.
So for the whole column, it should be something like:
If monthly, then tablecell*12, otherwise — just add the values.
How do I achieve that?
EDIT: Here is an example
Upvotes: 2
Views: 346
Reputation: 1792
Something like this I suppose...
somewhere to the right of where you've written yearly/monthly type in:
=IF(B:B="monthly",A:A*12,A:A)
And then at the bottom type in:
=SUM(C:C)
Make sure this sum is not in column 'C'
Upvotes: 1