ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Counting instances of data across worksheets (https://www.excelbanter.com/excel-discussion-misc-queries/117966-counting-instances-data-across-worksheets.html)

Carolyn

Counting instances of data across worksheets
 
I am trying to count the number of times specific data occurs across multiple
worksheets in the same workbook. I thought COUNTIF would work, but I don't
seem to be able to set the range properly. basically, I want to always look
in the same cell on each worksheet and count the contents in a summary
worksheet. Any ideas??
--
carolyn

Bob Phillips

Counting instances of data across worksheets
 
=SUMPRODUCT(COUNTIF(INDIRECT("Sheet"&ROW(INDIRECT( "1:3"))&"!A1"),"x"))

sums Sheet1,2 and 3 where the vaklue is "x"

--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"carolyn" wrote in message
...
I am trying to count the number of times specific data occurs across

multiple
worksheets in the same workbook. I thought COUNTIF would work, but I don't
seem to be able to set the range properly. basically, I want to always

look
in the same cell on each worksheet and count the contents in a summary
worksheet. Any ideas??
--
carolyn





All times are GMT +1. The time now is 07:34 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com