Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
CiCi Bird
 
Posts: n/a
Default In COUNTIF function, how do I count the number of cells which con.

I have one column of over 100 cells that are either blank or contain a date.
If I use the following, it doesn't add them up correctly.
=COUNTIF(G2:G113,"*") or
=COUNT(G2:G113)
  #2   Report Post  
Dave R.
 
Posts: n/a
Default

You don't say what you want to count but I guess dates. Dates are values,
and count counts values, so maybe your dates are not values? Or your "blank"
cells contain some numbers and are hidden by conditional formatting?



"CiCi Bird" <CiCi wrote in message
...
I have one column of over 100 cells that are either blank or contain a

date.
If I use the following, it doesn't add them up correctly.
=COUNTIF(G2:G113,"*") or
=COUNT(G2:G113)



  #3   Report Post  
CiCi Bird
 
Posts: n/a
Default

Hi Dave R.
I am counting the number of cells that contain a date (01/01/05 for
example), but each cell contains a different date. All other cells are blank
with no conditional formatting other than each cell is formatted for a
"date". Does this provide the info you need? Thanks so much! CiCi

"Dave R." wrote:

You don't say what you want to count but I guess dates. Dates are values,
and count counts values, so maybe your dates are not values? Or your "blank"
cells contain some numbers and are hidden by conditional formatting?



"CiCi Bird" <CiCi wrote in message
...
I have one column of over 100 cells that are either blank or contain a

date.
If I use the following, it doesn't add them up correctly.
=COUNTIF(G2:G113,"*") or
=COUNT(G2:G113)




  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=COUNT(G2:G113)

will count all numeric values and since you only have dates or blanks and
excel dates are numbers it should tell you how many dates

=COUNTBLANK(G2:G113)

count blank cells and

ROWS(G2:G113)

count rows thus cells


Regards,

Peo Sjoblom

"CiCi Bird" wrote:

Hi Dave R.
I am counting the number of cells that contain a date (01/01/05 for
example), but each cell contains a different date. All other cells are blank
with no conditional formatting other than each cell is formatted for a
"date". Does this provide the info you need? Thanks so much! CiCi

"Dave R." wrote:

You don't say what you want to count but I guess dates. Dates are values,
and count counts values, so maybe your dates are not values? Or your "blank"
cells contain some numbers and are hidden by conditional formatting?



"CiCi Bird" <CiCi wrote in message
...
I have one column of over 100 cells that are either blank or contain a

date.
If I use the following, it doesn't add them up correctly.
=COUNTIF(G2:G113,"*") or
=COUNT(G2:G113)




  #5   Report Post  
Dave R.
 
Posts: n/a
Default

My only guess is that some of your dates are actually text, and not values.

Here's a formula which will count both text dates and dates.. if this works
you should probably check over your cells for text dates.

=SUMPRODUCT(--ISNUMBER(DATEVALUE(A1:A10)))+COUNT(A1:A10)



"CiCi Bird" wrote in message
...
Hi Dave R.
I am counting the number of cells that contain a date (01/01/05 for
example), but each cell contains a different date. All other cells are

blank
with no conditional formatting other than each cell is formatted for a
"date". Does this provide the info you need? Thanks so much! CiCi

"Dave R." wrote:

You don't say what you want to count but I guess dates. Dates are

values,
and count counts values, so maybe your dates are not values? Or your

"blank"
cells contain some numbers and are hidden by conditional formatting?



"CiCi Bird" <CiCi wrote in message
...
I have one column of over 100 cells that are either blank or contain a

date.
If I use the following, it doesn't add them up correctly.
=COUNTIF(G2:G113,"*") or
=COUNT(G2:G113)






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
using countif function to add only a half of a number ryanjh79 Excel Discussion (Misc queries) 9 April 26th 23 03:42 AM
Convert data of cells to any type: Number, Date&Time, Text Kevin Excel Discussion (Misc queries) 0 December 30th 04 06:55 AM
Count number of shaded cells Maddoktor Excel Discussion (Misc queries) 2 December 20th 04 08:35 PM
GET.CELL Biff Excel Worksheet Functions 2 November 24th 04 07:16 PM
how do I 'count' the number of cells with a text in red or black? Anjin Topeng Excel Worksheet Functions 2 November 4th 04 06:42 AM


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