Re: Countif function for Even and Odd numbers
- From: John C <johnc@stateofdenial>
- Date: Thu, 23 Oct 2008 10:20:01 -0700
I only responded to you because all you seem to do is belittle others in your
posts. Pointing out an error is one thing. But if an OP says they have a
column of odd and even numbers, and then gives an example of numbers, all of
which are whole numbers, and therefore, odd or even, then perhaps you can
expect that the OP actually knows what they are talking about. Perhaps you
should reconsider that instead of treating everyone like an idiot.
--
** John C **
"Harlan Grove" wrote:
John C <johnc@stateofdenial> wrote....
I guess the OP declaration of ...I would like to count a column that
consists of even and odd numbers ... means nothing then.
Not nothing, but little. Follow the newsgroups for a while and you'll
find that most OPs oversimplify their examples. If and when you gain
some experience responding in newsgroups, you may learn to anticipate
this.
Also, Google archives newsgroups, and some people (not many given the
frequency that the same questions get asked and answered) review the
archives for answers to commonly asked questions. While this OP may be
working only with integers, others who read this thread later could be
working with nonintegers.
Your argument, while technically correct, is unnecessary, as, per the OP,
the column will contain either even numbers or odd numbers.
Robustness is good. The formula
=SUMPRODUCT(--(MOD(A1:A10,2)>0))
is OBJECTIVELY LESS ROBUST than
=SUMPRODUCT(--(MOD(A1:A10,2)=1))
If robustness means little or nothing to you, pity for your employer
and co-workers.
- Follow-Ups:
- Re: Countif function for Even and Odd numbers
- From: Harlan Grove
- Re: Countif function for Even and Odd numbers
- References:
- Countif function for Even and Odd numbers
- From: Jezzy
- Re: Countif function for Even and Odd numbers
- From: T. Valko
- Re: Countif function for Even and Odd numbers
- From: Harlan Grove
- Re: Countif function for Even and Odd numbers
- From: John C
- Re: Countif function for Even and Odd numbers
- From: Harlan Grove
- Countif function for Even and Odd numbers
- Prev by Date: Re: COUNTIF by date range problem
- Next by Date: Lookup and match then return data from another sheet
- Previous by thread: Re: Countif function for Even and Odd numbers
- Next by thread: Re: Countif function for Even and Odd numbers
- Index(es):
Relevant Pages
|