Thread
:
conditional formula question
View Single Post
#
2
Posted to microsoft.public.excel.worksheet.functions
Sandy Mann
external usenet poster
Posts: 2,345
conditional formula question
Assuming that the Dates are real XL dates, (like 1/5/07 formatted to show as
m/d then use:
=SUMPRODUCT((MONTH(A2:A6)=5)*(C2:C6="Blue")*B2:B6)
--
HTH
Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings
Replace @mailinator.com with @tiscali.co.uk
"Ian" wrote in message
...
I'm trying to figure out the formula to sum values in column B that have a
certain range of dates listed in column A and also have a particular value
in
column D. Here's the spreadsheet.
A . . . . B . . . . . . E
1 Date. .Amt. . . . . Type
2 5/1. . $23. . . . . .Blue
3 5/5. . .$52. . . . . .Red
4 5/20. .$12. . . . . Green
5 6/2. . $21. . . . . .Red
6 7/14. .$64. . . . . .Blue
So, for example, I want to have a cell show me the sum of all "blues"
during
the period 5/1-5/31.
Any help would be greatly appreciated.
Thanks
Reply With Quote
Sandy Mann
View Public Profile
Find all posts by Sandy Mann