Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
jezzica85
 
Posts: n/a
Default Counting words with numbers in them

Hi all,
If I have a row of words and numbers like this:

example
1922-example
anotherexample
3311
athirdexample
332

Is there a way to use the COUNTIF function to count how many of these words
are numbers, and how many start with numbers? So, in this example, 1 word
starts with a number, and 2 are numbers. Failing that, is there a way to
just count how many words have numbers in them, so there would be 3 in this
example? Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.misc
Peo Sjoblom
 
Posts: n/a
Default Counting words with numbers in them

Start with a number and the rest text


=SUMPRODUCT(--(ISNUMBER(--LEFT(A1:A10))),--(ISERR(--(A1:A10))))


pure numbers

=COUNT(A1:A10)


--

Regards,

Peo Sjoblom

Northwest Excel Solutions

www.nwexcelsolutions.com

(remove ^^ from email address)

Portland, Oregon




"jezzica85" wrote in message
...
Hi all,
If I have a row of words and numbers like this:

example
1922-example
anotherexample
3311
athirdexample
332

Is there a way to use the COUNTIF function to count how many of these
words
are numbers, and how many start with numbers? So, in this example, 1 word
starts with a number, and 2 are numbers. Failing that, is there a way to
just count how many words have numbers in them, so there would be 3 in
this
example? Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.misc
Ron Rosenfeld
 
Posts: n/a
Default Counting words with numbers in them

On Fri, 10 Mar 2006 19:47:27 -0800, jezzica85
wrote:

Hi all,
If I have a row of words and numbers like this:

example
1922-example
anotherexample
3311
athirdexample
332

Is there a way to use the COUNTIF function to count how many of these words
are numbers, and how many start with numbers? So, in this example, 1 word
starts with a number, and 2 are numbers. Failing that, is there a way to
just count how many words have numbers in them, so there would be 3 in this
example? Thanks!


I can't do it with the COUNTIF function but:

Values that are Numbers:

=SUMPRODUCT(--ISNUMBER(rng))

Values that start with a Number (this includes the values that ARE numbers)

=SUMPRODUCT(--ISNUMBER(-LEFT(rng,1)))

Non-numeric values that start with a number would just be the difference of the
above two:

=SUMPRODUCT(--ISNUMBER(-LEFT(rng,1)))-SUMPRODUCT(--ISNUMBER(rng))
--ron
  #4   Report Post  
Posted to microsoft.public.excel.misc
jezzica85
 
Posts: n/a
Default Counting words with numbers in them

Thank you both for the help!

"Ron Rosenfeld" wrote:

On Fri, 10 Mar 2006 19:47:27 -0800, jezzica85
wrote:

Hi all,
If I have a row of words and numbers like this:

example
1922-example
anotherexample
3311
athirdexample
332

Is there a way to use the COUNTIF function to count how many of these words
are numbers, and how many start with numbers? So, in this example, 1 word
starts with a number, and 2 are numbers. Failing that, is there a way to
just count how many words have numbers in them, so there would be 3 in this
example? Thanks!


I can't do it with the COUNTIF function but:

Values that are Numbers:

=SUMPRODUCT(--ISNUMBER(rng))

Values that start with a Number (this includes the values that ARE numbers)

=SUMPRODUCT(--ISNUMBER(-LEFT(rng,1)))

Non-numeric values that start with a number would just be the difference of the
above two:

=SUMPRODUCT(--ISNUMBER(-LEFT(rng,1)))-SUMPRODUCT(--ISNUMBER(rng))
--ron

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
Counting Unique Part Numbers In A Range BigH Excel Worksheet Functions 2 December 9th 05 07:09 PM
counting unique numbers in filtered data deb Excel Worksheet Functions 1 September 22nd 05 09:41 PM
Counting rows containing data (both numbers and text) mconnolly Excel Worksheet Functions 4 August 29th 05 03:58 PM
Numbers converted into amount in words in English? Kapila Excel Worksheet Functions 2 August 23rd 05 12:30 PM
Counting Numbers in an Interval Leslie Coover Excel Worksheet Functions 3 August 4th 05 06:04 AM


All times are GMT +1. The time now is 08:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"