Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jodi
 
Posts: n/a
Default multiple criteria for formulas

I am writing an excel program that refrences a wok sheet and i want to write
a countif A AND B type statement, how do i do this? ex: countif (cell
reference X = 1) and (cell reference Y = 2) is there any way i can do this?
Thanks! I've been trying to figure it out for months now!
  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default multiple criteria for formulas

=SUMPRODUCT(--(A2:A100=1),--(B2:B100=2))

--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Jodi" wrote in message
...
I am writing an excel program that refrences a wok sheet and i want to
write
a countif A AND B type statement, how do i do this? ex: countif (cell
reference X = 1) and (cell reference Y = 2) is there any way i can do
this?
Thanks! I've been trying to figure it out for months now!



  #3   Report Post  
Posted to microsoft.public.excel.misc
Jodi
 
Posts: n/a
Default multiple criteria for formulas

I don't want to sum the products of the two criteria, i only want excel to
recognize it if the two criteria are met.

"Peo Sjoblom" wrote:

=SUMPRODUCT(--(A2:A100=1),--(B2:B100=2))

--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Jodi" wrote in message
...
I am writing an excel program that refrences a wok sheet and i want to
write
a countif A AND B type statement, how do i do this? ex: countif (cell
reference X = 1) and (cell reference Y = 2) is there any way i can do
this?
Thanks! I've been trying to figure it out for months now!




  #4   Report Post  
Posted to microsoft.public.excel.misc
Biff
 
Posts: n/a
Default multiple criteria for formulas

=AND(A1=1,B1=2)

Biff

"Jodi" wrote in message
...
I don't want to sum the products of the two criteria, i only want excel to
recognize it if the two criteria are met.

"Peo Sjoblom" wrote:

=SUMPRODUCT(--(A2:A100=1),--(B2:B100=2))

--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Jodi" wrote in message
...
I am writing an excel program that refrences a wok sheet and i want to
write
a countif A AND B type statement, how do i do this? ex: countif (cell
reference X = 1) and (cell reference Y = 2) is there any way i can do
this?
Thanks! I've been trying to figure it out for months now!






  #5   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default multiple criteria for formulas

It doesn't sum it counts and since you mentioned COUNTIF it was quite
logical to assume you wanted to count, use the AND function

--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com


"Jodi" wrote in message
...
I don't want to sum the products of the two criteria, i only want excel to
recognize it if the two criteria are met.

"Peo Sjoblom" wrote:

=SUMPRODUCT(--(A2:A100=1),--(B2:B100=2))

--

Regards,

Peo Sjoblom

http://nwexcelsolutions.com



"Jodi" wrote in message
...
I am writing an excel program that refrences a wok sheet and i want to
write
a countif A AND B type statement, how do i do this? ex: countif (cell
reference X = 1) and (cell reference Y = 2) is there any way i can do
this?
Thanks! I've been trying to figure it out for months now!






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
return multiple rows of data based on criteria steve_sr2 Excel Worksheet Functions 8 May 20th 23 07:47 PM
Counting Using Multiple Criteria mhall5 Excel Worksheet Functions 4 January 3rd 06 11:47 PM
Counting by multiple criteria Risky Dave Excel Worksheet Functions 4 September 28th 05 01:29 PM
Multiple Criteria IF Nesting BethB Excel Worksheet Functions 2 May 17th 05 12:14 AM
Can I get the mode, min, and max with multiple criteria? BobT Excel Discussion (Misc queries) 1 February 15th 05 03:20 AM


All times are GMT +1. The time now is 07:20 PM.

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"