Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Debbie
 
Posts: n/a
Default counting text cells

Hi, I need to count the number of cells in a range that have text in the
cell. There are a number of blank cells that when I use the counta function
are included in the count. I don't want the blank cells counted. Any
suggestions?
Ex:
A1 contains 'oranges';A2 to A4 is blank; A5 contains 'apples'; A6 contains
'oranges' A7 contains 'pears'
I want the total in cell A8 to be 4.
  #2   Report Post  
Jason Morin
 
Posts: n/a
Default

=SUMPRODUCT(--(LEN(A1:A7)0))

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi, I need to count the number of cells in a range that

have text in the
cell. There are a number of blank cells that when I use

the counta function
are included in the count. I don't want the blank cells

counted. Any
suggestions?
Ex:
A1 contains 'oranges';A2 to A4 is blank; A5

contains 'apples'; A6 contains
'oranges' A7 contains 'pears'
I want the total in cell A8 to be 4.
.

  #3   Report Post  
Debbie
 
Posts: n/a
Default

Thanks Jason, but this is still returning 7, what am I doing wrong??

"Jason Morin" wrote:

=SUMPRODUCT(--(LEN(A1:A7)0))

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi, I need to count the number of cells in a range that

have text in the
cell. There are a number of blank cells that when I use

the counta function
are included in the count. I don't want the blank cells

counted. Any
suggestions?
Ex:
A1 contains 'oranges';A2 to A4 is blank; A5

contains 'apples'; A6 contains
'oranges' A7 contains 'pears'
I want the total in cell A8 to be 4.
.


  #4   Report Post  
Aladin Akyurek
 
Posts: n/a
Default

=COUNTIF(A1:A7,"?*")

which excludes zero-length text values.

Debbie wrote:
Hi, I need to count the number of cells in a range that have text in the
cell. There are a number of blank cells that when I use the counta function
are included in the count. I don't want the blank cells counted. Any
suggestions?
Ex:
A1 contains 'oranges';A2 to A4 is blank; A5 contains 'apples'; A6 contains
'oranges' A7 contains 'pears'
I want the total in cell A8 to be 4.

  #5   Report Post  
Jason Morin
 
Posts: n/a
Default

It could be a number of things. Send me your file and
I'll take a look. Replace OPPOSITEOFCOLD with you know
what.

Jason

-----Original Message-----
Thanks Jason, but this is still returning 7, what am I

doing wrong??

"Jason Morin" wrote:

=SUMPRODUCT(--(LEN(A1:A7)0))

HTH
Jason
Atlanta, GA

-----Original Message-----
Hi, I need to count the number of cells in a range

that
have text in the
cell. There are a number of blank cells that when I

use
the counta function
are included in the count. I don't want the blank

cells
counted. Any
suggestions?
Ex:
A1 contains 'oranges';A2 to A4 is blank; A5

contains 'apples'; A6 contains
'oranges' A7 contains 'pears'
I want the total in cell A8 to be 4.
.


.

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
Searching for text in cells Matt Excel Discussion (Misc queries) 1 January 31st 05 03:16 AM
how do i add the same text after current text in multiple cells Sue Excel Discussion (Misc queries) 3 January 13th 05 09:28 PM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM
How do I get merged cells to display all text. Excel problem Excel Discussion (Misc queries) 2 November 30th 04 04:29 AM
blank cells that include text Cally Excel Worksheet Functions 3 November 5th 04 01:01 AM


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