Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.misc
|
|||
|
|||
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
Posted to microsoft.public.excel.misc
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Using a variable spreadsheet reference in a formula | Excel Discussion (Misc queries) | |||
what formula do I use to add sums from other worksheets to a sum s | New Users to Excel | |||
reference other worksheets via variable names | Excel Worksheet Functions | |||
Variable column reference in formula | Excel Discussion (Misc queries) | |||
Transpose Arrays with variable row counts | Excel Worksheet Functions |