Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hello There,
I am wondering how you can count the number of occurences in myRange that contains 2 charters only? This function does obviously not do the trick: =SUMPRODUCT(--(ISNUMBER(SEARCH("??",myRange)))) Brgds Jen |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Try this:
=SUMPRODUCT(--(LEN(myRange)=2)) Hope this helps. Pete On Jun 26, 12:59 pm, "Jen" wrote: Hello There, I am wondering how you can count the number of occurences in myRange that contains 2 charters only? This function does obviously not do the trick: =SUMPRODUCT(--(ISNUMBER(SEARCH("??",myRange)))) Brgds Jen |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Pete,
Thanks! WHat it needs to do...! :) How would an array-formula look like to do the same? I tried Ctrl+Shift+Enter on =COUNTA(LEN(myRange)=2) but that's not it. Jen "Pete_UK" wrote in message oups.com... Try this: =SUMPRODUCT(--(LEN(myRange)=2)) Hope this helps. Pete On Jun 26, 12:59 pm, "Jen" wrote: Hello There, I am wondering how you can count the number of occurences in myRange that contains 2 charters only? This function does obviously not do the trick: =SUMPRODUCT(--(ISNUMBER(SEARCH("??",myRange)))) Brgds Jen |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You could try this:
=SUM(IF(LEN(myRange)=2,1)) commit with CTRL-SHIFT-ENTER. Hope this helps. Pete On Jun 26, 3:37 pm, "Jen" wrote: Hi Pete, Thanks! WHat it needs to do...! :) How would an array-formula look like to do the same? I tried Ctrl+Shift+Enter on =COUNTA(LEN(myRange)=2) but that's not it. Jen "Pete_UK" wrote in message oups.com... Try this: =SUMPRODUCT(--(LEN(myRange)=2)) Hope this helps. Pete On Jun 26, 12:59 pm, "Jen" wrote: Hello There, I am wondering how you can count the number of occurences in myRange that contains 2 charters only? This function does obviously not do the trick: =SUMPRODUCT(--(ISNUMBER(SEARCH("??",myRange)))) Brgds Jen- Hide quoted text - - Show quoted text - |
#5
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Hi Pete,
Yes it worked! But htat you knew already ;) Jen "Pete_UK" wrote in message ps.com... You could try this: =SUM(IF(LEN(myRange)=2,1)) commit with CTRL-SHIFT-ENTER. Hope this helps. Pete On Jun 26, 3:37 pm, "Jen" wrote: Hi Pete, Thanks! WHat it needs to do...! :) How would an array-formula look like to do the same? I tried Ctrl+Shift+Enter on =COUNTA(LEN(myRange)=2) but that's not it. Jen "Pete_UK" wrote in message oups.com... Try this: =SUMPRODUCT(--(LEN(myRange)=2)) Hope this helps. Pete On Jun 26, 12:59 pm, "Jen" wrote: Hello There, I am wondering how you can count the number of occurences in myRange that contains 2 charters only? This function does obviously not do the trick: =SUMPRODUCT(--(ISNUMBER(SEARCH("??",myRange)))) Brgds Jen- Hide quoted text - - Show quoted text - |
#6
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Thanks for feeding back, Jen - glad it worked for you.
Pete On Jun 27, 7:45 am, "Jen" wrote: Hi Pete, Yes it worked! But htat you knew already ;) Jen "Pete_UK" wrote in message ps.com... You could try this: =SUM(IF(LEN(myRange)=2,1)) commit with CTRL-SHIFT-ENTER. Hope this helps. Pete On Jun 26, 3:37 pm, "Jen" wrote: Hi Pete, Thanks! WHat it needs to do...! :) How would an array-formula look like to do the same? I tried Ctrl+Shift+Enter on =COUNTA(LEN(myRange)=2) but that's not it. Jen "Pete_UK" wrote in message groups.com... Try this: =SUMPRODUCT(--(LEN(myRange)=2)) Hope this helps. Pete On Jun 26, 12:59 pm, "Jen" wrote: Hello There, I am wondering how you can count the number of occurences in myRange that contains 2 charters only? This function does obviously not do the trick: =SUMPRODUCT(--(ISNUMBER(SEARCH("??",myRange)))) Brgds Jen- Hide quoted text - - Show quoted text -- Hide quoted text - - Show quoted text - |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Count number of occurences within a time range | Excel Discussion (Misc queries) | |||
Counting occurences of characters in a cell | Excel Worksheet Functions | |||
Count # of Occurences | Excel Discussion (Misc queries) | |||
How do I count occurences in a date range? | Excel Worksheet Functions | |||
How do I count the number of alpha occurences in a range? | Excel Worksheet Functions |