Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
hans
 
Posts: n/a
Default count how often a name exist

I want to know how often a name (say jack) occurs in a spreadsheet.
The name has to be found in the range c6:f40 but.........
i have 50 sheets. named 1, 2, 3, 4, .......50
and i want to know the sum of how often a name occurs in all sheets
together.

Can someone help me?
Greetings Hans


  #2   Report Post  
LizJ
 
Posts: n/a
Default

Hello Hans

The formula you need for this is countif. Where you require the answer, type
=countif(
to select all of your 50 sheets, hold down shift as you select the first and
last tab, so the formula will read =countif('Sheet1:Sheet50'
then select the range c6:f40
=countif('Sheet1:Sheet50'!c6:f40
the last bit says what you're counting, so "jack". Because this is text,
not a number you need to enclose it in quotes, so your entire formula should
read

=countif('Sheet1:Sheet50'!c6:f40;"jack")

don't forget the ; between the range and what you're looking for

hope this helps

Liz

"hans" wrote:

I want to know how often a name (say jack) occurs in a spreadsheet.
The name has to be found in the range c6:f40 but.........
i have 50 sheets. named 1, 2, 3, 4, .......50
and i want to know the sum of how often a name occurs in all sheets
together.

Can someone help me?
Greetings Hans



  #3   Report Post  
LizJ
 
Posts: n/a
Default

Apologies Hans, an error in my last post, the range should be split from the
criteria with a comma not a semi-colon. I've also just tried with a range,
and it doesn't seem to work, so you might need to do this function on each
sheet, and then sum them at the end.

"hans" wrote:

I want to know how often a name (say jack) occurs in a spreadsheet.
The name has to be found in the range c6:f40 but.........
i have 50 sheets. named 1, 2, 3, 4, .......50
and i want to know the sum of how often a name occurs in all sheets
together.

Can someone help me?
Greetings Hans



  #4   Report Post  
Domenic
 
Posts: n/a
Default

If in fact your sheets are named 1, 2, 3, etc. and not Sheet1, Sheet2,
Sheet3, etc., try...

=SUMPRODUCT(COUNTIF(INDIRECT(ROW(INDIRECT("1:50")) &"!C6:F40"),"jack"))

....otherwise, try...

=SUMPRODUCT(COUNTIF(INDIRECT("'Sheet"&ROW(INDIRECT ("1:50"))&"'!C6:F40"),"
jack"))

Hope this helps!

In article ,
"hans" wrote:

I want to know how often a name (say jack) occurs in a spreadsheet.
The name has to be found in the range c6:f40 but.........
i have 50 sheets. named 1, 2, 3, 4, .......50
and i want to know the sum of how often a name occurs in all sheets
together.

Can someone help me?
Greetings Hans

  #5   Report Post  
hans
 
Posts: n/a
Default

thanks, this is exactly what i needed.

Greetings Hans


"Domenic" schreef in bericht
...
If in fact your sheets are named 1, 2, 3, etc. and not Sheet1, Sheet2,
Sheet3, etc., try...

=SUMPRODUCT(COUNTIF(INDIRECT(ROW(INDIRECT("1:50")) &"!C6:F40"),"jack"))

...otherwise, try...

=SUMPRODUCT(COUNTIF(INDIRECT("'Sheet"&ROW(INDIRECT ("1:50"))&"'!C6:F40"),"
jack"))

Hope this helps!

In article ,
"hans" wrote:

I want to know how often a name (say jack) occurs in a spreadsheet.
The name has to be found in the range c6:f40 but.........
i have 50 sheets. named 1, 2, 3, 4, .......50
and i want to know the sum of how often a name occurs in all sheets
together.

Can someone help me?
Greetings Hans



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
count a group of numbers but do not count duplicates Lisaml Excel Worksheet Functions 2 January 26th 05 11:19 PM
Count number to reach a cumulative value Bruce Excel Worksheet Functions 5 January 25th 05 05:14 PM
count data but avoid double entries Manos Excel Worksheet Functions 1 December 14th 04 07:00 AM
Count If Formula Mimi Excel Worksheet Functions 0 November 5th 04 11:55 AM
count based on two fields - need quickly JO Excel Worksheet Functions 1 November 1st 04 09:44 PM


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