circlesecretary
New Member
- Joined
- Jul 7, 2011
- Messages
- 17
I have a workbook with multiple sheets (2003) and on my last sheet I need to have the total amount of times each code (R1-R24, A1-A22, etc.) was used within the range of N4:U6 of each sheet.
I thought I found the perfect formula for this here --> http://www.mrexcel.com/forum/showthread.php?t=503785&highlight=count+key+words+multiple+sheets
I assigned a named range for my "Sheets" and came up with this-
=SUMPRODUCT(COUNTIF(INDIRECT("""&Sheets&""!N4:U6"),"R1"))
I got back#REF!. That's when I decided that R1 wouldn't work because it's the name of a cell! So I changed it to "Peer1" and changed "R1" to "Peer1" within range.... but it still says #REF!.
=SUMPRODUCT(COUNTIF(INDIRECT("""&Sheets&""!N4:U6"),"Peer1"))
Any suggestions?
I thought I found the perfect formula for this here --> http://www.mrexcel.com/forum/showthread.php?t=503785&highlight=count+key+words+multiple+sheets
I assigned a named range for my "Sheets" and came up with this-
=SUMPRODUCT(COUNTIF(INDIRECT("""&Sheets&""!N4:U6"),"R1"))
I got back#REF!. That's when I decided that R1 wouldn't work because it's the name of a cell! So I changed it to "Peer1" and changed "R1" to "Peer1" within range.... but it still says #REF!.
=SUMPRODUCT(COUNTIF(INDIRECT("""&Sheets&""!N4:U6"),"Peer1"))
Any suggestions?