Go Premium for a chance to win a PS4. Enter to Win

x
?
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
Medium Priority
?
382 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 (Microsoft MVP / EE MVE) earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

824 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