E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa

When creating charts in Excel, the source data for it is not always on the same sheet. Fortunately, Microsoft Excel provides a way to plot data from two or more different worksheets in the same chart. See below for detailed instructions.

How to create a chart from data in multiple sheets in Excel

Let’s assume that there are several sheets with income data for different years in one spreadsheet file. Using this data, you need to build a chart to visualize the big picture.

1. We build a chart based on the data of the first sheet

Select the data on the first sheet that you want to display in the chart. Further open the masonry faaofi. I se vaega Ata Select the desired chart type. In our example, we use Volumetric Stacked Histogram.

It is the stacked bar chart that is the most popular type of charts used.

2. We enter data from the second sheet

Highlight the created diagram to activate the mini panel on the left Chart tools. Le isi, filifili Fausia ma kiliki i luga o le icon Filifili fa'amaumauga. 

You can also click the button Filifiliga Siata E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa. On the right, at the very bottom of the list that appears, click Filifili fa'amaumauga. 

I le faamalama e aliali mai Filifiliga filifilia data follow the link Faʻaopoopo.

E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa
Adding a new source

We add data from the second sheet. This is an important point, so be careful. 

When you press a button Faʻaopopo, a dialog box pops up Row change. Near the field tāua you need to select the range icon.  

E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa
It is very important to choose the correct range for the chart to be correct.

faʻamalama Suiga laina curl up. But when switching to other sheets, it will remain on the screen, but will not be active. You need to select the second sheet from which you want to add data. 

On the second sheet, it is necessary to highlight the data entered into the chart. To window Row changes activated, you just need to click on it once. 

E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa
This is how the selection of the necessary data for entering into the chart looks like

In order for a cell with text that will be the name of the new row, you need to select the data range next to the icon Row name. Minimize the range window to continue working in the tab Row changes. 

Make sure the links in the lines igoa laina и O tulaga faatauaina indicated correctly. Click OK.

E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa
Checking links to the data that will be indicated in the chart

As you can see from the image attached above, the row name is associated with the cell V1where it is written. Instead, the title can be entered as text. For example, the second row of data. 

The series titles will appear in the chart legend. Therefore, it is better to give them meaningful names. 

At this stage of creating a diagram, the working window should look like this:

E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa
If something is wrong with you, as in the image above, then you made a mistake somewhere, and you need to start over

3. Add more layers if necessary

If you still need to insert data into the chart from other sheets Excel, then repeat all the steps from the second paragraph for all tabs. Then we press OK i le faamalama e aliali mai Filifilia o se punavai o faamatalaga.

In the example there are 3 rows of data. After all the steps, the histogram looks like this:

E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa
Ready-made histogram in several layers

4. Adjust and improve the histogram (optional)

When working in Excel 2013 and 2016 versions, a title and a legend are automatically added when a bar chart is created. In our example, they were not added, so we will do it ourselves. 

Select a chart. In the menu that appears Elemene siata press the green cross and select all the elements that need to be added to the histogram:

E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa
You can leave everything as it is and do not add additional parameters

Other settings, such as the display of data labels and the format of the axes, are described in a separate publication.

We make charts from the total data in the table

The charting method shown above only works if the data on all document tabs is in the same row or column. Otherwise, the diagram will be illegible. 

In our example, all data is located in the same tables on all 3 sheets. If you are not sure that the structure is the same in them, it would be better to first compile the final table, based on the available ones. This can be done using the function VLOOKUP or Merge Table Wizards.

If in our example all tables were different, then the formula would be:

=VLOOKUP (A3, ‘2014’!$A$2:$B$5, 2, FALSE)

This would result in:

E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa
It is easier to work with the final table

After that, just select the resulting table. In the tab faaofi maua Ata and choose the type you want.

Editing a chart created from data on multiple sheets

It also happens that after plotting a graph, data changes are required. In this case, it is easier to edit an existing one than to create a new diagram. This is done through the menu. Galue ma siata, which is no different for graphs built from the data of one table. Setting the main elements of the graph is shown in a separate publication.

There are several ways to change the data displayed on the chart itself:

  • e ala i le lisi Filifilia o se punavai o faamatalaga;
  • e ala i faamama
  • I mediate Data series formulas.

Editing through the menu Selecting a data source

To open the menu Filifilia o se punavai o faamatalaga, required in the tab Fausia press submenu Filifili fa'amaumauga.

To edit a row:

  • select a row;
  • click on tab liuga;
  • liuga tāua or igoa muamua, as we did before;

To change the order of rows of values, you need to select the row and move it using the special up or down arrows.

E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa
Histogram Data Editing Window

To delete a row, you just need to select it and click on the button Aveese. To hide a row, you also need to select it and uncheck the box in the menu legend elements, which is on the left side of the window. 

Modifying Series Through the Chart Filter

All settings can be opened by clicking on the filter button E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa. It appears as soon as you click on the chart. 

To hide data, just click on faʻamamā and uncheck lines that should not be in the chart. 

Hover the pointer over the row and a button appears Suia le laina, click on it. A window pops up Filifilia o se punavai o faamatalaga. We make the necessary settings in it. 

Note! When you hover the mouse over a row, it is highlighted for better understanding.

E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa
Menu for changing data – just uncheck the boxes and change the periods

Editing a series using a formula

All series in a graph are defined by a formula. For example, if we select a series in our chart, it will look like this:

=SERIES(‘2013′!$B$1,’2013′!$A$2:$A$5,’2013’!$B$2:$B$5,1)

E faʻafefea ona fai siata i Excel mai faʻamatalaga i luga ole lua pe sili atu laupepa
Any data in Excel takes the form of a formula

Any formula has 4 main components:

=SERIES([Series name], [x-values], [y-values], row number)

Our formula in the example has the following explanation:

  • Su'e igoa ('2013'!$B$1) mai sela B1 i luga o le laupepa 2013.
  • Rows value (‘2013’!$A$2:$A$5) taken from cells A2:A5 i luga o le laupepa 2013.
  • Columns value (‘2013’!$B$2:$B$5) taken from cells B2: B5: i luga o le laupepa 2013.
  • The number (1) means that the selected row has the first place in the chart.

To change a specific data series, select it in the chart, go to the formula bar and make the necessary changes. Of course, you must be very careful when editing a series formula, because this can lead to errors, especially if the original data is on a different sheet and you cannot see it when editing the formula. Still, if you’re an advanced Excel user, you might like this method, which allows you to quickly make small changes to your charts.

Tuua se tali