Quantcast
Channel: Active questions tagged worksheet-function - Super User
Viewing all articles
Browse latest Browse all 1000

Excel: How to select a chart's data range using a corresponding value in another cell?

$
0
0

Let's say a DataSheet has the following data that is subject to change, including date headers. The number of columns is always the same. (Top left cell is A1.)

NameDec 1Dec 2Dec 3Dec 4Dec 5...Dec 23
Dallas34323...2
Kane65544...7
Ripley58797...6

In SummarySheet there is a single column of the same names, and they are separated by multiple rows to allow space for charts for each individual name.

Each chart's data range contains the headers and a specific row. Here is the range for Ripley:
=DataSheet!$A$1:$X$1,DataSheet!$B$4:$X$4

Is there a formula that can use the names in the SummarySheet!A:A column to obtain the corresponding data from DataSheet? Perhaps a lookup, filter, or offset? I have not been able to get anything to work yet.

(I expect the charts to have formulas that differ only in their references to SummarySheet!A cells. Then I would not need to touch the charts ever again.)

(The names and data will be renewed every time I remake (copy and repopulate) the workbook. I would rather not have to manually change the charts' data ranges for hundreds of names multiple times per year.)


Viewing all articles
Browse latest Browse all 1000

Trending Articles