The formula =SUM(DOLLARS) does work fine and adds up ALL the values.
To test the SUMIF(), I set up a column (named range "decision") with yes/no
values. I get a #VALUE error when I try the formula
=SUMIF(decision,"=yes",dollars).
I looked at some of the posts for array functions and I can't really tell if
an array formula would fix this problem. Is this possible to do as a single
function, or do I have to have something like this:
=SUMIF(decision,"=yes",dollars1)+SUMIF(decision,"=yes",dollars2)...
Thanks for your help.
--
Ann Scharpf
What are the individual range addresses that make up DOLLARS?
>I set up a column (named range "decision") with yes/no
What is the range address that makes up DECISION?
--
Biff
Microsoft Excel MVP
"Ann Scharpf" <AnnSc...@discussions.microsoft.com> wrote in message
news:30B2910B-5948-49E9...@microsoft.com...
Dummy test:
Decision = D4:D18
Dollars = E4:E18, G4:G18, I4:I18
Real document:
Customer Funding Category:
F:F
Material Costs:
I:I, M:M
--
Ann Scharpf
"T. Valko" wrote:
> .
>
=SUMPRODUCT(--(NOT(MOD(ROW(A1:A20),4))),--(B1:B20="add"),(A1:A20))
Then you can get away from the use of named ranges.
--
Best Regards,
Luke M
"Ann Scharpf" <AnnSc...@discussions.microsoft.com> wrote in message
news:DF7B0F66-AF58-4833...@microsoft.com...
Just because a range has a defined name doesn't mean you *have* to use that
name!
Here's how I would do it...
=SUMPRODUCT(--(Decision="yes"),E4:E18+G4:G18+I4:I18)
--
Biff
Microsoft Excel MVP
"Ann Scharpf" <AnnSc...@discussions.microsoft.com> wrote in message
news:DF7B0F66-AF58-4833...@microsoft.com...