Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Gitel
 
Posts: n/a
Default Counting text across multiple sheets with a specific criterion

I have a workbook with 10 sheets with columns of text and a summary sheet. I
want to count how many times A, B, C, D appear on each of the sheets for each
number.
I've tried
=SUMPRODUCT(COUNTIF(INDIRECT("''Armitage:Viayra&'! B6"),A))
=SUMPRODUCT(COUNT(IF(Armitage:Viayra!$B$6,"D"),"A" ))
The first returns a #REF error and the second returns 0

  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default Counting text across multiple sheets with a specific criterion

Maybe you can be more informative, If you would have only one sheet what
would you do?
Do you only want to count in cell B6 in all sheets how many time A exists?
If so create a list of all 10 sheets (you cannot use first:last sheet), call
the list (insertnamedefine) something, let's say MySheets then use

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B6"), "A"))

will count A in B6

If you want to count how many times A, B C and D occurs


=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B6"), {"A","B","C","D"}))



--
Regards,

Peo Sjoblom

(No private emails please)


"Gitel" wrote in message
...
I have a workbook with 10 sheets with columns of text and a summary sheet.
I
want to count how many times A, B, C, D appear on each of the sheets for
each
number.
I've tried
=SUMPRODUCT(COUNTIF(INDIRECT("''Armitage:Viayra&'! B6"),A))
=SUMPRODUCT(COUNT(IF(Armitage:Viayra!$B$6,"D"),"A" ))
The first returns a #REF error and the second returns 0


  #3   Report Post  
Gitel
 
Posts: n/a
Default Counting text across multiple sheets with a specific criterion

Peo,
The first scenario is the one I want. I actually have separate columns
for the "A", "B", "C", & "D", so once I get the formula correct I can just
copy it and change the criteria. There are 250 times I need to count the
instances. It's responses to questions. So I need to know for each question
how many times total the anwere was A, B, etc.
I tried your suggestion. Actually, I had tried it before I submitted my
question. The problem is, I get an error when I try to create the list. The
error says, A"formula in this worksheet contains one or more invalid
references." So it won't let me create the list.

"Peo Sjoblom" wrote:

Maybe you can be more informative, If you would have only one sheet what
would you do?
Do you only want to count in cell B6 in all sheets how many time A exists?
If so create a list of all 10 sheets (you cannot use first:last sheet), call
the list (insertnamedefine) something, let's say MySheets then use

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B6"), "A"))

will count A in B6

If you want to count how many times A, B C and D occurs


=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B6"), {"A","B","C","D"}))



--
Regards,

Peo Sjoblom

(No private emails please)


"Gitel" wrote in message
...
I have a workbook with 10 sheets with columns of text and a summary sheet.
I
want to count how many times A, B, C, D appear on each of the sheets for
each
number.
I've tried
=SUMPRODUCT(COUNTIF(INDIRECT("''Armitage:Viayra&'! B6"),A))
=SUMPRODUCT(COUNT(IF(Armitage:Viayra!$B$6,"D"),"A" ))
The first returns a #REF error and the second returns 0



  #4   Report Post  
Peo Sjoblom
 
Posts: n/a
Default Counting text across multiple sheets with a specific criterion

How do you create the list? One way, put ALL sheet names in question (if you
have 50 sheets you have to put all 50 sheet names in a range) preferably in
the summary sheet, assume you put them in H1:H50, select H1:H50 and type a
name in the name box (above column A header) and press enter, use my first
formula and replace MySheets with the name you gave the list, now if you
want to copy the formula across to check A in B6, D6 etc you can use

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!"&CEL L("address",B6)),"A"))

if you want to count A in all sheets in the range B6 : IV6 you can use

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B6:IV 6"),"A"))




--
Regards,

Peo Sjoblom

(No private emails please)


"Gitel" wrote in message
...
Peo,
The first scenario is the one I want. I actually have separate columns
for the "A", "B", "C", & "D", so once I get the formula correct I can just
copy it and change the criteria. There are 250 times I need to count the
instances. It's responses to questions. So I need to know for each
question
how many times total the anwere was A, B, etc.
I tried your suggestion. Actually, I had tried it before I submitted my
question. The problem is, I get an error when I try to create the list.
The
error says, A"formula in this worksheet contains one or more invalid
references." So it won't let me create the list.

"Peo Sjoblom" wrote:

Maybe you can be more informative, If you would have only one sheet what
would you do?
Do you only want to count in cell B6 in all sheets how many time A
exists?
If so create a list of all 10 sheets (you cannot use first:last sheet),
call
the list (insertnamedefine) something, let's say MySheets then use

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B6"), "A"))

will count A in B6

If you want to count how many times A, B C and D occurs


=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B6"), {"A","B","C","D"}))



--
Regards,

Peo Sjoblom

(No private emails please)


"Gitel" wrote in message
...
I have a workbook with 10 sheets with columns of text and a summary
sheet.
I
want to count how many times A, B, C, D appear on each of the sheets
for
each
number.
I've tried
=SUMPRODUCT(COUNTIF(INDIRECT("''Armitage:Viayra&'! B6"),A))
=SUMPRODUCT(COUNT(IF(Armitage:Viayra!$B$6,"D"),"A" ))
The first returns a #REF error and the second returns 0




  #5   Report Post  
Gitel
 
Posts: n/a
Default Counting text across multiple sheets with a specific criterion

Thanks. That worked.


"Peo Sjoblom" wrote:

How do you create the list? One way, put ALL sheet names in question (if you
have 50 sheets you have to put all 50 sheet names in a range) preferably in
the summary sheet, assume you put them in H1:H50, select H1:H50 and type a
name in the name box (above column A header) and press enter, use my first
formula and replace MySheets with the name you gave the list, now if you
want to copy the formula across to check A in B6, D6 etc you can use

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!"&CEL L("address",B6)),"A"))

if you want to count A in all sheets in the range B6 : IV6 you can use

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B6:IV 6"),"A"))




--
Regards,

Peo Sjoblom

(No private emails please)


"Gitel" wrote in message
...
Peo,
The first scenario is the one I want. I actually have separate columns
for the "A", "B", "C", & "D", so once I get the formula correct I can just
copy it and change the criteria. There are 250 times I need to count the
instances. It's responses to questions. So I need to know for each
question
how many times total the anwere was A, B, etc.
I tried your suggestion. Actually, I had tried it before I submitted my
question. The problem is, I get an error when I try to create the list.
The
error says, A"formula in this worksheet contains one or more invalid
references." So it won't let me create the list.

"Peo Sjoblom" wrote:

Maybe you can be more informative, If you would have only one sheet what
would you do?
Do you only want to count in cell B6 in all sheets how many time A
exists?
If so create a list of all 10 sheets (you cannot use first:last sheet),
call
the list (insertnamedefine) something, let's say MySheets then use

=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B6"), "A"))

will count A in B6

If you want to count how many times A, B C and D occurs


=SUMPRODUCT(COUNTIF(INDIRECT("'"&MySheets&"'!B6"), {"A","B","C","D"}))



--
Regards,

Peo Sjoblom

(No private emails please)


"Gitel" wrote in message
...
I have a workbook with 10 sheets with columns of text and a summary
sheet.
I
want to count how many times A, B, C, D appear on each of the sheets
for
each
number.
I've tried
=SUMPRODUCT(COUNTIF(INDIRECT("''Armitage:Viayra&'! B6"),A))
=SUMPRODUCT(COUNT(IF(Armitage:Viayra!$B$6,"D"),"A" ))
The first returns a #REF error and the second returns 0





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
Formulas dealing with text data Bagia Excel Worksheet Functions 6 June 20th 05 10:29 PM
how do I highlite text within a cell (specific characters) tim Excel Discussion (Misc queries) 1 May 20th 05 05:23 AM
Finding Specific Text in a Text String Peter Gundrum Excel Worksheet Functions 9 April 10th 05 07:21 PM
linking multiple sheets to a summary sheet greg g Excel Discussion (Misc queries) 1 December 16th 04 07:43 AM
Counting rows based on criteria in multiple cells Margaret Excel Discussion (Misc queries) 11 December 2nd 04 11:04 PM


All times are GMT +1. The time now is 11:32 PM.

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"