Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Countng the number of non blank fields in a table

Hi:

I have a table, and have simple question:

I wish to count the number of entries (i.e non blank records in the table)



=DCOUNT(A3:A80,1,D6:D7)

where d6:d7 say :

File Name
isblank()

I have also tried 0 and a number of other formulations but non appears to work.

Suggestions please.

John Baker
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Countng the number of non blank fields in a table

Hi John
one way:
=COUNTA(A3:A80)

--
Regards
Frank Kabel
Frankfurt, Germany


John Baker wrote:
Hi:

I have a table, and have simple question:

I wish to count the number of entries (i.e non blank records in the
table)



=DCOUNT(A3:A80,1,D6:D7)

where d6:d7 say :

File Name
isblank()

I have also tried 0 and a number of other formulations but non
appears to work.

Suggestions please.

John Baker

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 98
Default Countng the number of non blank fields in a table

Excellent!

Thank You

John Baker


"Frank Kabel" wrote:

Hi John
one way:
=COUNTA(A3:A80)


  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Countng the number of non blank fields in a table

Another less elegant response. Frank's answer is much mor
appropriate.

=COUNTIF(H1:J5,"<")

Essentially, count if the cell is not equal to nothing.



--
Message posted from http://www.ExcelForum.com

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Countng the number of non blank fields in a table

Hi
I would strongly recommend not to use this syntax :-)
You may run into trouble using this (COUNTIF has problems with the used
range in combination with this comparison).

To show this error try the following:
- open a new, frsh workbook
- enter the following formula in B1:
=COUNTIF(A1:A5;"<")

the expected result would be '0'. Though this generate for me the
result of '1'!


--
Regards
Frank Kabel
Frankfurt, Germany


Another less elegant response. Frank's answer is much more
appropriate.

=COUNTIF(H1:J5,"<")

Essentially, count if the cell is not equal to nothing.

K


---
Message posted from http://www.ExcelForum.com/




  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,624
Default Countng the number of non blank fields in a table

Frank - what version of XL? (I've never seen this error in MacXL)

Does it occur in any useful context (i.e, where there is more than just
the one formula in a sheet)?

In article ,
"Frank Kabel" wrote:

To show this error try the following:
- open a new, frsh workbook
- enter the following formula in B1:
=COUNTIF(A1:A5;"<")

the expected result would be '0'. Though this generate for me the
result of '1'!

  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Countng the number of non blank fields in a table

Hi JE
Excel 2003. We had a discussion some weeks ago about COUNTIF (and
SUMIF) failures using conditions like < or =""
Ken Wright produced the same kind of error in his Excel 2000 version.

See the discussion at
http://tinyurl.com/3csbb


--
Regards
Frank Kabel
Frankfurt, Germany


JE McGimpsey wrote:
Frank - what version of XL? (I've never seen this error in MacXL)

Does it occur in any useful context (i.e, where there is more than
just the one formula in a sheet)?

In article ,
"Frank Kabel" wrote:

To show this error try the following:
- open a new, frsh workbook
- enter the following formula in B1:
=COUNTIF(A1:A5;"<")

the expected result would be '0'. Though this generate for me the
result of '1'!


  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Countng the number of non blank fields in a table

Frank,

Never seen this, and it doesn't happen on my laptop, XL2000, XP Pro.

--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)

"Frank Kabel" wrote in message
...
Hi
I would strongly recommend not to use this syntax :-)
You may run into trouble using this (COUNTIF has problems with the used
range in combination with this comparison).

To show this error try the following:
- open a new, frsh workbook
- enter the following formula in B1:
=COUNTIF(A1:A5;"<")

the expected result would be '0'. Though this generate for me the
result of '1'!


--
Regards
Frank Kabel
Frankfurt, Germany


Another less elegant response. Frank's answer is much more
appropriate.

=COUNTIF(H1:J5,"<")

Essentially, count if the cell is not equal to nothing.

K


---
Message posted from http://www.ExcelForum.com/




  #9   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Countng the number of non blank fields in a table

Hi
tried in in Excel 2000 and Excel 2003 with fresh workbooks.
If you like I can email you my sample file

--
Regards
Frank Kabel
Frankfurt, Germany


Bob Phillips wrote:
Frank,

Never seen this, and it doesn't happen on my laptop, XL2000, XP Pro.


"Frank Kabel" wrote in message
...
Hi
I would strongly recommend not to use this syntax :-)
You may run into trouble using this (COUNTIF has problems with the
used range in combination with this comparison).

To show this error try the following:
- open a new, frsh workbook
- enter the following formula in B1:
=COUNTIF(A1:A5;"<")

the expected result would be '0'. Though this generate for me the
result of '1'!


--
Regards
Frank Kabel
Frankfurt, Germany


Another less elegant response. Frank's answer is much more
appropriate.

=COUNTIF(H1:J5,"<")

Essentially, count if the cell is not equal to nothing.

K


---
Message posted from http://www.ExcelForum.com/

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
Default number formats for pivot table fields SomecallmeTim Excel Discussion (Misc queries) 1 October 18th 07 04:57 AM
Max Number Fields/Columns In Pivot Table John Calder New Users to Excel 2 May 23rd 07 11:41 PM
Pivot table row fields limit vs. number of rows in use for Excel 2 VP needs help Excel Discussion (Misc queries) 3 October 11th 06 08:11 PM
number of fields in the row fields in pivot table UT Excel Discussion (Misc queries) 0 April 13th 06 01:17 AM
Pivot Table problem, blank fields aren't being added Ant Excel Discussion (Misc queries) 3 November 8th 05 03:13 AM


All times are GMT +1. The time now is 11:54 PM.

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"