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

Is it possible to set a CountIf criteria across more than 1 worksheet? I
want to find all occurances of the word John across all 5 worksheets.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default CountIf

Not directly but you can use it in combination with other functions.

If your sheet names are unique and don't follow any sort of sequential
naming convention then you have to list the sheet names in a range of cells.
Let's assume you list the sheet names in the range J1:J5.

=SUMPRODUCT(COUNTIF(INDIRECT("'"&J1:J5&"'!A:A"),"J ohn"))

That will do a COUNTIF of column A for the sheets listed in J1:J5 for the
string John.

If your sheet names follow some sort of sequential naming convention (
Week1, Week2, Week3 etc.) then you can build this into the formula and not
have to make a list of the sheet names.

You can always put a separate COUNITF formula on each individual sheet in
the same cell then do a SUM:

=COUNTIF(A:A,"John")

=SUM(Sheet1:Sheet5!B1)

--
Biff
Microsoft Excel MVP


"ordnance1" wrote in message
...
Is it possible to set a CountIf criteria across more than 1 worksheet? I
want to find all occurances of the word John across all 5 worksheets.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,651
Default CountIf

On Wed, 24 Dec 2008 17:12:01 -0800, ordnance1
wrote:

Is it possible to set a CountIf criteria across more than 1 worksheet? I
want to find all occurances of the word John across all 5 worksheets.


Download and install Laurent Longre's free morefunc.xll add-in and use the
COUNTIF.3D function.

1. This does not seem to work in Excel 2007, but works in earlier versions.
2. The usual download site is intermittently non-functional; you may have to
do a google search to find a good site.
--ron
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
sum a countif tamiluchi Excel Worksheet Functions 4 September 14th 06 10:08 PM
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 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 02:53 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"