M
Mike Lee
Hello,
I have a sheet which lists transactions in rows. I'm
trying to put together a grid which will show totals for
various transaction types for each month. For the
purposes of this formula, I have 3 named ranges;
trans.code, trans.date and trans.amt. An example of the
formula I tried:
=Sumproduct((trans.code = B14)*(Month(trans.date) = C9),
(trans.amt))
where row 9 contains numbers 1 through 12 corresponding
with the month, and column B holds the different
transaction codes.
However, I get a #Value! error, which I assume has
something to do with trying to use the Month function
within the Sumproduct function. All 3 ranges have the
same number of elements.
Any ideas on whether I would need to use an array formula
instead, or if there's a way to get the Sumproduct to
work?
Thanks to all for the help.
Mike
I have a sheet which lists transactions in rows. I'm
trying to put together a grid which will show totals for
various transaction types for each month. For the
purposes of this formula, I have 3 named ranges;
trans.code, trans.date and trans.amt. An example of the
formula I tried:
=Sumproduct((trans.code = B14)*(Month(trans.date) = C9),
(trans.amt))
where row 9 contains numbers 1 through 12 corresponding
with the month, and column B holds the different
transaction codes.
However, I get a #Value! error, which I assume has
something to do with trying to use the Month function
within the Sumproduct function. All 3 ranges have the
same number of elements.
Any ideas on whether I would need to use an array formula
instead, or if there's a way to get the Sumproduct to
work?
Thanks to all for the help.
Mike