Re: combining countif and mid or right functions
- From: "Charles Woll" <cwoll@xxxxxxxxxxx>
- Date: Sat, 9 Jul 2005 14:21:55 -0500
Thank you very much.
charlie woll
"Dave Peterson" <petersod@xxxxxxxxxxxxxxxx> wrote in message
news:42D0214E.FE06CD7B@xxxxxxxxxxxxxxxxxxx
> 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
.
- References:
- combining countif and mid or right functions
- From: Charles Woll
- Re: combining countif and mid or right functions
- From: Dave Peterson
- combining countif and mid or right functions
- Prev by Date: Re: combining countif and mid or right functions
- Next by Date: Find/replace with different text colour messes up
- 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
|