Skip to main content

Sorting Data in an Excel Chart


 - In this section you'll learn how to create a chart from data in a spreadsheet. You'll also learn how to sort data. Sorting data and charts are not part of the same subject: you can sort data without having a chart, and have a chart without sorting data. But sorting data sometimes comes in useful, so we'll tackle it now, and used our sorted data to create our chart.
Before we start this section, though, you need to create the spreadsheet below. Type in the data exactly as it is in this one:
The data for your Excel Chart
The spreadsheet above shows the viewing figures for BBC 1 and ITV. The soap operas Eastenders and Coronation Street are not included. The ITV programmes have already been sorted, but the BBC programmes have not. We'll sort the BBC programmes now.

Sorting the Data

After we sort the BBC1 programmes, the highest viewing figures will be at the top and the lowest at the bottom. This is a Descending sort. If we were sorting the other way around, with the lowest first and the highest last then it would be a Ascending sort.
Before you can sort data, you need to "tell" Excel what you want to sort. You "tell" Excel by highlighting the data. So highlight the BBC 1 programmes and the figures. Your highlighting should look like the one in the image below.
Highlighting the Data
To sort the BBC 1 figures, do the following:
  • From Excel's menu bar, click Data
  • From the drop down menu, click Sort
  • A dialogue box appears
The Sort dialogue box
In the Sort By box it says "Column A". To the right of this there a Ascending radio button and a Descending radio button. The Sort By box is actually a drop down list.
  • Click the word Descending to select this option
  • Click the black down-pointing arrow on the Sort By box
  • From the drop down list, click on Millions
You could click the OK button right now and the data would be sorted. But what about those "Then By" boxes? What do they do? Well, suppose two of the programmes had exactly the same viewing figures. We have chosen to Sort By the Millions column, the numbers. If two programmes had the same numbers we could specify what to sort on next. If you click the black down-pointing arrow of the first "Then By" box you'll see a drop down list. It's the same list as the Sort By box. Select "Column A" and Descending. If two programmes had the same viewing figures, Excel will then look at Column A. It will see text in this column. It will then sort the two programmes that have "drawn" into alphabetical order.
So the "Then By" boxes are for what happens in the event of a draw. You choose which column to sort on next. But click the OK button when your dialogue box looks like the one below:
Sort By
Your BBC 1 Viewing figures should now look like this:
The sorted data


And that's all you need to do for the sort. We can move on to creating a Chart from our data.

Comments

Popular posts from this blog

Beginners PHP  -This is a complete and free PHP programming course for beginners. It's assumed that you already have some HTML skills. But you don't need to be a guru, by any means. If you need a refresher on HTML, then click the link for the Web Design course on the left of this page. Everything you need to get started with this PHP course is set out in section one below. Good luck! Home Page > PHP Section One - An Introduction to PHP 1. What is PHP and Why do I need it? 2. What you need to get started 3. Installing and testing Wampserver 4. Troubleshooting > PHP Two - Getting Started With Variables 1. What is a Variable? 2. Putting text into variables 3. Variables - some practice 4. More variable practice 5. Joining direct text and variable data 6. Adding up in PHP 7. Subtraction 8. Multiplication 9. Division 10. Floating point numbers > PHP Three - Conditional Logic 1. If Statements 2. Using If Statements 3....
Javascript Tutorials for the Beginner - Welcome to the Home and Learn course for Javascript. Although it is aimed at complete beginners to the subject we do assume that you have some knowledge of HTML and a little CSS. You don't have to be an expert, though. Just the basics will do. (If you're not sure about the HTML then see our Web Design course.) You don't need to buy any software for this Javascript course - you probably already have everything you need to get started.   > Section One: Getting Started 1. Software needed 2. Our Javascript Templates 3. A little word about debugging Home Page > Section Two: The Browser 1. A First Script 2. Javascript Tag Placement 3. The Browser Object Model 4. Browser Window Methods 5. The Document Object Model > Section Three: Javascript Programming Basics 1. Javascript Variables 2. Math Operators 3. Operator Precedence 4. IF Statements 5. IF ... Else 6. Comparison Operators 7...

PRATYUSHA HOME

Hi interesting readers, Prathysha NGO, Chennai. Bala gurukul orphange, chennai. Pratyusha support, Hyderbad. Krr oldage home, Vizag. Disa foundation.......................................................... so on..................... Join hands with us for a good cause. Thank you all. Contact  us on our  whatsapp no:  8939374254    for the more details. You can pay through Paytm scanner. for each donor we will give an online PDF book as a gift. Thank you Pratyusha Home