Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Can you use "AND", "IF" and "SUM" Functions together?
I want a formula that will do the following; IF C:C = "Name" AND I:I = "5" then SUM K:K |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this
=SUMPRODUCT(--(C1:C1000="Name"),(I1:I1000=5)*(K1:K1000)) You can not use whole columns (C:C) you have to define a range. "Millie" wrote in message ... Can you use "AND", "IF" and "SUM" Functions together? I want a formula that will do the following; IF C:C = "Name" AND I:I = "5" then SUM K:K |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You can but this would be a better solution
=SUMPRODUCT((C1:C30="Name")*(I1:I30=5)*(K1:K30)) Note that this looks for numeric 5. You had five in quotes indicating a string and if you really mean that put the 5 in the formula in quotes. Mike "Millie" wrote: Can you use "AND", "IF" and "SUM" Functions together? I want a formula that will do the following; IF C:C = "Name" AND I:I = "5" then SUM K:K |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
=SUMPRODUCT(--(C1:C100="Name"),--(I1:I100="5"),K1:100)
IF 5 is a numeric value then remove the quotes around the 5 you can not use a whole column unless you use XL-2007 "Millie" wrote: Can you use "AND", "IF" and "SUM" Functions together? I want a formula that will do the following; IF C:C = "Name" AND I:I = "5" then SUM K:K |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
IF AND Formula Help Needed | Excel Discussion (Misc queries) | |||
Formula Needed | Excel Discussion (Misc queries) | |||
help on and/or formula needed | Excel Discussion (Misc queries) | |||
Formula needed | Excel Worksheet Functions | |||
Help! Formula needed. | Excel Discussion (Misc queries) |