#1   Report Post  
d richardson
 
Posts: n/a
Default If

I am rying to count if two colums equal a certain values
i.e. if cells in column a = 3dsu and cells in column h=fall history then
count it
  #2   Report Post  
Bob Umlas
 
Posts: n/a
Default

=IF(AND(A1="3dsu",H1="fall history"),value if true,value if false)
To COUNT these:
=SUMPRODUCT((A1:A100="3dsu")*(H1:H100="fall history"))

Bob Umlas
Excel MVP

"d richardson" <d wrote in message
...
I am rying to count if two colums equal a certain values
i.e. if cells in column a = 3dsu and cells in column h=fall history then
count it



  #3   Report Post  
JE McGimpsey
 
Posts: n/a
Default

One way:

=SUMPRODUCT(--(A1:A1000="3dsu"),--(H1:H1000="fall history"))

for an explanation of "--" see

http://www.mcgimpsey.com/excel/doubleneg.html



In article ,
d richardson <d wrote:

I am rying to count if two colums equal a certain values
i.e. if cells in column a = 3dsu and cells in column h=fall history then
count it

  #4   Report Post  
D richardson
 
Posts: n/a
Default

I get a #num! error
this is my formula:
=SUMPRODUCT((jan!C:C="*3dsu*")*(H121:H127="*histor y of falling*"))

"Bob Umlas" wrote:

=IF(AND(A1="3dsu",H1="fall history"),value if true,value if false)
To COUNT these:
=SUMPRODUCT((A1:A100="3dsu")*(H1:H100="fall history"))

Bob Umlas
Excel MVP

"d richardson" <d wrote in message
...
I am rying to count if two colums equal a certain values
i.e. if cells in column a = 3dsu and cells in column h=fall history then
count it




  #5   Report Post  
bj
 
Posts: n/a
Default

Sumproduct needs equal ranges, try
=SUMPRODUCT((jan!C121:C127="*3dsu*")*(H121:H127="* history of falling*"))
"D richardson" wrote:

I get a #num! error
this is my formula:
=SUMPRODUCT((jan!C:C="*3dsu*")*(H121:H127="*histor y of falling*"))

"Bob Umlas" wrote:

=IF(AND(A1="3dsu",H1="fall history"),value if true,value if false)
To COUNT these:
=SUMPRODUCT((A1:A100="3dsu")*(H1:H100="fall history"))

Bob Umlas
Excel MVP

"d richardson" <d wrote in message
...
I am rying to count if two colums equal a certain values
i.e. if cells in column a = 3dsu and cells in column h=fall history then
count it




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



All times are GMT +1. The time now is 11:26 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"