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
372 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

Enterprise Mobility and BYOD For Dummies

Like “For Dummies” books, you can read this in whatever order you choose and learn about mobility and BYOD; and how to put a competitive mobile infrastructure in place. Developed for SMBs and large enterprises alike, you will find helpful use cases, planning, and implementation.

Question has a verified solution.

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

Lync meeting or Lync conferencing is what many organizations would like to deploy to allow them save money. But companies are now giving up for various reasons, one of which is that they cannot join external meetings (non-federated company meetings)…
User Beware!  This is a rather permanent solution to removing your email from an exchange server.  The only way to truly go back is to have your exchange administrator restore your mailbox from backups.  This is usually the option of last resort.  A…
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.
This Micro Tutorial will demonstrate how to use a scrolling table in Microsoft Excel using the INDEX function.

831 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