Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
=countif(data!A:A,001,andif (data!B:B,
 
Posts: n/a
Default Excel function to countif a criteria is matced within to columns

Hello, I am looking for a the proper function in excel that would allow me to
count if a criteria is matched in column "A" and if another criteria is
matched in column "B".
  #2   Report Post  
Morrigan
 
Posts: n/a
Default


SUMPRODUCT(--(A:A="criteria1"),--(A:A="criteria2"))


=countif(data!A:A,"001",andif (data!B:B, Wrote:
Hello, I am looking for a the proper function in excel that would allow
me to
count if a criteria is matched in column "A" and if another criteria
is
matched in column "B".



--
Morrigan
------------------------------------------------------------------------
Morrigan's Profile: http://www.excelforum.com/member.php...fo&userid=7094
View this thread: http://www.excelforum.com/showthread...hreadid=399170

  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

You are looking at SUMPRODUCT, but not on whole columns, just part

=SUMPRODUCT(--(A1:A100="val1"),--(B1:B1000=123))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"=countif(data!A:A, 001 ,andif (data!B:B," <=countif(data!A:A,"001",andif
wrote in message
...
Hello, I am looking for a the proper function in excel that would allow me

to
count if a criteria is matched in column "A" and if another criteria is
matched in column "B".



  #4   Report Post  
Bob Phillips
 
Posts: n/a
Default

You need to substitute "val1" and 123 with your values

--

HTH

RP
(remove nothere from the email address if mailing direct)


"=countif(data!A:A, 001 ,andif (data!B:B,"
.com wrote in message
...
Thanks for the quick response, but the formula
=SUMPRODUCT(--(A1:A100="val1"),--(B1:B1000=123))

did not work. What I would like for the formula to do is count the number
of occurences only if the criteria defined in column "a" and column "b"

are
met. I tried the formula you provided and it gave me #value!, it would not
populate the total of occurences. I know how to have it count if I will
looking for data within one column, I just can make it look different data
within two column. The formula I was using for one column was
=countif(Data!A:A,"002asm")


"=countif(data!A:A,"001",andif (data!B:B," wrote:

Hello, I am looking for a the proper function in excel that would allow

me to
count if a criteria is matched in column "A" and if another criteria is
matched in column "B".



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
Using ADD function within DCOUNT criteria DaveF2002 Excel Discussion (Misc queries) 4 June 19th 05 09:48 PM
Could the "Criteria" in COUNTIF function be a cell reference? JohnSheenWSN Excel Worksheet Functions 2 June 16th 05 08:07 PM
How do I create a COUNTIF function with more than one criteria? BCowans Excel Worksheet Functions 2 June 14th 05 08:04 PM
Countif Function -Nested Angi Excel Discussion (Misc queries) 7 May 4th 05 07:04 PM
Statistical Excel Function Question within Excel 2000... Drew H Excel Worksheet Functions 3 October 31st 04 06:55 PM


All times are GMT +1. The time now is 01:33 AM.

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

About Us

"It's about Microsoft Excel"