#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5
Default sumif

i am using a sum if in a formula and i want to copy and paste it down my
spread sheet. when i do excell changes all the cell references down 1 number.
the only number in the sum if formula i want to have change is the critria, i
want the range and sum range to be the same for all cells involved. i would
just type it in each cell but i am looking at 300 pluss cells that i would
have to change. is there a way to keep excell from changing all the cell
references in a formulas
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 126
Default sumif

The '$' makes formulas 'absolute.
Example:
=SUMIF($A$1:$A$5,E1,$B$1:$B$5)
only E1 (criteria) will change. The rest are LOCKED.

$A$1
$A means column A will stay Column A no matter what
$1 means row 1 will stay Row 1 no matter what

You can combine these such as...
A$1
A means column A will change as you copy across columns
$1 means row 1 will stay Row 1 no matter what

--
Hope this helps.
If it does, please click the Yes button.
Thanks in advance for your feedback.
Gary Brown



"Seth.Schwarzkopf" wrote:

i am using a sum if in a formula and i want to copy and paste it down my
spread sheet. when i do excell changes all the cell references down 1 number.
the only number in the sum if formula i want to have change is the critria, i
want the range and sum range to be the same for all cells involved. i would
just type it in each cell but i am looking at 300 pluss cells that i would
have to change. is there a way to keep excell from changing all the cell
references in a formulas

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 703
Default sumif

You are obviously using relative references, where you have to use
absolute references.

=A1 is a relative refence
=$A$1 is a absolute reference

Your formula could look like this:

=SUMIF($A$1:$A$500,"=" & A1)

Hopes this helps.
....
Per

On 22 Mar., 21:37, Seth.Schwarzkopf
wrote:
i am using a sum if in a formula and i want to copy and paste it down my
spread sheet. when i do excell changes all the cell references down 1 number.
the only number in the sum if formula i want to have change is the critria, i
want the range and sum range to be the same for all cells involved. i would
just type it in each cell but i am looking at 300 pluss cells that i would
have to change. is there a way to keep excell from changing all the cell
references in a formulas


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
sumif for multi conditions. i.e sumif(A1:A10,"Jon" and B1:B10,"A" Harry Seymour Excel Worksheet Functions 9 June 12th 07 10:47 PM
How can I do SUMIF AND OR Gazzr Excel Worksheet Functions 3 June 30th 06 04:05 PM
Embedding a Sumif in a sumif C.Pflugrath Excel Worksheet Functions 5 August 31st 05 07:31 PM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
SUMIF - Range name to used for the "sum_range" portion of a SUMIF function Oscar Excel Worksheet Functions 2 January 11th 05 11:01 PM


All times are GMT +1. The time now is 02:13 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"