Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Consider last 6 cells only

How can a formula consider and act on the last 6 items in a column where a
new item is added to the next blank cell each day. I want to keep all the
old records.

Using Win XP and Excel 2002.

Thanks in advance.

Barney


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 430
Default Consider last 6 cells only

In A1:A12 - Enter 1,2,3,4,5,6,7,8,9,10,11,12
In Cell B6 enter =SUM(OFFSET(A6,-5,0,6,1)) and copy down to B12
Sample using Offset()
HTH

"Barney" wrote in message
...
How can a formula consider and act on the last 6 items in a column where a
new item is added to the next blank cell each day. I want to keep all the
old records.

Using Win XP and Excel 2002.

Thanks in advance.

Barney




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Consider last 6 cells only

Here is a formula that adds the last 6 items in a column A

=SUM(OFFSET(A1,COUNTA(A:A)-6,,6))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Barney" wrote in message
...
How can a formula consider and act on the last 6 items in a column where a
new item is added to the next blank cell each day. I want to keep all the
old records.

Using Win XP and Excel 2002.

Thanks in advance.

Barney




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Consider last 6 cells only

Thanks Jim, that works, but my hope was that the result, 'SUM' in this case,
would always appear in the same cell.

"Jim May" wrote in message
news:YKzyd.9194$jn.8211@lakeread06...
In A1:A12 - Enter 1,2,3,4,5,6,7,8,9,10,11,12
In Cell B6 enter =SUM(OFFSET(A6,-5,0,6,1)) and copy down to B12
Sample using Offset()
HTH

"Barney" wrote in message
...
How can a formula consider and act on the last 6 items in a column where
a
new item is added to the next blank cell each day. I want to keep all
the
old records.

Using Win XP and Excel 2002.

Thanks in advance.

Barney






  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default Consider last 6 cells only

See my post

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Barney" wrote in message
...
Thanks Jim, that works, but my hope was that the result, 'SUM' in this

case,
would always appear in the same cell.

"Jim May" wrote in message
news:YKzyd.9194$jn.8211@lakeread06...
In A1:A12 - Enter 1,2,3,4,5,6,7,8,9,10,11,12
In Cell B6 enter =SUM(OFFSET(A6,-5,0,6,1)) and copy down to B12
Sample using Offset()
HTH

"Barney" wrote in message
...
How can a formula consider and act on the last 6 items in a column

where
a
new item is added to the next blank cell each day. I want to keep all
the
old records.

Using Win XP and Excel 2002.

Thanks in advance.

Barney










  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Consider last 6 cells only

Sorry but this isn't working for me. I always get 'zero'.

I have 1, 2, 3, 4, 5, 6, 7, and 8 in A1 thru A8. A20 should give me the sum
33 for A3:A8. When I add 9 in A9, the sum in A20 should be 39.

Thanks, Barney


"Bob Phillips" wrote in message
...
Here is a formula that adds the last 6 items in a column A

=SUM(OFFSET(A1,COUNTA(A:A)-6,,6))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Barney" wrote in message
...
How can a formula consider and act on the last 6 items in a column where
a
new item is added to the next blank cell each day. I want to keep all
the
old records.

Using Win XP and Excel 2002.

Thanks in advance.

Barney






  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Consider last 6 cells only

=SUM(OFFSET(A1,COUNTA(A1:A19)-6,,6))

worked for me.

--
Regards,
Tom Ogilvy

"Barney" wrote in message
...
Sorry but this isn't working for me. I always get 'zero'.

I have 1, 2, 3, 4, 5, 6, 7, and 8 in A1 thru A8. A20 should give me the

sum
33 for A3:A8. When I add 9 in A9, the sum in A20 should be 39.

Thanks, Barney


"Bob Phillips" wrote in message
...
Here is a formula that adds the last 6 items in a column A

=SUM(OFFSET(A1,COUNTA(A:A)-6,,6))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Barney" wrote in message
...
How can a formula consider and act on the last 6 items in a column

where
a
new item is added to the next blank cell each day. I want to keep all
the
old records.

Using Win XP and Excel 2002.

Thanks in advance.

Barney








  #8   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Consider last 6 cells only

Thanks Tom and Jim. You were both right and very helpful. I figured out
what I was doing wrong.

Barney
"Tom Ogilvy" wrote in message
...
=SUM(OFFSET(A1,COUNTA(A1:A19)-6,,6))

worked for me.

--
Regards,
Tom Ogilvy

"Barney" wrote in message
...
Sorry but this isn't working for me. I always get 'zero'.

I have 1, 2, 3, 4, 5, 6, 7, and 8 in A1 thru A8. A20 should give me the

sum
33 for A3:A8. When I add 9 in A9, the sum in A20 should be 39.

Thanks, Barney


"Bob Phillips" wrote in message
...
Here is a formula that adds the last 6 items in a column A

=SUM(OFFSET(A1,COUNTA(A:A)-6,,6))

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Barney" wrote in message
...
How can a formula consider and act on the last 6 items in a column

where
a
new item is added to the next blank cell each day. I want to keep all
the
old records.

Using Win XP and Excel 2002.

Thanks in advance.

Barney










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
Excel: match two cells in one sheet to two cells in another and return a third cells value Spence Excel Worksheet Functions 3 February 13th 11 05:33 AM
compare 2 column cells and return the adjacent columns cells data of the cell trebor57 Excel Worksheet Functions 1 February 1st 11 02:54 PM
Compare 1 cell to column of cells returning adjacent cells info? Mr. Fine Excel Worksheet Functions 1 April 15th 10 07:36 PM
join data in multiple cells when adjoining cells match criteria ?? angiec50 Excel Worksheet Functions 1 October 6th 09 10:27 AM
Cells won't change font color or show hi-lighted cells in document ROBIN Excel Discussion (Misc queries) 1 March 27th 08 09:39 PM


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