Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 158
Default Formula that sums/counts across worksheets with variable reference

An attempt at this earlier today has gone cold.

I need a formula that can sum or count numerical data across four
worksheets, when the cell reference itself varies. The four worksheets are
Rater1, Rater2, Rater3, and Rater4. The cell I need to reference is in a
particular column, but the row number varies. Here's as close as I've gotten
(but it's not working):

{=COUNT(INDIRECT("Rater" & ROW(1:4) & "!G"&$B$3))}

The INDIRECT function is to piece together the referenced range. The four
worksheets are "Rater" plus the array 1:4. The cell reference is column G
plus whatever number the user enters into cell B3. If not for this last
complication I could just use 'Rater1:Rater4!'G7, but the varying cell
reference makes it way more complicated. On top of everything, I need to be
sure that the formula counts a zero but does not count a blank as zero. The
data in the cells is restricted to: 1, 0, . (period), blank. What I need
this function to do is tell me if the cells contain all the same nuerical
values, either all 1's or all 0's. Any ideas?

TIA
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 265
Default Formula that sums/counts across worksheets with variable reference

The following formula will return TRUE if all four cells contain a
zero...

=SUMPRODUCT(COUNTIF(INDIRECT("'Rater"&{1,2,3,4}&"' !G"&$B$3),0))=4

Hope this helps!

http://www.xl-central.com

In article ,
andy62 wrote:

An attempt at this earlier today has gone cold.

I need a formula that can sum or count numerical data across four
worksheets, when the cell reference itself varies. The four worksheets are
Rater1, Rater2, Rater3, and Rater4. The cell I need to reference is in a
particular column, but the row number varies. Here's as close as I've gotten
(but it's not working):

{=COUNT(INDIRECT("Rater" & ROW(1:4) & "!G"&$B$3))}

The INDIRECT function is to piece together the referenced range. The four
worksheets are "Rater" plus the array 1:4. The cell reference is column G
plus whatever number the user enters into cell B3. If not for this last
complication I could just use 'Rater1:Rater4!'G7, but the varying cell
reference makes it way more complicated. On top of everything, I need to be
sure that the formula counts a zero but does not count a blank as zero. The
data in the cells is restricted to: 1, 0, . (period), blank. What I need
this function to do is tell me if the cells contain all the same nuerical
values, either all 1's or all 0's. Any ideas?

TIA

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
Using a variable spreadsheet reference in a formula 3Nails Excel Discussion (Misc queries) 6 October 26th 08 12:45 AM
what formula do I use to add sums from other worksheets to a sum s Louise New Users to Excel 1 July 4th 08 07:08 PM
reference other worksheets via variable names Huggy Excel Worksheet Functions 4 June 26th 08 05:52 AM
Variable column reference in formula excel help acct[_2_] Excel Discussion (Misc queries) 2 January 16th 08 12:31 AM
Transpose Arrays with variable row counts bmac184 Excel Worksheet Functions 4 June 11th 05 02:35 PM


All times are GMT +1. The time now is 11:36 AM.

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"