Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
TT
 
Posts: n/a
Default Countif (same as previous)

When trying to count the number of same values in one column Excel does count
a number of these, but then gives only zero to answer value.

It is like this:

column A column B


11.11.2002 0:01:00 11.11.2002 0:01:00
11.11.2002 0:01:00 11.11.2002 0:02:00
11.11.2002 0:02:00
11.11.2002 0:03:00
etc.

column C

=COUNTIF($A$1:$A$lastvalue;B1)
=COUNTIF($A$1:$A$lastvalue;B2)
etc.

On count 1 answer should be 2 (there is 2 times cell matching cell B1)
On count 2 answer should be 1 (there is 1 times cell matching cell B2) etc.

But Excel (version 2002 SP3) does this randomly and gives answers mostly
zero when copying the function in column C down. What to do ?

Thanks, TT

  #2   Report Post  
JE McGimpsey
 
Posts: n/a
Default

Try:

C1: =COUNTIF(A:A;B1)

and copy down.

IF that doesn't work, are you sure all your data is entered as
date/times rather than text (or, conversely, text rather than
date/times?)?

In article ,
"TT" wrote:

When trying to count the number of same values in one column Excel does count
a number of these, but then gives only zero to answer value.

It is like this:

column A column B


11.11.2002 0:01:00 11.11.2002 0:01:00
11.11.2002 0:01:00 11.11.2002 0:02:00
11.11.2002 0:02:00
11.11.2002 0:03:00
etc.

column C

=COUNTIF($A$1:$A$lastvalue;B1)
=COUNTIF($A$1:$A$lastvalue;B2)
etc.

On count 1 answer should be 2 (there is 2 times cell matching cell B1)
On count 2 answer should be 1 (there is 1 times cell matching cell B2) etc.

But Excel (version 2002 SP3) does this randomly and gives answers mostly
zero when copying the function in column C down. What to do ?

Thanks, TT

  #3   Report Post  
kraljb
 
Posts: n/a
Default


Are the values in 'A' date-time stamps? They could be a fraction of a
second off of the value in column B and they would not match. That
would be the first thing I would check. That would explain the
randomness that is happening.


--
kraljb
------------------------------------------------------------------------
kraljb's Profile: http://www.excelforum.com/member.php...fo&userid=9955
View this thread: http://www.excelforum.com/showthread...hreadid=319930

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
Pivot table help:calculated field based on previous consecutive va martin Excel Discussion (Misc queries) 0 December 9th 04 08:33 PM
Subtotal And Countif Sheryl Excel Discussion (Misc queries) 4 December 9th 04 07:18 PM
Countif - Countif maswinney Excel Worksheet Functions 3 November 15th 04 11:06 PM
countif, again Liz G Excel Worksheet Functions 2 November 1st 04 11:20 PM
combining countif formulas Liz G Excel Worksheet Functions 3 November 1st 04 09:34 PM


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