Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 17
Default 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
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 127
Default 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



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default 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

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default 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

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
IF AND Formula Help Needed Karen Smith Excel Discussion (Misc queries) 8 December 17th 07 07:09 PM
Formula Needed Steven Sinclair Excel Discussion (Misc queries) 7 October 19th 06 10:53 PM
help on and/or formula needed Fred Excel Discussion (Misc queries) 5 October 14th 05 03:06 PM
Formula needed Admiral70 Excel Worksheet Functions 4 August 18th 05 09:58 PM
Help! Formula needed. Samrasr Excel Discussion (Misc queries) 1 January 26th 05 12:01 PM


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

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"