Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 897
Default Countcells if they match certain criteria from other cells

The + sign acts as the logical 'OR' function. So the formula would be

=SUMPRODUCT(((D6:D10="PS 2")+(D6:D10="USB"))*(E6:E10<"Not on
Network"))

i.e. "PS 2" or "USB" in D6:D10, and "Not on Network" in E6:E10.

HTH,
JP


On Feb 11, 9:21*pm, FormulaQuestioner
wrote:
How would I change it where D6:D10 could be "Ps 2" or "USB" and E6:E10 could
not be "Not on Network" would I put the code:

I tried the code

=SUMPRODUCT((D6:D10="PS 2")*(D6:D10="USB")*(E6:E10<"Not on Network"))

And it always results in a zero. I know it is because D can not have PS 2
and USB in the same cell at the same time. How could I change it to be either
PS2 or USB?



"Pete_UK" wrote:
Use COUNTIF when you only have one criteria. Where you have more, then
use SUMPRODUCT, like this:


=SUMPRODUCT((D6:D10="PS 2")*(E6:E10<"Not on Network"))


I've made the ranges a bit bigger - they should be equal in size, but
cannot be a full column (unless you have XL2007).


Hope this helps.


Pete


On Feb 12, 12:26 am, FormulaQuestioner
wrote:
I have been playing around with the countif statements and am trying to
figure out a forumla which I can not see to code:


Criteria


Count the cells from d6:d7 if cell has the word "PS 2" and (e6:e7 or f6:f7
does not say "Not on Network") *I think that this could just be the same
formula for the one where it checks for blank, but if I am wrong I added this*


Any help would be appreciated


For the real table the ranges are much larger, I just put them as small
numbers for less typing.- Hide quoted text -


- Show quoted text -


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
Countif cell if other cells match criteria FormulaQuestioner Excel Worksheet Functions 3 February 10th 08 12:16 AM
MATCH Multiple Criteria & Return Previous / Penultimate Match Sam via OfficeKB.com Excel Worksheet Functions 27 October 6th 07 01:39 AM
match multiple criteria ina range from multiple criteria multiplet RG Excel Worksheet Functions 8 September 28th 07 04:21 AM
Counting cells that match 2 criteria jimar Excel Discussion (Misc queries) 5 February 8th 07 12:26 PM
Fill cells if adjacent cell match criteria Jess Excel Discussion (Misc queries) 6 June 1st 06 09:18 PM


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