Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / June 2007

Tip: Looking for answers? Try searching our database.

Choosing last set of data in column

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Erik - 04 Jun 2007 16:34 GMT
How do I choose the last five sets of data in a column.  I want to make a
chart that continually updates as I add in data but only with the last five
sets of data.  Is this possible with "offset" and how would I do this?

Erik
Max - 04 Jun 2007 16:59 GMT
Assuming source data (ie numbers) are running in A1 down (data is assumed
continuous with no blank cells)

Select a 5 cell column range, say select B1:B5,
then place in the formula bar:
=OFFSET(INDIRECT("A"&COUNT(A:A)+1),,,-5)
Array-enter the formula by pressing CTRL+SHIFT+ENTER
(instead of just pressing ENTER)

B1:B5 will return the last 5 cells in col A.
Plot the graph using B1:B5 as source.
Signature

Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---

> How do I choose the last five sets of data in a column.  I want to make a
> chart that continually updates as I add in data but only with the last five
> sets of data.  Is this possible with "offset" and how would I do this?
>
> Erik
Toppers - 04 Jun 2007 17:03 GMT
Assuming data is columns A & B:

Create named range e.g MyData

Refers to:

=OFFSET(Sheet1!$A$1,COUNTA(Sheet1!$A:$A)-5,0,5,2)

Use Mydata as your source

> Assuming source data (ie numbers) are running in A1 down (data is assumed
> continuous with no blank cells)
[quoted text clipped - 12 lines]
> >
> > Erik
Erik - 04 Jun 2007 20:07 GMT
Ok, that worked for that problem but I have another issue.  I also want to
choose the last five columns to graph.  I have data, 30 cells worth, that I
want to graph in columns but I only want the last five of them also.  For
instance, I have graphed data right now in columns K through O with 30 cells
of data in each column.  If I put data in column 'P' is there a way to drop
off column K and add column 'P' automatically?

> Assuming data is columns A & B:
>
[quoted text clipped - 22 lines]
> > >
> > > Erik
Toppers - 04 Jun 2007 20:33 GMT
Assuming headings/data in row 1 and NO blanks, then use this for named range:

=OFFSET(Sheet1!$A$1,COUNTA(Sheet1!$A:$A)-5,COUNTA(Sheet1!1:1)-5,5,5)

HTH

> Ok, that worked for that problem but I have another issue.  I also want to
> choose the last five columns to graph.  I have data, 30 cells worth, that I
[quoted text clipped - 29 lines]
> > > >
> > > > Erik
Toppers - 04 Jun 2007 20:37 GMT
Just to clarify: I am assuming P1 is blank UNTIL you add your new data. If P1
has a heading BUT no data, change 1:1 to 2:2 BUT again it assumes NO blanks
from A2 to O2.

> Assuming headings/data in row 1 and NO blanks, then use this for named range:
>
[quoted text clipped - 35 lines]
> > > > >
> > > > > Erik
Erik - 04 Jun 2007 20:37 GMT
Some cells have blanks, I can't get this to work for anything.

> Assuming headings/data in row 1 and NO blanks, then use this for named range:
>
[quoted text clipped - 35 lines]
> > > > >
> > > > > Erik
Toppers - 04 Jun 2007 21:01 GMT
It WON'T work if there are blank cells in the row we are counting ..

... so if cannot use the "column count" approach,

.... how can we determine that your last column was (say) column O?

> Some cells have blanks, I can't get this to work for anything.
>
[quoted text clipped - 37 lines]
> > > > > >
> > > > > > Erik
Erik - 04 Jun 2007 21:24 GMT
I can put zeros in these columns if necessary, but it still won't work.  How
can I chart the last five columns in my worksheet?  I have data in colums D
through P but I only want to chart columns L, M, N, O, P.  And then when I
put data into Q, I only want to chart columns M, N, O, P, Q.  Is this
possible.  I can't get your other formaula to work at all.  I define the name
with the Insert, Name, Define function and then try to use this name as the
data source but it won't work.  

> It WON'T work if there are blank cells in the row we are counting ..
>
[quoted text clipped - 43 lines]
> > > > > > >
> > > > > > > Erik
Toppers - 04 Jun 2007 21:45 GMT
With "headings" in A1 to P1 and D1 to P30 this works for me:

=OFFSET(Sheet1!$A$1,COUNTA(Sheet1!$D:$D)-5,COUNTA(Sheet1!1:1)-5,5,5)

If data in row 1 starts in column D, try:

=OFFSET(Sheet1!$A$1,COUNTA(Sheet1!$D:$D)-5,COUNTA(Sheet1!$1:$1)-2,5,5)

> I can put zeros in these columns if necessary, but it still won't work.  How
> can I chart the last five columns in my worksheet?  I have data in colums D
[quoted text clipped - 51 lines]
> > > > > > > >
> > > > > > > > Erik
Teethless mama - 04 Jun 2007 17:16 GMT
Assuming your data start in A1 down

=OFFSET($A$1,COUNT(A:A)+ROWS($1:1)-6,0)

copy down

> How do I choose the last five sets of data in a column.  I want to make a
> chart that continually updates as I add in data but only with the last five
> sets of data.  Is this possible with "offset" and how would I do this?
>
> Erik
Gary''s Student - 04 Jun 2007 17:44 GMT
Consider putting your most recent data at the top of the column (pushing
older data down) instead of the bottom.

That way you will always know where the last five sets are.
Signature

Gary''s Student - gsnu200727

> How do I choose the last five sets of data in a column.  I want to make a
> chart that continually updates as I add in data but only with the last five
> sets of data.  Is this possible with "offset" and how would I do this?
>
> Erik
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.