Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default CountIf Not Multiple

I'm trying to count a column that doesn't match a few selections. For
example, I want to count all cells in column A which doesn't contain blue,
green, or purple.

So my formula would be something like:
=CountIf(A1:A20, <blue or green or purple)

Any help please?
Thanks in advance!
--Dax
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default CountIf Not Multiple

try this formula

Assuming you have a header row in row 1,
place this in B2 and copy down to as far as where your data in col A end.


=SUMPRODUCT(--(A2:A10<"blue")*--(A2:A10<"red")*--(A2:A10<"purple"))

Does this do waht you want?

HTH
--
======================
Pls click Yes if this has help you
======================

Thank You

cheers,





"Dax Arroway" wrote:

I'm trying to count a column that doesn't match a few selections. For
example, I want to count all cells in column A which doesn't contain blue,
green, or purple.

So my formula would be something like:
=CountIf(A1:A20, <blue or green or purple)

Any help please?
Thanks in advance!
--Dax

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default CountIf Not Multiple

This actually doesn't work because I'm guessing that some of the cells in the
array (A2:A20) are populated by another sheet and some of the values are not
there yet (displayed as #NA).

The other "counters" I've got count the blues, purples, etc. and I'm looking
for a formulat that "Counts everything else except those I already counted."

My other counters a =Count(A2:A20, "blue") which works great! But
getting it to NOT count 3 different things, is the hard part.
"xlmate" wrote:

try this formula

Assuming you have a header row in row 1,
place this in B2 and copy down to as far as where your data in col A end.


=SUMPRODUCT(--(A2:A10<"blue")*--(A2:A10<"red")*--(A2:A10<"purple"))

Does this do waht you want?

HTH
--
======================
Pls click Yes if this has help you
======================

Thank You

cheers,





"Dax Arroway" wrote:

I'm trying to count a column that doesn't match a few selections. For
example, I want to count all cells in column A which doesn't contain blue,
green, or purple.

So my formula would be something like:
=CountIf(A1:A20, <blue or green or purple)

Any help please?
Thanks in advance!
--Dax

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 70
Default CountIf Not Multiple

Isn't there a way of counting everything BUT thing1, thing2, and thing3?

"Dax Arroway" wrote:

I'm trying to count a column that doesn't match a few selections. For
example, I want to count all cells in column A which doesn't contain blue,
green, or purple.

So my formula would be something like:
=CountIf(A1:A20, <blue or green or purple)

Any help please?
Thanks in advance!
--Dax

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default CountIf Not Multiple

Hi
Do you want to count cells with "blue","green" and "purple"?
From what I gather, you do NOT want to count cells with these.

The formula that I have provide does NOT count cells with these texts.


--

cheers,






"Dax Arroway" wrote:

This actually doesn't work because I'm guessing that some of the cells in the
array (A2:A20) are populated by another sheet and some of the values are not
there yet (displayed as #NA).

The other "counters" I've got count the blues, purples, etc. and I'm looking
for a formulat that "Counts everything else except those I already counted."

My other counters a =Count(A2:A20, "blue") which works great! But
getting it to NOT count 3 different things, is the hard part.
"xlmate" wrote:

try this formula

Assuming you have a header row in row 1,
place this in B2 and copy down to as far as where your data in col A end.


=SUMPRODUCT(--(A2:A10<"blue")*--(A2:A10<"red")*--(A2:A10<"purple"))

Does this do waht you want?

HTH
--
======================
Pls click Yes if this has help you
======================

Thank You

cheers,





"Dax Arroway" wrote:

I'm trying to count a column that doesn't match a few selections. For
example, I want to count all cells in column A which doesn't contain blue,
green, or purple.

So my formula would be something like:
=CountIf(A1:A20, <blue or green or purple)

Any help please?
Thanks in advance!
--Dax



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default CountIf Not Multiple

If you want "Counts everything else except those I already counted", just do
it the way you said, as in:

=count(A2:A20)-countif(a2:a20,"blue")-countif(a2:a20,"red")-countif(a2:a20,"purple")

Regards,
Fred.

"Dax Arroway" wrote in message
...
This actually doesn't work because I'm guessing that some of the cells in
the
array (A2:A20) are populated by another sheet and some of the values are
not
there yet (displayed as #NA).

The other "counters" I've got count the blues, purples, etc. and I'm
looking
for a formulat that "Counts everything else except those I already
counted."

My other counters a =Count(A2:A20, "blue") which works great! But
getting it to NOT count 3 different things, is the hard part.
"xlmate" wrote:

try this formula

Assuming you have a header row in row 1,
place this in B2 and copy down to as far as where your data in col A end.


=SUMPRODUCT(--(A2:A10<"blue")*--(A2:A10<"red")*--(A2:A10<"purple"))

Does this do waht you want?

HTH
--
======================
Pls click Yes if this has help you
======================

Thank You

cheers,





"Dax Arroway" wrote:

I'm trying to count a column that doesn't match a few selections. For
example, I want to count all cells in column A which doesn't contain
blue,
green, or purple.

So my formula would be something like:
=CountIf(A1:A20, <blue or green or purple)

Any help please?
Thanks in advance!
--Dax


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 21
Default CountIf Not Multiple

Dax

The 2 formulas provided does count the total on those cells that doesn't
contain
the words "green", "purple" and "red" in a range.

If the result you get are not what you want, then maybe we don't understand
what you are trying to achieve.

You will need to elaborate more and give an example, like providing how does
your table look like and the result you want to see in order for us to assist.

--

cheers,





"Dax Arroway" wrote:

Isn't there a way of counting everything BUT thing1, thing2, and thing3?

"Dax Arroway" wrote:

I'm trying to count a column that doesn't match a few selections. For
example, I want to count all cells in column A which doesn't contain blue,
green, or purple.

So my formula would be something like:
=CountIf(A1:A20, <blue or green or purple)

Any help please?
Thanks in advance!
--Dax

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
SUMPRODUCT, SUMIF, COUNTIF for multiple sheets for multiple criter Greg in CO[_2_] Excel Worksheet Functions 0 September 18th 08 05:51 PM
Nesting COUNTIF for multiple criteria in multiple columns NeedExcelHelp07 Excel Worksheet Functions 1 December 12th 07 05:47 PM
Multiple countif()s or a better way? Mike Echo Excel Worksheet Functions 12 March 12th 06 01:43 PM
Multiple Countif ? BIYB Excel Discussion (Misc queries) 4 July 14th 05 10:49 PM
Countif with multiple criteria and multiple worksheets JJ Excel Worksheet Functions 1 December 28th 04 06:37 PM


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