Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
i have 3 columns (date, cash and check)
i would like to sum cash if date is eg 07/03/2006 and check is Ok sorry for my english thank you |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=sumproduct(--(a1:a10=date(2006,3,7)),--(b1:b10="ok"),(c1:c10))
Adjust the range2 to match--but you can't use whole columns. =sumproduct() likes to work with numbers. The -- stuff changes trues and falses to 1's and 0's. Bob Phillips explains =sumproduct() in much more detail he http://www.xldynamic.com/source/xld.SUMPRODUCT.html And J.E. McGimpsey has some notes at: http://mcgimpsey.com/excel/formulae/doubleneg.html Ps. I checked for March 7, 2006. yiota wrote: i have 3 columns (date, cash and check) i would like to sum cash if date is eg 07/03/2006 and check is Ok sorry for my english thank you -- Dave Peterson |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Nice explanation Dave......
=SUMPRODUCT(--(A1:A10=F1),--(B1:B10="ok"),(C1:C10)) This mod to your formula will allow the OP to put the date in cell F1 and change it there without having to change it in the formula if desired. Vaya con Dios, Chuck, CABGx3 "Dave Peterson" wrote: =sumproduct(--(a1:a10=date(2006,3,7)),--(b1:b10="ok"),(c1:c10)) Adjust the range2 to match--but you can't use whole columns. =sumproduct() likes to work with numbers. The -- stuff changes trues and falses to 1's and 0's. Bob Phillips explains =sumproduct() in much more detail he http://www.xldynamic.com/source/xld.SUMPRODUCT.html And J.E. McGimpsey has some notes at: http://mcgimpsey.com/excel/formulae/doubleneg.html Ps. I checked for March 7, 2006. yiota wrote: i have 3 columns (date, cash and check) i would like to sum cash if date is eg 07/03/2006 and check is Ok sorry for my english thank you -- Dave Peterson |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT(--(A2:A20=--"2006-03-07"),--(C2:C20="Ok"),B2:B20)
-- HTH Bob Phillips (remove nothere from email address if mailing direct) "yiota" wrote in message ... i have 3 columns (date, cash and check) i would like to sum cash if date is eg 07/03/2006 and check is Ok sorry for my english thank you |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
thank you all but i can't make it work
"Bob Phillips" wrote: =SUMPRODUCT(--(A2:A20=--"2006-03-07"),--(C2:C20="Ok"),B2:B20) -- HTH Bob Phillips (remove nothere from email address if mailing direct) "yiota" wrote in message ... i have 3 columns (date, cash and check) i would like to sum cash if date is eg 07/03/2006 and check is Ok sorry for my english thank you |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
What do you mean by you "can't make it work"? Do you get an error? Are you
sure the dates are actually dates? Is "OK" the correct value to be looking foor in the check column? A little help from you allows us to better help you. "yiota" wrote: thank you all but i can't make it work "Bob Phillips" wrote: =SUMPRODUCT(--(A2:A20=--"2006-03-07"),--(C2:C20="Ok"),B2:B20) -- HTH Bob Phillips (remove nothere from email address if mailing direct) "yiota" wrote in message ... i have 3 columns (date, cash and check) i would like to sum cash if date is eg 07/03/2006 and check is Ok sorry for my english thank you |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can I add and IF function to a SUMIF function? | Excel Worksheet Functions | |||
SUMIF Function Inside SUMPRODUCT Function | Excel Worksheet Functions | |||
SumIF function | Excel Discussion (Misc queries) | |||
Sumif function with remote cell references | Excel Worksheet Functions | |||
SUMIF function | Excel Worksheet Functions |