Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
tc tc is offline
external usenet poster
 
Posts: 40
Default Pasting Same Formula

when i copy a formula to a range of cells the formula logically
changes according to the other cells. However, i need to maintain the
very same formula throughout the range of cells . i am able to
successfully paste the same formula to a single cell, but not to a
range of cells.

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 22,906
Default Pasting Same Formula

Use absolute cell references in your formulas.

$A1 to lock the column

A$1 to lock the row

$A$1 to lock both column and row.

Note: you can mix them in formulas like a VLOOKUP formula.

=VLOOKUP(A1,$B$1:$E$50,3,FALSE)

When dragged down, the A1 will change but the table array remains the same.


Gord Dibben MS Excel MVP

On 17 May 2007 21:30:48 -0700, tc wrote:

when i copy a formula to a range of cells the formula logically
changes according to the other cells. However, i need to maintain the
very same formula throughout the range of cells . i am able to
successfully paste the same formula to a single cell, but not to a
range of cells.


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4,391
Default Pasting Same Formula

I assume you have some formula like:
=A1
You can make the row and/or column Absolute rather than Relative by using a
"$". e.g.
=$A$1

Check the help for "About cell and range references".

NickHK

"tc" wrote in message
ups.com...
when i copy a formula to a range of cells the formula logically
changes according to the other cells. However, i need to maintain the
very same formula throughout the range of cells . i am able to
successfully paste the same formula to a single cell, but not to a
range of cells.





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
Pasting custom formula RD Wirr Excel Programming 2 February 28th 07 07:02 AM
pasting formula doesn't work Jezz Excel Worksheet Functions 4 February 21st 07 11:57 PM
pasting a formula without so much automation Scott Excel Programming 2 November 18th 05 06:03 PM
Selective formula pasting Dave L[_3_] Excel Programming 5 July 11th 05 08:53 AM
Pasting formula with defined name R. Choate Excel Programming 4 October 1st 04 08:21 PM


All times are GMT +1. The time now is 12:46 PM.

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"