=COUNTIF(Smith!B7:Jones!B7, "x")
I have tried every kind of variation I can think of to make this work. I
have tried SUMIF too. If I change the "x" value in the cell to a number "1"
- it then works with SUM.
Thanks for any insight. I am the IT person helping someone else!
Smith
Jones
etc
Note that you need all sheet names, or else it won't work
then assume you put the sheet names in H1:H7
use
=SUMPRODUCT(COUNTIF(INDIRECT("'"&H1:H7&"'!B7"),"x"))
--
Regards,
Peo Sjoblom
"janee" <ja...@discussions.microsoft.com> wrote in message
news:93B81271-4F3C-42B1...@microsoft.com...
If you "only" have 7 sheets I would opt for the less complicated route of
entering a formula on each sheet in the same cell like this:
=--(B7="x")
Then on your "summary" sheet:
=SUM(Smith:Jones!C7, "x")
--
Biff
Microsoft Excel MVP
"janee" <ja...@discussions.microsoft.com> wrote in message
news:93B81271-4F3C-42B1...@microsoft.com...
>Then on your "summary" sheet:
>=SUM(Smith:Jones!C7, "x")
The formula should be:
=SUM(Smith:Jones!C7)
--
Biff
Microsoft Excel MVP
"T. Valko" <biffi...@comcast.net> wrote in message
news:OGS1IgEG...@TK2MSFTNGP04.phx.gbl...
=SUMPRODUCT(COUNTIF(INDIRECT("'"&$H$1:$H$7&"'!B7"),"x"))
Thanks again
Janee
"Peo Sjoblom" wrote:
You need to create a list with all the sheet names, like:
Smith
Jones
etc
Note that you need all sheet names, or else it won't work
then assume you put the sheet names in H1:H7
use
=SUMPRODUCT(COUNTIF(INDIRECT("'"&H1:H7&"'!B7"),"x"))
Regards,
Peo Sjoblom
=SUMPRODUCT(COUNTIF(INDIRECT("'"&$H$1:$H$7&"'!B"&ROWS(A$1:A7)),"x"))
--
Biff
Microsoft Excel MVP
"janee" <ja...@discussions.microsoft.com> wrote in message
news:03C44734-986F-4533...@microsoft.com...
Again - I really appreciate this.
JaneE
"T. Valko" wrote:
> Try this:
=SUMPRODUCT(COUNTIF(INDIRECT("'"&$H$1:$H$7&"'!B"&ROWS(A$1:A7)),"x"))
Biff
Microsoft Excel MVP
is just there to create number 7, you can use any cell references as long as
it uses the first and 7th row and the first cell uses absolute reference
($B$1:B7) will work as well
so copied down it will return
7
8
9
and so on
and since it is concatenated with the Letter B inside the INDIRECT function
it will de-facto be
B7
B8
B9
and so on
this is another variety that will work the same way but it might be easier
to understand
=SUMPRODUCT(COUNTIF(INDIRECT("'"&$H$1:$H$7&"'!"&CELL("address",B7)),"x"))
--
Regards,
Peo Sjoblom
"janee" <ja...@discussions.microsoft.com> wrote in message
news:DD261CFA-406D-4A1D...@microsoft.com...
--
Biff
Microsoft Excel MVP
"Brigette" <Brig...@discussions.microsoft.com> wrote in message
news:B25A1793-3AF9-4E18...@microsoft.com...