Re: combining countif and mid or right functions
- From: Dave Peterson <petersod@xxxxxxxxxxxxxxxx>
- Date: Sat, 09 Jul 2005 14:11:10 -0500
To get the count of the values that have "04" in the second and third place
(from the left), you could use:
=SUMPRODUCT(--(MID(TEXT(A1:A5,REPT("0",9)),2,2)="04"))
To count the number that end with 1, you could use:
=SUMPRODUCT(--(MOD(A1:A5,10)=1))
=sumproduct() likes to work with numbers. The -- converts Trues and Falses to
+1's and 0's.
Charles Woll wrote:
>
> I can not get the syntax correct to use countif with right or mid functions.
> I have a long list of numbers in column A - sample:
>
> 404030164
> 404030173
> 404030182
> 404030192
> 404030204
>
> I need to count the number of 1's in the last digit and 04's in the 2nd and
> 3rd digits.
>
> --
> \\\|///
> \\ ~ ~ //
> ( @ @ )
> --oOOo-(_)-oOOo---
> Charlie Woll
>
--
Dave Peterson
.
- Follow-Ups:
- Re: combining countif and mid or right functions
- From: Charles Woll
- Re: combining countif and mid or right functions
- References:
- combining countif and mid or right functions
- From: Charles Woll
- combining countif and mid or right functions
- Prev by Date: Re: Cell_multiplication
- Next by Date: Re: File shared on network, can it be opened READ ONLY from all but one computer?
- Previous by thread: Re: combining countif and mid or right functions
- Next by thread: Re: combining countif and mid or right functions
- Index(es):
Relevant Pages
|