Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default Count values in a range of cells

I have a range of cells with values that are 5 or 10 numbers long that start
with 11, 12 or 13. What function do I use to tell Excel to count only the
cells which value starts with 11? I do not want to sum, only count the number
of cells that have values starting with 11. Again, the values can be 5
digits, as in 11222 or 10 digits such as 1122222222. I only want Excel to
return the number of values that start with 11 regardless of how long the
digit actually is.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,268
Default Count values in a range of cells

=SUMPRODUCT(--(LEFT(A1:A20,2)="11"))


--


Regards,


Peo Sjoblom


"Loralei" wrote in message
...
I have a range of cells with values that are 5 or 10 numbers long that
start
with 11, 12 or 13. What function do I use to tell Excel to count only the
cells which value starts with 11? I do not want to sum, only count the
number
of cells that have values starting with 11. Again, the values can be 5
digits, as in 11222 or 10 digits such as 1122222222. I only want Excel to
return the number of values that start with 11 regardless of how long the
digit actually is.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Count values in a range of cells

Assuming your values are in A1:A100, try this:

=SUMPRODUCT(--(LEFT(A1:A100,2)="11"))

Adjust the range to suit.

Hope this helps.

Pete


On Nov 13, 10:57 pm, Loralei
wrote:
I have a range of cells with values that are 5 or 10 numbers long that start
with 11, 12 or 13. What function do I use to tell Excel to count only the
cells which value starts with 11? I do not want to sum, only count the number
of cells that have values starting with 11. Again, the values can be 5
digits, as in 11222 or 10 digits such as 1122222222. I only want Excel to
return the number of values that start with 11 regardless of how long the
digit actually is.



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Count values in a range of cells

Try this:

=SUMPRODUCT(--(LEFT(A1:A10,2)="11"))

--
Biff
Microsoft Excel MVP


"Loralei" wrote in message
...
I have a range of cells with values that are 5 or 10 numbers long that
start
with 11, 12 or 13. What function do I use to tell Excel to count only the
cells which value starts with 11? I do not want to sum, only count the
number
of cells that have values starting with 11. Again, the values can be 5
digits, as in 11222 or 10 digits such as 1122222222. I only want Excel to
return the number of values that start with 11 regardless of how long the
digit actually is.



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
count even-numbered values in a range Dave F[_2_] Excel Discussion (Misc queries) 5 August 1st 07 04:12 PM
how do i count cells with values in a certain range ? Capt. Trevor Bailey Excel Discussion (Misc queries) 3 October 11th 06 03:48 PM
Count the how many different values in a range beechum1 Excel Worksheet Functions 3 February 12th 06 06:45 AM
How to count a range of values in a single cell? nyc_doc Excel Worksheet Functions 3 August 3rd 05 12:30 AM
Count cells in one range based on parameters in another range dave roth Excel Worksheet Functions 2 March 29th 05 05:33 PM


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