Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 205
Default Excell - two conditions count if factors are true when negative nu

Formula to count if two conditions. I want to count column b when = "CAS"
and if the number in column J is a negative number.

I have tried =COUNTIF(B7:B21,"=CAS")=SUM(J7:J21,""<0)
but it returns a "false" read.

Column "b" are all words and Column "J" is numbers, but sometimes a negative
number and I only want it to count if it is "0" or Less (negative)


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
Default Excell - two conditions count if factors are true when negative nu

=SUMPRODUCT((B7:B21="CAS")*(J7:J21<0))

--
Gary''s Student - gsnu201002


"linda" wrote:

Formula to count if two conditions. I want to count column b when = "CAS"
and if the number in column J is a negative number.

I have tried =COUNTIF(B7:B21,"=CAS")=SUM(J7:J21,""<0)
but it returns a "false" read.

Column "b" are all words and Column "J" is numbers, but sometimes a negative
number and I only want it to count if it is "0" or Less (negative)


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,240
Default Excell - two conditions count if factors are true when negativenu

linda wrote:
Formula to count if two conditions. I want to count column b when = "CAS"
and if the number in column J is a negative number.

I have tried =COUNTIF(B7:B21,"=CAS")=SUM(J7:J21,""<0)
but it returns a "false" read.

Column "b" are all words and Column "J" is numbers, but sometimes a negative
number and I only want it to count if it is "0" or Less (negative)




http://www.contextures.com/xlFunctio...tml#SumProduct
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
How to count multiple conditions that are "TRUE" PSmith Excel Discussion (Misc queries) 6 December 7th 07 08:28 PM
if any of 3 conditions is true, then answer is true inthestands Excel Worksheet Functions 5 November 16th 06 12:02 AM
Returning a Value if 3 Conditions are True brownie224 Excel Worksheet Functions 5 May 11th 06 11:54 PM
Count Occurances if two conditions true Ed Gregory Excel Worksheet Functions 5 September 8th 05 07:26 PM
Count if 2 conditions are true Thrava Excel Worksheet Functions 2 July 21st 05 01:56 AM


All times are GMT +1. The time now is 08:24 AM.

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"