ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Help needed with Formula (https://www.excelbanter.com/excel-worksheet-functions/187598-help-needed-formula.html)

Millie

Help needed with Formula
 
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

Gaurav[_3_]

Help needed with Formula
 
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




Mike H

Help needed with Formula
 
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


Teethless mama

Help needed with Formula
 
=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



All times are GMT +1. The time now is 09:18 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com