Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
SamGB
 
Posts: n/a
Default Copying/Pasting Formulas


Here is the formula i have:

SUMPRODUCT(--('Sheet 1!C1:C10=A7),--('Sheet 1!D1:D10=B7))

I need to paste this formula into 20+ Decending cells...When i copy the
formula down the Cell reference changes i.e A7 goes to A8 etc. which is
my desired result. However the range also increase C1:C10 goes to
C2:C11 which i dont want as it gives false results.

How can you stop the range changing??
Many Thanks


--
SamGB
------------------------------------------------------------------------
SamGB's Profile: http://www.excelforum.com/member.php...o&userid=31263
View this thread: http://www.excelforum.com/showthread...hreadid=516398

  #2   Report Post  
Posted to microsoft.public.excel.misc
Ken Johnson
 
Posts: n/a
Default Copying/Pasting Formulas

Hi Sam,
type $ before the row numbers in a formula when you want them to be
constant as you fill down. A keyboard shorcut is two presses of the F4
key when you are first entering the formula. F4 once gives $C$1:$C$10,
twice gives C$1:C$10, thrice gives $C1:$C10.
Ken Johnson

  #3   Report Post  
Posted to microsoft.public.excel.misc
dominicb
 
Posts: n/a
Default Copying/Pasting Formulas


Good evening Sam

Change the C1:C10 to $C$1:$C$10. The "dollar" mark will lock either
the rows, or columns, or both depending on which one it appears before.
You don't need to type them in either, just arrow somewhere into the C1
and press F4 - this will cycle through all the options before returning
it to normal.

HTH

DominicB


--
dominicb
------------------------------------------------------------------------
dominicb's Profile: http://www.excelforum.com/member.php...o&userid=18932
View this thread: http://www.excelforum.com/showthread...hreadid=516398

  #4   Report Post  
Posted to microsoft.public.excel.misc
Elkar
 
Posts: n/a
Default Copying/Pasting Formulas

You need to use Absolute Referencing.

C1 is a Relative Reference which will increment when copied.

$C$1 is an Absolute Reference which will remain constant no matter where it
is copied to.

You can also mix the two. $C1 will increment the row but not the column.
C$1 will increment the column, but not the row.

HTH,
Elkar


"SamGB" wrote:


Here is the formula i have:

SUMPRODUCT(--('Sheet 1!C1:C10=A7),--('Sheet 1!D1:D10=B7))

I need to paste this formula into 20+ Decending cells...When i copy the
formula down the Cell reference changes i.e A7 goes to A8 etc. which is
my desired result. However the range also increase C1:C10 goes to
C2:C11 which i dont want as it gives false results.

How can you stop the range changing??
Many Thanks


--
SamGB
------------------------------------------------------------------------
SamGB's Profile: http://www.excelforum.com/member.php...o&userid=31263
View this thread: http://www.excelforum.com/showthread...hreadid=516398


  #5   Report Post  
Posted to microsoft.public.excel.misc
Rob
 
Posts: n/a
Default Copying/Pasting Formulas

Hi Sam,

When you put a $ in front of the reference you don't want to change then
that will solve it for you.
In this case, do...
SUMPRODUCT(--('Sheet 1!$C$1:$C$10=A7),--('Sheet 1!$D$1:$D$10=B7))

Typing Reference in Excel Help says:
Relative vs. absolute references Depending on the task you want to perform
in Excel, you can use either relative cell references, which are references
to cells relative to the position of the formula, or absolute references,
which are cell references that always refer to cells in a specific location.
If a dollar sign precedes the letter and/or number, such as $A$1, the column
and/or row reference is absolute. Relative references automatically adjust
when you copy them, and absolute references don't.

Rob

"SamGB" wrote in
message ...

Here is the formula i have:

SUMPRODUCT(--('Sheet 1!C1:C10=A7),--('Sheet 1!D1:D10=B7))

I need to paste this formula into 20+ Decending cells...When i copy the
formula down the Cell reference changes i.e A7 goes to A8 etc. which is
my desired result. However the range also increase C1:C10 goes to
C2:C11 which i dont want as it gives false results.

How can you stop the range changing??
Many Thanks


--
SamGB
------------------------------------------------------------------------
SamGB's Profile:
http://www.excelforum.com/member.php...o&userid=31263
View this thread: http://www.excelforum.com/showthread...hreadid=516398





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
Formulas not recognizing new data malakingaso Excel Discussion (Misc queries) 1 February 8th 06 07:27 PM
Countif formulas change after doing a sort Bob Smith Excel Worksheet Functions 3 January 3rd 06 11:17 PM
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 04:07 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 05:22 PM


All times are GMT +1. The time now is 07:18 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"