PC Review


Reply
Thread Tools Rate Thread

Count some of the numbers in a cell

 
 
Full Name
Guest
Posts: n/a
 
      3rd Jul 2007
Hello,
can someone please help.

I have a spreadsheet that have a "random" set of numbers in cells A:A.

Many of the numbers in A:A have numbers that starts with a fixed
number e.g 12345 the next 5 numbers is random.
Some of the others starts with 23456 the next 5 is random.

12345 and 23456 is the only leftmost numbers in A:A

Like this

1234503256
1234501204
1234599652
2345600369
2345698005


In C1 I want it to show 3 (count of numbers that starts with 12345)
In D1 I want it to show 2 (count of numbers that starts with 23456)

I have tried to combine countif and left function without solving it,
obviously. 8-) Using Office 2007

Regards
Jon
 
Reply With Quote
 
 
 
 
Ken
Guest
Posts: n/a
 
      3rd Jul 2007
Jon

Try

=COUNTIF(A1:A5,">1234500000")-COUNTIF(A1:A5,">2345600000") in C1
and
=COUNTIF(A1:A5,">2345600000") in D1.

Good luck.

Ken
Norfolk, Va



On Jul 3, 5:35 pm, Full Name <nob...@all.net> wrote:
> Hello,
> can someone please help.
>
> I have a spreadsheet that have a "random" set of numbers in cells A:A.
>
> Many of the numbers in A:A have numbers that starts with a fixed
> number e.g 12345 the next 5 numbers is random.
> Some of the others starts with 23456 the next 5 is random.
>
> 12345 and 23456 is the only leftmost numbers in A:A
>
> Like this
>
> 1234503256
> 1234501204
> 1234599652
> 2345600369
> 2345698005
>
> In C1 I want it to show 3 (count of numbers that starts with 12345)
> In D1 I want it to show 2 (count of numbers that starts with 23456)
>
> I have tried to combine countif and left function without solving it,
> obviously. 8-) Using Office 2007
>
> Regards
> Jon



 
Reply With Quote
 
=?Utf-8?B?cDQ1Y2Fs?=
Guest
Posts: n/a
 
      4th Jul 2007
=SUMPRODUCT(--(LEFT(A1:A5,5)="12345"))
=SUMPRODUCT(--(LEFT(A1:A5,5)="23456"))
--
p45cal


"Full Name" wrote:

> Hello,
> can someone please help.
>
> I have a spreadsheet that have a "random" set of numbers in cells A:A.
>
> Many of the numbers in A:A have numbers that starts with a fixed
> number e.g 12345 the next 5 numbers is random.
> Some of the others starts with 23456 the next 5 is random.
>
> 12345 and 23456 is the only leftmost numbers in A:A
>
> Like this
>
> 1234503256
> 1234501204
> 1234599652
> 2345600369
> 2345698005
>
>
> In C1 I want it to show 3 (count of numbers that starts with 12345)
> In D1 I want it to show 2 (count of numbers that starts with 23456)
>
> I have tried to combine countif and left function without solving it,
> obviously. 8-) Using Office 2007
>
> Regards
> Jon
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Count based on cell value between two numbers joemc911 Microsoft Excel Misc 4 21st Apr 2010 09:57 PM
Count numbers in the same cell backmara Microsoft Excel Misc 10 22nd May 2009 01:00 PM
Count numbers in the same cell backmara Microsoft Excel Misc 0 22nd May 2009 11:47 AM
Count numbers of Month in a cell Navarat Mishra Microsoft Excel Worksheet Functions 4 23rd Feb 2009 11:34 AM
Function to count numbers in one Cell IE 1+2+10 =?Utf-8?B?TWl0Y2g=?= Microsoft Excel Worksheet Functions 6 30th Aug 2007 11:55 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:34 PM.