Solved

Name Manager: How can I get a range of the entire spreadsheet so I can refresh new data?

Posted on 2011-02-18
3
371 Views
Last Modified: 2012-05-11
I created a Name in the Name Manager to cover a large range.

Every week I have to replace the data with fresh data from another source.

When I go to my pivot to refresh, I have to tell the Name to get the range again.

How can I get a range of the entire spreadsheet so I can refresh new data?
0
Comment
Question by:glabossi
3 Comments
 
LVL 4

Expert Comment

by:SmittyPro
ID: 34929741
How are you pulling in the data from the other source?

Once it's in you can dynamically redefine the range.  Recording a macro defining the range will give you the guts of it.  If you post back what you get, then someone can set it up to make the range dynamic.
0
 
LVL 50

Accepted Solution

by:
Ingeborg Hawighorst earned 500 total points
ID: 34930572
Hello,

you could use this formula in Excel 2007 or later to define the range

=Sheet1!$A$1:INDEX(Sheet1!$1:$1048576,COUNTA(Sheet1!$A:$A),COUNTA(Sheet1!$1:$1))

This assumes your data (labels) start in cell A1 and that you have a contiguous table with no blank rows or columns (as also required by a pivot table).

If you have Excel 2003 or earlier, use

=Sheet1!$A$1:INDEX(Sheet1!$1:$65536,COUNTA(Sheet1!$A:$A),COUNTA(Sheet1!$1:$1))

The formula will encompass all columns that have data labels in row 1 and all rows that have data in column A. When you paste new data into the sheet, the range name will adjust automatically and you can refresh the pivot table without re-defining the range name.

cheers, teylyn
0
 

Author Closing Comment

by:glabossi
ID: 34983137
THANKS!!!!!
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

914 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now