Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 921
Default create a dymamic range for printing

I would like to be able to create a dynamic range to pull the last seven days
of data from spreadsheet and place it in a different tab in the same
spreadsheet.


I am familiar with dynamic ranges,
=OFFSET(Master!$I$1,COUNTA(Master!$I:$I)-7,0,7,1)

I use them in several charts, just not sure how to transfer that same
functionality to a spread sheet.

Thanks

Jeff

--
Jeff
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default create a dymamic range for printing

Insertnamedefinename it as desired or use Print_Rangein the refers to
box type in your formula. If on the sheet desired, Excel will fill in the
sheet name for you. test by using f5 and type in the name to goto it.

Don Guillett
SalesAid Software

"Jeff" wrote in message
...
I would like to be able to create a dynamic range to pull the last seven
days
of data from spreadsheet and place it in a different tab in the same
spreadsheet.


I am familiar with dynamic ranges,
=OFFSET(Master!$I$1,COUNTA(Master!$I:$I)-7,0,7,1)

I use them in several charts, just not sure how to transfer that same
functionality to a spread sheet.

Thanks

Jeff

--
Jeff



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 921
Default create a dymamic range for printing

not sure that would work for what I want,

and I don't think I asked my question well.

I have a dynamic range that expands as I add data to it. I have figured out
how to add the variable range to a chart so only the last 7 days are shown,
I would like to be able to pull out the last seven days and display it in a
table. I could probalby name a range for each day but I am hoping for
something a little elegant.

Thanks
--
Jeff


"Don Guillett" wrote:

Insertnamedefinename it as desired or use Print_Rangein the refers to
box type in your formula. If on the sheet desired, Excel will fill in the
sheet name for you. test by using f5 and type in the name to goto it.

Don Guillett
SalesAid Software

"Jeff" wrote in message
...
I would like to be able to create a dynamic range to pull the last seven
days
of data from spreadsheet and place it in a different tab in the same
spreadsheet.


I am familiar with dynamic ranges,
=OFFSET(Master!$I$1,COUNTA(Master!$I:$I)-7,0,7,1)

I use them in several charts, just not sure how to transfer that same
functionality to a spread sheet.

Thanks

Jeff

--
Jeff




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default create a dymamic range for printing

I just tested this defined name formula and it worked just fine
=OFFSET(Sheet2!$I$1,COUNTA(Sheet2!$I:$I)-7,0,7)

Sub printdefinedname() 'print last seven
Range("lastseven").PrintPreview
End Sub

Sub copydefinedname()'copy last seven to another sheet
Range("lastseven").Copy Sheets("sheet9").Range("i1")
End Sub
--
Don Guillett
SalesAid Software

"Jeff" wrote in message
...
not sure that would work for what I want,

and I don't think I asked my question well.

I have a dynamic range that expands as I add data to it. I have figured
out
how to add the variable range to a chart so only the last 7 days are
shown,
I would like to be able to pull out the last seven days and display it in
a
table. I could probalby name a range for each day but I am hoping for
something a little elegant.

Thanks
--
Jeff


"Don Guillett" wrote:

Insertnamedefinename it as desired or use Print_Rangein the refers to
box type in your formula. If on the sheet desired, Excel will fill in the
sheet name for you. test by using f5 and type in the name to goto it.

Don Guillett
SalesAid Software

"Jeff" wrote in message
...
I would like to be able to create a dynamic range to pull the last seven
days
of data from spreadsheet and place it in a different tab in the same
spreadsheet.


I am familiar with dynamic ranges,
=OFFSET(Master!$I$1,COUNTA(Master!$I:$I)-7,0,7,1)

I use them in several charts, just not sure how to transfer that same
functionality to a spread sheet.

Thanks

Jeff

--
Jeff






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default create a dymamic range for printing

I inserted another tab in the workbook.

Then I selected 7 vertical cells (A1:A7 or J100:J106 or whatever).

Then I pasted that formula into the formula bar.
But instead of using enter, I hit shift-ctrl-enter -- since I wanted an array of
values brought back.



Jeff wrote:

I would like to be able to create a dynamic range to pull the last seven days
of data from spreadsheet and place it in a different tab in the same
spreadsheet.

I am familiar with dynamic ranges,
=OFFSET(Master!$I$1,COUNTA(Master!$I:$I)-7,0,7,1)

I use them in several charts, just not sure how to transfer that same
functionality to a spread sheet.

Thanks

Jeff

--
Jeff


--

Dave Peterson


  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 921
Default create a dymamic range for printing

so as I add data that will automatically add the new data and drop off the
old data?


--
Jeff


"Dave Peterson" wrote:

I inserted another tab in the workbook.

Then I selected 7 vertical cells (A1:A7 or J100:J106 or whatever).

Then I pasted that formula into the formula bar.
But instead of using enter, I hit shift-ctrl-enter -- since I wanted an array of
values brought back.



Jeff wrote:

I would like to be able to create a dynamic range to pull the last seven days
of data from spreadsheet and place it in a different tab in the same
spreadsheet.

I am familiar with dynamic ranges,
=OFFSET(Master!$I$1,COUNTA(Master!$I:$I)-7,0,7,1)

I use them in several charts, just not sure how to transfer that same
functionality to a spread sheet.

Thanks

Jeff

--
Jeff


--

Dave Peterson

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 35,218
Default create a dymamic range for printing

What happened when you tried it?


Jeff wrote:

so as I add data that will automatically add the new data and drop off the
old data?


--
Jeff

"Dave Peterson" wrote:

I inserted another tab in the workbook.

Then I selected 7 vertical cells (A1:A7 or J100:J106 or whatever).

Then I pasted that formula into the formula bar.
But instead of using enter, I hit shift-ctrl-enter -- since I wanted an array of
values brought back.



Jeff wrote:

I would like to be able to create a dynamic range to pull the last seven days
of data from spreadsheet and place it in a different tab in the same
spreadsheet.

I am familiar with dynamic ranges,
=OFFSET(Master!$I$1,COUNTA(Master!$I:$I)-7,0,7,1)

I use them in several charts, just not sure how to transfer that same
functionality to a spread sheet.

Thanks

Jeff

--
Jeff


--

Dave Peterson


--

Dave Peterson
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
How to create pop-up message in Excel before Printing [email protected] Excel Discussion (Misc queries) 4 March 20th 06 11:42 PM
Printing from Excel. First row of range to be repeated Tim Beechey-Newman, UK Excel Discussion (Misc queries) 1 August 15th 05 10:26 AM
printing only active range (changing) oz_saar Excel Discussion (Misc queries) 2 August 2nd 05 08:42 PM
how do I print a range without printing the blank pages? Chris VP Excel Discussion (Misc queries) 2 May 2nd 05 07:08 PM
How do I change or create different watermark optons for printing. Bob Excel Discussion (Misc queries) 1 January 22nd 05 01:14 AM


All times are GMT +1. The time now is 11:23 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"