#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Countif

I am trying to do a countif function that will show me repeats for 2 days
before and 2 days after through the whole workbook. I am trying to find the
number of repeats through a total of 5 days.


A1 B1
1/4/2008 6:26 2985
1/4/2008 6:27 29855
1/4/2008 6:27 2512
1/4/2008 6:28 20112
1/4/2008 6:28 2985
1/4/2008 6:29 2512
1/4/2008 6:29 454
1/4/2008 6:30 552
1/4/2008 6:30 454
1/4/2008 12:25 29855
1/4/2008 12:26 135
1/4/2008 12:26 1485
1/4/2008 12:27 8859
1/4/2008 12:28 8021
1/4/2008 12:28 3132
1/4/2008 12:29 454
1/4/2008 12:29 552



  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Countif

Not sure exacty what you want, but try this in C1:

=COUNTIF(B$1:B1,B1)

and copy down as required. It will give you a running total of each
value in B, so anything above 1 will indicate repeated values, and the
maximum for any value will indicate how many times that value occurs.

Hope this helps.

Pete

On Feb 5, 1:29*pm, Booman wrote:
I am trying to do a countif function that will show me repeats for 2 days
before and 2 days after through the whole workbook. I am trying to find the
number of repeats through a total of 5 days.

A1 * * * * * * * * * * * B1
1/4/2008 6:26 * 2985
1/4/2008 6:27 * 29855
1/4/2008 6:27 * 2512
1/4/2008 6:28 * 20112
1/4/2008 6:28 * 2985
1/4/2008 6:29 * 2512
1/4/2008 6:29 * 454
1/4/2008 6:30 * 552
1/4/2008 6:30 * 454
1/4/2008 12:25 *29855
1/4/2008 12:26 *135
1/4/2008 12:26 *1485
1/4/2008 12:27 *8859
1/4/2008 12:28 *8021
1/4/2008 12:28 *3132
1/4/2008 12:29 *454
1/4/2008 12:29 *552


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Countif

How can I apply a countif through the whole workbook I'm trying to find the
repeat vaule of B1 through out the whole work book.

"Pete_UK" wrote:

Not sure exacty what you want, but try this in C1:

=COUNTIF(B$1:B1,B1)

and copy down as required. It will give you a running total of each
value in B, so anything above 1 will indicate repeated values, and the
maximum for any value will indicate how many times that value occurs.

Hope this helps.

Pete

On Feb 5, 1:29 pm, Booman wrote:
I am trying to do a countif function that will show me repeats for 2 days
before and 2 days after through the whole workbook. I am trying to find the
number of repeats through a total of 5 days.

A1 B1
1/4/2008 6:26 2985
1/4/2008 6:27 29855
1/4/2008 6:27 2512
1/4/2008 6:28 20112
1/4/2008 6:28 2985
1/4/2008 6:29 2512
1/4/2008 6:29 454
1/4/2008 6:30 552
1/4/2008 6:30 454
1/4/2008 12:25 29855
1/4/2008 12:26 135
1/4/2008 12:26 1485
1/4/2008 12:27 8859
1/4/2008 12:28 8021
1/4/2008 12:28 3132
1/4/2008 12:29 454
1/4/2008 12:29 552



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default Countif

Don't quite understand - do you mean that you want to see if 2985
(from your example) occurs anywhere else in any column, in any
worksheet in the workbook?

If so, that's a pretty tall order.

Perhaps you can describe what you have and what you want to achieve in
some more detail?

Pete

On Feb 5, 3:38*pm, Booman wrote:
How can I apply a countif through the whole workbook I'm trying to find the
repeat vaule of B1 through out the whole work book.



"Pete_UK" wrote:
Not sure exacty what you want, but try this in C1:


=COUNTIF(B$1:B1,B1)


and copy down as required. It will give you a running total of each
value in B, so anything above 1 will indicate repeated values, and the
maximum for any value will indicate how many times that value occurs.


Hope this helps.


Pete


On Feb 5, 1:29 pm, Booman wrote:
I am trying to do a countif function that will show me repeats for 2 days
before and 2 days after through the whole workbook. I am trying to find the
number of repeats through a total of 5 days.


A1 * * * * * * * * * * * B1
1/4/2008 6:26 * 2985
1/4/2008 6:27 * 29855
1/4/2008 6:27 * 2512
1/4/2008 6:28 * 20112
1/4/2008 6:28 * 2985
1/4/2008 6:29 * 2512
1/4/2008 6:29 * 454
1/4/2008 6:30 * 552
1/4/2008 6:30 * 454
1/4/2008 12:25 *29855
1/4/2008 12:26 *135
1/4/2008 12:26 *1485
1/4/2008 12:27 *8859
1/4/2008 12:28 *8021
1/4/2008 12:28 *3132
1/4/2008 12:29 *454
1/4/2008 12:29 *552- Hide quoted text -


- Show quoted text -


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
How do I use a countif function according to two other countif fu. Kirsty Excel Worksheet Functions 2 February 20th 06 11:44 AM
edit this =COUNTIF(A1:F16,"*1-2*")+COUNTIF(A1:F16,"*2-1*") sctroy Excel Discussion (Misc queries) 2 September 25th 05 04:13 AM
COUNTIF or not to COUNTIF on a range in another sheet Ellie Excel Worksheet Functions 4 September 15th 05 10:06 PM
Countif ... heater Excel Discussion (Misc queries) 2 June 1st 05 12:09 AM
COUNTIF in one colum then COUNTIF in another...??? JonnieP Excel Worksheet Functions 3 February 22nd 05 02:55 PM


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