Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default exclude formulas when counting cells

Is there a "count" formula that will only count the DATE entry in a cell and
exclude the formula in the cell?

A1, A2, A3, A4 have =if(isblank) formulas linked to another file. If a date
auto populates in cell A1 and A4, the count should be 2. However, the
current count formula used in the spreadsheet shows 4 because the formula
counts any data in the 4 cells.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default exclude formulas when counting cells

To count DATES use the COUNT function. Dates are just numbers formatted to
look like dates.

=COUNT(A1:A4)

Note that this will count *all* numbers, not just the "dates".

A1 = 8/12/2008
A2 = 10
A3 = 37
A4 = 9/27/2002

=COUNT(A1:A4) = 4

If you only want the "dates" counted then you'd have to narrow down the
dates to a range so that the result would exclude entries like A2 and A3.

--
Biff
Microsoft Excel MVP


"JayDee" wrote in message
...
Is there a "count" formula that will only count the DATE entry in a cell
and
exclude the formula in the cell?

A1, A2, A3, A4 have =if(isblank) formulas linked to another file. If a
date
auto populates in cell A1 and A4, the count should be 2. However, the
current count formula used in the spreadsheet shows 4 because the formula
counts any data in the 4 cells.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11
Default exclude formulas when counting cells

Please provide an example to only count the cells with dates. I was using
the count function but it counts the cell if there is a date or text or
number in the cell. So my count was incorrect when I added the IF formulas
to the cells.

"T. Valko" wrote:

To count DATES use the COUNT function. Dates are just numbers formatted to
look like dates.

=COUNT(A1:A4)

Note that this will count *all* numbers, not just the "dates".

A1 = 8/12/2008
A2 = 10
A3 = 37
A4 = 9/27/2002

=COUNT(A1:A4) = 4

If you only want the "dates" counted then you'd have to narrow down the
dates to a range so that the result would exclude entries like A2 and A3.

--
Biff
Microsoft Excel MVP


"JayDee" wrote in message
...
Is there a "count" formula that will only count the DATE entry in a cell
and
exclude the formula in the cell?

A1, A2, A3, A4 have =if(isblank) formulas linked to another file. If a
date
auto populates in cell A1 and A4, the count should be 2. However, the
current count formula used in the spreadsheet shows 4 because the formula
counts any data in the 4 cells.




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default exclude formulas when counting cells

the count function but it counts the cell if there
is a date or text or number in the cell.


COUNT *does not* count text. You may be thinking of COUNTA which will count
all cells that are not empty. That includes text, numbers, errors, logicals,
formula blanks.

Using this example to count only the dates:

A1 = 8/12/2008
A2 = 10
A3 = 37
A4 = 9/27/2002

=SUMPRODUCT(--(A1:A410000))

The logic is based on the fact that I know for certain:

There will be no dates earlier than January 1 1980
There will be no numbers greater than 100


--
Biff
Microsoft Excel MVP


"JayDee" wrote in message
...
Please provide an example to only count the cells with dates. I was using
the count function but it counts the cell if there is a date or text or
number in the cell. So my count was incorrect when I added the IF
formulas
to the cells.

"T. Valko" wrote:

To count DATES use the COUNT function. Dates are just numbers formatted
to
look like dates.

=COUNT(A1:A4)

Note that this will count *all* numbers, not just the "dates".

A1 = 8/12/2008
A2 = 10
A3 = 37
A4 = 9/27/2002

=COUNT(A1:A4) = 4

If you only want the "dates" counted then you'd have to narrow down the
dates to a range so that the result would exclude entries like A2 and A3.

--
Biff
Microsoft Excel MVP


"JayDee" wrote in message
...
Is there a "count" formula that will only count the DATE entry in a
cell
and
exclude the formula in the cell?

A1, A2, A3, A4 have =if(isblank) formulas linked to another file. If a
date
auto populates in cell A1 and A4, the count should be 2. However, the
current count formula used in the spreadsheet shows 4 because the
formula
counts any data in the 4 cells.






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
need this formula to exclude cell value 'x' and 'xx' when counting Mitchell_Collen via OfficeKB.com Excel Discussion (Misc queries) 2 July 10th 08 04:55 PM
Exclude weekends when counting days only on day 29 or 30 Loren A - Huntley, Illinois Excel Worksheet Functions 3 February 19th 08 09:18 PM
Counting cells containing formulas with blank results Joe M. Excel Discussion (Misc queries) 3 January 31st 08 08:35 PM
Counting Non Blank Cells that Contain Formulas jimswinder Excel Worksheet Functions 1 July 21st 06 11:36 PM
Pivot table, how do you exclude counting cells with formulas as a Greg Bobak Excel Worksheet Functions 4 November 4th 04 12:05 AM


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