G
GaryE
Hi all:
I posted this question last week but got no responses. I think tha
was because of the wording I choose. So let me try to state i
differently.
First I am using Excel 2000 (9.0.6926 SP3-3) -- (and no I can no
upgrade so don't even ask :-(
Here is a sample of my data in sheet 1 of the workbook:
Date Name Status Cost
1/1/06 GE C $1212
2/1/06 GE I $2323
1/5/06 XX C $3434
2/7/06 XX I $4545
1/8/06 GE I $5656
1/9/06 GE C $6767
. . .
Where Status C Indicates Completed
and Status I indicates Incomplete
Each column is a named array.
on another sheet (sheet 2)
A1 = Start Date
B1 = End Date
Row 2 = Name1, Name2, . . .
IN sheet 2 I need a formula in row 3 that will:
add the cost of all Completed sales made by Name between Start date an
end Date
I have tried:
{=sum(if((Date>=$A$1))*(Date<=$B$1)*(Status="c")*(Name=A2),Cost)}
but it doesn't work.
I have tried other variations to no avail. like:
{=sum(if(Date>=$A$1,if(Date<=$B$1,if((Status="c")*(Name=A2),Cost))))}
however I have gotten the following to work for a year to date total
{=sum(if((Name=A2)*(Status="c'"), Cost))}
I have tried everything I can think of and I am out of ideas.
Any and all help will be greatly appreciated!!!
Thanks,
Gar
I posted this question last week but got no responses. I think tha
was because of the wording I choose. So let me try to state i
differently.
First I am using Excel 2000 (9.0.6926 SP3-3) -- (and no I can no
upgrade so don't even ask :-(
Here is a sample of my data in sheet 1 of the workbook:
Date Name Status Cost
1/1/06 GE C $1212
2/1/06 GE I $2323
1/5/06 XX C $3434
2/7/06 XX I $4545
1/8/06 GE I $5656
1/9/06 GE C $6767
. . .
Where Status C Indicates Completed
and Status I indicates Incomplete
Each column is a named array.
on another sheet (sheet 2)
A1 = Start Date
B1 = End Date
Row 2 = Name1, Name2, . . .
IN sheet 2 I need a formula in row 3 that will:
add the cost of all Completed sales made by Name between Start date an
end Date
I have tried:
{=sum(if((Date>=$A$1))*(Date<=$B$1)*(Status="c")*(Name=A2),Cost)}
but it doesn't work.
I have tried other variations to no avail. like:
{=sum(if(Date>=$A$1,if(Date<=$B$1,if((Status="c")*(Name=A2),Cost))))}
however I have gotten the following to work for a year to date total
{=sum(if((Name=A2)*(Status="c'"), Cost))}
I have tried everything I can think of and I am out of ideas.
Any and all help will be greatly appreciated!!!
Thanks,
Gar