View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Jacob Skaria Jacob Skaria is offline
external usenet poster
 
Posts: 8,520
Default functions/Formulas

Use the below formula to count the number of cells with the text 'Apple' in
Column A of sheets mentioned in the cells E1:E3. You can change the text
'Apple' to a cell reference

=SUMPRODUCT(COUNTIF(INDIRECT("'"&E1:E3&"'!A:A"),"A pple"))

To test this enter the sheet names in cell range E1:E3. Make sure you dont
have any blank cells in this range E1:E3 and all sheet names are exactly same
as the actual sheet names (even spaces count)


'Now to get the sum of (say Quantity) mentioned in ColB of each sheet you
can use the below formula

=SUMPRODUCT(SUMIF(INDIRECT("'"& E1:E3 &"'!A:A"),"apple",INDIRECT("'"& E1:E3
&"'!B:B")))


If this post helps click Yes
---------------
Jacob Skaria


"RH" wrote:

I have multiple worksheets and I would like to count the number of times
certain words appear in each worksheet and group them by area. I then want
to count how many times a number appears based on those words.

example: Apple, orange, peas, carrots
I want to count Apples and oranges in all worksheets and then count how many
of them are available.