ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   Stable formula (https://www.excelbanter.com/new-users-excel/101829-stable-formula.html)

Syahira

Stable formula
 
Let say I have this formula,
=SUMIF('TSJ Student List'!C3:C118,"=4",'TSJ Student List'!A3:A118)

My question is how can I use only rows C3:C118 and A3:A118 and the only
changes is "=4" to 5,6 ....because when I copy or drag it will change to
C4:C119, A4:A119 ..... I try to use $C3:C118$ or $c3$:$c118$ but it does not
work. Please guide me. Thanks.

[email protected]

Stable formula
 
Syahira wrote:
Let say I have this formula,
=SUMIF('TSJ Student List'!C3:C118,"=4",'TSJ Student List'!A3:A118)
My question is how can I use only rows C3:C118 and A3:A118 and the only
changes is "=4" to 5,6 ....because when I copy or drag it will change to
C4:C119, A4:A119 ..... I try to use $C3:C118$ or $c3$:$c118$ but it does not
work.


I think you want $C$3:$C$C118 and $A$3:$A$118.


SteveW

Stable formula
 
You are getting your $'s in the wrong place.

Edit the cell, click on say each range C3:C118, then use F4 to toggle
through the various $ options


Steve

On Fri, 28 Jul 2006 03:48:01 +0100, Syahira
wrote:

Let say I have this formula,
=SUMIF('TSJ Student List'!C3:C118,"=4",'TSJ Student List'!A3:A118)

My question is how can I use only rows C3:C118 and A3:A118 and the only
changes is "=4" to 5,6 ....because when I copy or drag it will change to
C4:C119, A4:A119 ..... I try to use $C3:C118$ or $c3$:$c118$ but it does
not
work. Please guide me. Thanks.


RagDyeR

Stable formula
 
It depends on *how* you want the criteria to change.

This allows you to enter the criteria in a particular cell, so that it can
be changed by manually entering another number in that cell, and you
wouldn't need to revise the formula itself.

Say the criteria cell is A1, then try this:

=SUMIF('TSJ Student List'!C3:C118,A1,'TSJ Student List'!A3:A118)


However, if you're going to copy the formula down a column, and you wish for
the criteria to increment as the formula is copied down, try this, with the
criteria starting at "4", and increasing by "1" as it's copied down:

=SUMIF('TSJ Student List'!C$3:C$118,ROWS($1:4),'TSJ Student List'!A$3:A$118)

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"Syahira" wrote in message
...
Let say I have this formula,
=SUMIF('TSJ Student List'!C3:C118,"=4",'TSJ Student List'!A3:A118)

My question is how can I use only rows C3:C118 and A3:A118 and the only
changes is "=4" to 5,6 ....because when I copy or drag it will change to
C4:C119, A4:A119 ..... I try to use $C3:C118$ or $c3$:$c118$ but it does
not
work. Please guide me. Thanks.




All times are GMT +1. The time now is 11:59 PM.

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