Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Value in the last cell of a moving column

I am tracking certain items, a column for each, and the data is entered in
the current last data cell in that column. Each time I enter data I insert a
row (there are statistics being run on the data below the last data entry).
I would like to calculate the difference from the currently entered data from
the first entry for that column. I would like to reference the newly entered
data without having to enter the data twice.

Example:
A1 Day 1 Day 2
A2 100 100
A3 200 200
A4 500 500
A5 300
A6 Average 267
A7 Delta 400 Average 275
A8 Delta 200

On day 1 I want the difference between cell A2 and A4 and the average
formula is =average(a2:a5). On day 2 I have inserted a row to move the
statistics down and I now want the difference between cells A2 and A5 and the
average formula is =average(a2:a6). Is there a way to make that reference?
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Value in the last cell of a moving column

Doesn't

=average(A$2:A5)

do it?

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"rtbrd" wrote in message
...
I am tracking certain items, a column for each, and the data is entered in
the current last data cell in that column. Each time I enter data I
insert a
row (there are statistics being run on the data below the last data
entry).
I would like to calculate the difference from the currently entered data
from
the first entry for that column. I would like to reference the newly
entered
data without having to enter the data twice.

Example:
A1 Day 1 Day 2
A2 100 100
A3 200 200
A4 500 500
A5 300
A6 Average 267
A7 Delta 400 Average 275
A8 Delta 200

On day 1 I want the difference between cell A2 and A4 and the average
formula is =average(a2:a5). On day 2 I have inserted a row to move the
statistics down and I now want the difference between cells A2 and A5 and
the
average formula is =average(a2:a6). Is there a way to make that
reference?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Value in the last cell of a moving column

Yes, for the average but I want to update the difference formula
automatically on a daily basis without making manual changes.

Delta Day 1 = a4 - a2 and day 2 sould be = a5 - a2 but when I insert a row
the delta calculation remains at the previous cell, for day 2 after insertion
the formula remains = a4 - a2. I want a4 to change to a5 when I insert a row.

"Bob Phillips" wrote:

Doesn't

=average(A$2:A5)

do it?

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"rtbrd" wrote in message
...
I am tracking certain items, a column for each, and the data is entered in
the current last data cell in that column. Each time I enter data I
insert a
row (there are statistics being run on the data below the last data
entry).
I would like to calculate the difference from the currently entered data
from
the first entry for that column. I would like to reference the newly
entered
data without having to enter the data twice.

Example:
A1 Day 1 Day 2
A2 100 100
A3 200 200
A4 500 500
A5 300
A6 Average 267
A7 Delta 400 Average 275
A8 Delta 200

On day 1 I want the difference between cell A2 and A4 and the average
formula is =average(a2:a5). On day 2 I have inserted a row to move the
statistics down and I now want the difference between cells A2 and A5 and
the
average formula is =average(a2:a6). Is there a way to make that
reference?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,593
Default Value in the last cell of a moving column

How about using

=OFFSET(A5,-1,0)-$A$2

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"rtbrd" wrote in message
...
Yes, for the average but I want to update the difference formula
automatically on a daily basis without making manual changes.

Delta Day 1 = a4 - a2 and day 2 sould be = a5 - a2 but when I insert a row
the delta calculation remains at the previous cell, for day 2 after
insertion
the formula remains = a4 - a2. I want a4 to change to a5 when I insert a
row.

"Bob Phillips" wrote:

Doesn't

=average(A$2:A5)

do it?

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"rtbrd" wrote in message
...
I am tracking certain items, a column for each, and the data is entered
in
the current last data cell in that column. Each time I enter data I
insert a
row (there are statistics being run on the data below the last data
entry).
I would like to calculate the difference from the currently entered
data
from
the first entry for that column. I would like to reference the newly
entered
data without having to enter the data twice.

Example:
A1 Day 1 Day 2
A2 100 100
A3 200 200
A4 500 500
A5 300
A6 Average 267
A7 Delta 400 Average 275
A8 Delta 200

On day 1 I want the difference between cell A2 and A4 and the average
formula is =average(a2:a5). On day 2 I have inserted a row to move the
statistics down and I now want the difference between cells A2 and A5
and
the
average formula is =average(a2:a6). Is there a way to make that
reference?






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10
Default Value in the last cell of a moving column

Thanks Bob that works.

"Bob Phillips" wrote:

How about using

=OFFSET(A5,-1,0)-$A$2

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"rtbrd" wrote in message
...
Yes, for the average but I want to update the difference formula
automatically on a daily basis without making manual changes.

Delta Day 1 = a4 - a2 and day 2 sould be = a5 - a2 but when I insert a row
the delta calculation remains at the previous cell, for day 2 after
insertion
the formula remains = a4 - a2. I want a4 to change to a5 when I insert a
row.

"Bob Phillips" wrote:

Doesn't

=average(A$2:A5)

do it?

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my
addy)



"rtbrd" wrote in message
...
I am tracking certain items, a column for each, and the data is entered
in
the current last data cell in that column. Each time I enter data I
insert a
row (there are statistics being run on the data below the last data
entry).
I would like to calculate the difference from the currently entered
data
from
the first entry for that column. I would like to reference the newly
entered
data without having to enter the data twice.

Example:
A1 Day 1 Day 2
A2 100 100
A3 200 200
A4 500 500
A5 300
A6 Average 267
A7 Delta 400 Average 275
A8 Delta 200

On day 1 I want the difference between cell A2 and A4 and the average
formula is =average(a2:a5). On day 2 I have inserted a row to move the
statistics down and I now want the difference between cells A2 and A5
and
the
average formula is =average(a2:a6). Is there a way to make that
reference?






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
Moving scattered cell data to new column? LarryW Excel Worksheet Functions 4 November 11th 07 11:26 AM
How do i keep a column from moving chelsf Excel Discussion (Misc queries) 2 March 6th 07 01:37 AM
moving column/cell data to rows/cells fails Richard RE Excel Worksheet Functions 0 June 20th 06 06:05 AM
Why is my tab key moving my cursor from column A to column k? eterp05 Excel Discussion (Misc queries) 2 October 14th 05 07:17 PM
moving every other row up 1 row to the next column Rose Davis New Users to Excel 7 August 25th 05 05:43 PM


All times are GMT +1. The time now is 09:05 AM.

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"