Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Excel formula copying

Thread Tools
 
Search this Thread
 
Old 15 October 2003, 11:45 AM
  #1  
Brendan Hughes
Scooby Regular
Thread Starter
 
Brendan Hughes's Avatar
 
Join Date: Oct 2000
Location: same time, different place
Posts: 11,313
Likes: 0
Received 4 Likes on 2 Posts
Question

Anyone help please? I have to copy a formula in which one cell changes and the other stays the same.

So I have an official date (cell A1) by which time countries should have done something - a deadline.

I then have a list of dates by which the different countries actually did it:
Andorra (A2)
Afghanistan (A3)
Austria (A4)
Etc.

Beside each country I would like to calculate the time delay:
So that would be
B2=A2-A1
B3=A3-A1
B4=A4-A1
Etc

If I simply drag the top formula down, it copies the pattern of the formula for BOTH cells, thus:

A2-A1
A3-A2
A4-A3

Can anyone tell me an easy way of how to copy/predict/paste the formula that I want, without manually changing the second cell all the way down the column?

Many thanks

Brendan
Old 15 October 2003, 11:50 AM
  #2  
Barrie
Scooby Regular
 
Barrie's Avatar
 
Join Date: Nov 2002
Posts: 170
Likes: 0
Received 0 Likes on 0 Posts
Post


In the original cell that you copy change the formula to

B2=A2-$A$1

That should keep the original reference

Cheers
Old 15 October 2003, 11:51 AM
  #3  
MartinM
Scooby Regular
 
MartinM's Avatar
 
Join Date: Jun 1999
Posts: 1,496
Likes: 0
Received 0 Likes on 0 Posts
Post

B2=A2-$A$1

..the $ 'anchors' the row or column after it,and makes it a actual rather than relative reference - so it doesn't change when you copy it

Exercise for the student:
- play with B2=A2-A$1 and B2=A2-$A1..thy're not what you want, but you can see the effect

Martin

Edit: Damn - beaten to it

[Edited by MartinM - 10/15/2003 11:52:31 AM]
Old 15 October 2003, 12:07 PM
  #4  
Brendan Hughes
Scooby Regular
Thread Starter
 
Brendan Hughes's Avatar
 
Join Date: Oct 2000
Location: same time, different place
Posts: 11,313
Likes: 0
Received 4 Likes on 2 Posts
Thumbs up

Yay! Thanks both!
Old 15 October 2003, 03:51 PM
  #5  
Buckrogers
Scooby Regular
 
Buckrogers's Avatar
 
Join Date: Aug 2003
Posts: 2,644
Likes: 0
Received 0 Likes on 0 Posts
Post

Press F4 to rotate the $ signs in the formula.
Old 15 October 2003, 09:15 PM
  #6  
MartinM
Scooby Regular
 
MartinM's Avatar
 
Join Date: Jun 1999
Posts: 1,496
Likes: 0
Received 0 Likes on 0 Posts
Post

F4 - well I never knew that
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
Mattybr5@MB Developments
Full Cars Breaking For Spares
28
28 December 2015 11:07 PM
Mattybr5@MB Developments
Full Cars Breaking For Spares
12
18 November 2015 07:03 AM
Ganz1983
Subaru
5
02 October 2015 09:22 AM
IAN WR1
ScoobyNet General
8
28 September 2015 08:14 PM



Quick Reply: Excel formula copying



All times are GMT +1. The time now is 02:08 PM.