SlideShare a Scribd company logo
Module No. - 8
Sorting the Data List:
Excel provides the facility to sort the Data List on any column of the Data List.
Sorting means rearranging the row in increasing or decreasing column value.
When you sort the rows then rows having the same column-value, appear together.
Table on the next page show a Data List that has been sorted on “Department”
Column.
Sorting order can either be ascending (increasing) or descending (decreasing) Excel
sorting process can be broadly categorized into following categories.
(a)

Simple or Single level sorting

(b)

Complex or Multi level sorting

Simple Sorting:
In simple sorting, list is sorted only on single field/ column. To sort the list on
Department, following steps are observed :
(a)

Select those records of the Data List that have to be sorted. If the complete list
is to be sorted then place the cell pointer anywhere in the list, instead of
selecting the complete list by dragging the mouse.

(b)

Select Data option from the bar menu, it will display a submenu. On choosing
Sort... option from the submenu, Excel will display the following dialog box.

(c)

Clicks on down arrow button of Sort by drop down list box and choose Dept

in the option because you want to sort the list on department. After selecting
the sort field select sorting order, as ascending, by clicking on corresponding
radio button. At last select OK button. Data List will rearrange itself to
acquire following arrangement of records.
A

B

C

D

E

F

G
1
2
3
4
5
6
7
8
9
10
11

Code
E005
E010
E003
E002
E006
E007
E001
E004
E008
E009

Name
Rahul
Anil
Ramesh
Ajit
Babita
Subodh
Anil
Anil
Ajit
Ramesh

Dept.
Hardware
Hardware
Hardware
Software
Software
Software
Software
Support
Support
Support

Designation
Manager
Executive
Executive
Executive
Executive
Manager
Executive
Manager
Executive
Executive

Salary Bonus Total
8000
2000 10000
4000
2000
6000
6000
2000
8000
5500
3000
8500
6000
3000
9000
10000
3000 13000
7000
3000 10000
9000
2500 11500
4500
2500
7000
6000
2500
8500

Since this list is sorted on department, hence all the records having same department
name appear together and the order of sorting is ascending, therefore the order of the
department name has been kept as Hardware, Software and then Support.
Multi Level Sorting:
Sometimes you want the sorting to be more systematic. Once the records have been
sorted on one column, then you would like them to get further sorted on some other column
within the group. For example, we would like to sort the Data List on department but within
the department, we want to sort on the basis of designation in the descending order, so that
within the same group, records having Manager designation appears before the records,
having Executive designation. This type of sorting is called Multi level sorting. To perform
this type of sorting, follow the following steps:
(a)

Select the Data List that is to be sorted.

(b)

Chose Sort option from Data submenu, so as to get Sort dialog box on the
screen.

(c)

Select Dept and order as Ascending in Sort by list box and then select
Designation, and Descending radio button in first Then by list box. Finally,
select OK button.

Following Data List will be provided, which is sorted on Department and within
department, it is sorted on designation (descending order).
A

B

C

D

1 Code

Name

Dept.

Designation

2 E005

Rahul

Hardware

Manager

8000

2000

10000

3 E010

Anil

Hardware

Executive

4000

2000

6000

4 E003

Ramesh

Hardware

Executive

6000

2000

8000

2

E
Salary

F
Bonus

G
Total
5 E007

Subodh

Software

Manager

10000

3000

13000

6 E002

Ajit

Software

Executive

5500

3000

8500

7 E006

Babita

Software

Executive

6000

3000

9000

8 E001

Anil

Software

Executive

7000

3000

10000

9 E004

Anil

Support

Manager

9000

2500

11500

10 E008

Ajit

Support

Executive

4500

2500

7000

11 E009

Ramesh

Support

Executive

6000

2500

8500

We can resorted Data List further. For example, in the above case, sorting is to done
so that for the same designation, higher salary records appear first (descending order).
To introduce this step of sorting, select Salary in second Then by dialog box and
keep the order of sorting as Descending. This selection will result into following Data List.

A

B

C

D

E
Salary

F
Bonus

G

1 Code

Name

Dept.

Designation

Total

2 E005

Rahul

Hardware

Manager

8000

2000

10000

3 E010

Anil

Hardware

Executive

4000

2000

6000

4 E003

Ramesh

Hardware

Executive

6000

2000

8000

5 E007

Subodh

Software

Manager

10000

3000

13000

6 E006

Babita

Software

Executive

6000

3000

9000

7 E002

Ajit

Software

Executive

5500

3000

8500

8 E001

Anil

Software

Executive

7000

3000

10000

9 E004

Anil

Support

Manager

9000

2500

11500

10 E009

Ramesh

Support

Executive

6000

2500

8500

11 E008

Ajit

Support

Executive

4500

2500

7000

When we sort a table on the basis of any column, the records of similar value are
displayed together. These are called as Groups. In the above example, records are grouped
on the basis of department. The place where one group ends and another group starts, a group
break is said to have occurred.

3
Assignment No. – 8

Q.1.

What is sorting? Explain by giving a suitable example.

Q.2.

How data in a worksheet can be sorted according to a given column?

Q.3.

What is multilevel sorting? Explain by giving a suitable example.

4

More Related Content

What's hot

Excel Pivot Tables
Excel Pivot TablesExcel Pivot Tables
Excel Pivot Tables
Matt Saragusa
 
Training On Microsoft Excel
Training On Microsoft ExcelTraining On Microsoft Excel
Training On Microsoft Excel
TimesRide
 
Lesson 15 Using What If Analysis
Lesson 15   Using What If AnalysisLesson 15   Using What If Analysis
Lesson 15 Using What If Analysisguevarra_2000
 
03.names and ranges
03.names and ranges03.names and ranges
03.names and ranges
Steven Alphonce
 
Advance Excel Training
Advance Excel TrainingAdvance Excel Training
Advance Excel Training
Priyanka Verma
 
Excelpresentationdatavalidation
ExcelpresentationdatavalidationExcelpresentationdatavalidation
Excelpresentationdatavalidation
Anirban Biswas
 
MS Excel Learning for PPC Google AdWords Training Course
MS Excel Learning for PPC Google AdWords Training CourseMS Excel Learning for PPC Google AdWords Training Course
MS Excel Learning for PPC Google AdWords Training Course
Ranjan Jena
 
Ms excel basic about Data, graph and pivot table
Ms excel basic about Data, graph and pivot table Ms excel basic about Data, graph and pivot table
Ms excel basic about Data, graph and pivot table
Alomgir Hossain
 
Excel notes by satish kumar avunoori
Excel notes by satish kumar avunooriExcel notes by satish kumar avunoori
Excel notes by satish kumar avunoori
Satish Kumar
 
Pivot table presentation
Pivot table presentationPivot table presentation
Pivot table presentationSha Tibnjn
 
Full project
Full projectFull project
Full project
Rajat Thakral
 
Teaching Excel
Teaching ExcelTeaching Excel
Teaching Excelsam ran
 
MS Excel
MS ExcelMS Excel
How to use Hlookup find an exact match
How to use Hlookup find an exact match How to use Hlookup find an exact match
How to use Hlookup find an exact match
Excel Advise
 
Skillshare - Creating Excel Dashboards
Skillshare - Creating Excel DashboardsSkillshare - Creating Excel Dashboards
Skillshare - Creating Excel Dashboards
School of Data
 
3. subtotal function in excel
3. subtotal function in excel3. subtotal function in excel
3. subtotal function in excel
Dr. Prashant Vats
 
USING VLOOKUP FUNCTION
USING VLOOKUP FUNCTIONUSING VLOOKUP FUNCTION
USING VLOOKUP FUNCTION
Ruffson Panganiban
 
PPT On Microsoft Excel 2007 Full Information.
PPT On Microsoft Excel 2007 Full Information.PPT On Microsoft Excel 2007 Full Information.
PPT On Microsoft Excel 2007 Full Information.
Umesh Kumar
 
VLOOKUP HLOOKUP INDEX MATCH
VLOOKUP HLOOKUP INDEX MATCHVLOOKUP HLOOKUP INDEX MATCH
VLOOKUP HLOOKUP INDEX MATCH
Mridul Bansal
 

What's hot (20)

Excel Pivot Tables
Excel Pivot TablesExcel Pivot Tables
Excel Pivot Tables
 
Training On Microsoft Excel
Training On Microsoft ExcelTraining On Microsoft Excel
Training On Microsoft Excel
 
Lesson 15 Using What If Analysis
Lesson 15   Using What If AnalysisLesson 15   Using What If Analysis
Lesson 15 Using What If Analysis
 
03.names and ranges
03.names and ranges03.names and ranges
03.names and ranges
 
Advance Excel Training
Advance Excel TrainingAdvance Excel Training
Advance Excel Training
 
Excelpresentationdatavalidation
ExcelpresentationdatavalidationExcelpresentationdatavalidation
Excelpresentationdatavalidation
 
MS Excel Learning for PPC Google AdWords Training Course
MS Excel Learning for PPC Google AdWords Training CourseMS Excel Learning for PPC Google AdWords Training Course
MS Excel Learning for PPC Google AdWords Training Course
 
Ms excel basic about Data, graph and pivot table
Ms excel basic about Data, graph and pivot table Ms excel basic about Data, graph and pivot table
Ms excel basic about Data, graph and pivot table
 
Excel notes by satish kumar avunoori
Excel notes by satish kumar avunooriExcel notes by satish kumar avunoori
Excel notes by satish kumar avunoori
 
Pivot table presentation
Pivot table presentationPivot table presentation
Pivot table presentation
 
Pivot Tables
Pivot TablesPivot Tables
Pivot Tables
 
Full project
Full projectFull project
Full project
 
Teaching Excel
Teaching ExcelTeaching Excel
Teaching Excel
 
MS Excel
MS ExcelMS Excel
MS Excel
 
How to use Hlookup find an exact match
How to use Hlookup find an exact match How to use Hlookup find an exact match
How to use Hlookup find an exact match
 
Skillshare - Creating Excel Dashboards
Skillshare - Creating Excel DashboardsSkillshare - Creating Excel Dashboards
Skillshare - Creating Excel Dashboards
 
3. subtotal function in excel
3. subtotal function in excel3. subtotal function in excel
3. subtotal function in excel
 
USING VLOOKUP FUNCTION
USING VLOOKUP FUNCTIONUSING VLOOKUP FUNCTION
USING VLOOKUP FUNCTION
 
PPT On Microsoft Excel 2007 Full Information.
PPT On Microsoft Excel 2007 Full Information.PPT On Microsoft Excel 2007 Full Information.
PPT On Microsoft Excel 2007 Full Information.
 
VLOOKUP HLOOKUP INDEX MATCH
VLOOKUP HLOOKUP INDEX MATCHVLOOKUP HLOOKUP INDEX MATCH
VLOOKUP HLOOKUP INDEX MATCH
 

Viewers also liked

Module 5 entering data in worksheet
Module 5 entering data in worksheetModule 5 entering data in worksheet
Module 5 entering data in worksheetDr. Shalini Pandey
 
Stress
StressStress
Stress
StressStress
Ankit report
Ankit reportAnkit report
Ankit report
Dr. Shalini Pandey
 
50 management techniques
50 management techniques50 management techniques
50 management techniques
Dr. Shalini Pandey
 
Circulation management
Circulation managementCirculation management
Circulation management
Dr. Shalini Pandey
 
Net Promoter Score w badaniach użyteczności
Net Promoter Score w badaniach użytecznościNet Promoter Score w badaniach użyteczności
Net Promoter Score w badaniach użytecznościSymetria
 

Viewers also liked (7)

Module 5 entering data in worksheet
Module 5 entering data in worksheetModule 5 entering data in worksheet
Module 5 entering data in worksheet
 
Stress
StressStress
Stress
 
Stress
StressStress
Stress
 
Ankit report
Ankit reportAnkit report
Ankit report
 
50 management techniques
50 management techniques50 management techniques
50 management techniques
 
Circulation management
Circulation managementCirculation management
Circulation management
 
Net Promoter Score w badaniach użyteczności
Net Promoter Score w badaniach użytecznościNet Promoter Score w badaniach użyteczności
Net Promoter Score w badaniach użyteczności
 

Similar to Module 8 sorting excel data

Activity-2a_Data-Preparation-in-Excel.pdf
Activity-2a_Data-Preparation-in-Excel.pdfActivity-2a_Data-Preparation-in-Excel.pdf
Activity-2a_Data-Preparation-in-Excel.pdf
RaquelFelicianoArgel
 
Excel training by rajesh p
Excel training by rajesh pExcel training by rajesh p
Excel training by rajesh p
Rajesh P
 
Advanced excel unit 01
Advanced excel unit 01Advanced excel unit 01
Advanced excel unit 01
Prashanth Shivakumar
 
6 Excel Essentials for Digital Marketers
6 Excel Essentials for Digital Marketers6 Excel Essentials for Digital Marketers
6 Excel Essentials for Digital Marketers
Happy Marketer
 
How to create pivot table in excel
How to create pivot table in excelHow to create pivot table in excel
How to create pivot table in excel
AashirJamil
 
Excel Datamining Addin Advanced
Excel Datamining Addin AdvancedExcel Datamining Addin Advanced
Excel Datamining Addin Advanced
excel content
 
Excel Datamining Addin Advanced
Excel Datamining Addin AdvancedExcel Datamining Addin Advanced
Excel Datamining Addin Advanced
DataminingTools Inc
 
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
Nitish Nagar
 
27 Excel Hacks to Make You a Superstar
27 Excel Hacks to Make You a Superstar27 Excel Hacks to Make You a Superstar
27 Excel Hacks to Make You a Superstar
Alan Murray
 
ITB - UNIT 4.pdf
ITB - UNIT 4.pdfITB - UNIT 4.pdf
ITB - UNIT 4.pdf
SOMASUNDARAM T
 
IMPORTRANGE-1.pptx
IMPORTRANGE-1.pptxIMPORTRANGE-1.pptx
IMPORTRANGE-1.pptx
KetanSehdev3
 
Focusing on specific data by using filterss
Focusing on specific data by using filterssFocusing on specific data by using filterss
Focusing on specific data by using filterss
um5ashm
 
Workshop Presetation.pptx
Workshop Presetation.pptxWorkshop Presetation.pptx
Workshop Presetation.pptx
JanineCanlas1
 
Excel database
Excel databaseExcel database
Excel database
gdcs
 
MS Excel Module 2012
MS Excel Module 2012MS Excel Module 2012
MS Excel Module 2012
Maria Dinah Alejo Dimacali
 
06.sorting and filling
06.sorting and filling06.sorting and filling
06.sorting and filling
Steven Alphonce
 
Dependent drop down list nta
Dependent drop down list ntaDependent drop down list nta
Dependent drop down list nta
Microsoft Office Specialist
 
Introduction to Business analytics unit3
Introduction to Business analytics unit3Introduction to Business analytics unit3
Introduction to Business analytics unit3
jayarellirs
 
How to Create Drop Down Lists in Excel, step by step
How to Create Drop Down Lists in Excel, step by stepHow to Create Drop Down Lists in Excel, step by step
How to Create Drop Down Lists in Excel, step by step
Select Distinct Limited
 

Similar to Module 8 sorting excel data (20)

Activity-2a_Data-Preparation-in-Excel.pdf
Activity-2a_Data-Preparation-in-Excel.pdfActivity-2a_Data-Preparation-in-Excel.pdf
Activity-2a_Data-Preparation-in-Excel.pdf
 
Excel training by rajesh p
Excel training by rajesh pExcel training by rajesh p
Excel training by rajesh p
 
Advanced excel unit 01
Advanced excel unit 01Advanced excel unit 01
Advanced excel unit 01
 
6 Excel Essentials for Digital Marketers
6 Excel Essentials for Digital Marketers6 Excel Essentials for Digital Marketers
6 Excel Essentials for Digital Marketers
 
How to create pivot table in excel
How to create pivot table in excelHow to create pivot table in excel
How to create pivot table in excel
 
Excel Datamining Addin Advanced
Excel Datamining Addin AdvancedExcel Datamining Addin Advanced
Excel Datamining Addin Advanced
 
Excel Datamining Addin Advanced
Excel Datamining Addin AdvancedExcel Datamining Addin Advanced
Excel Datamining Addin Advanced
 
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
4b6c1c5c-e913-4bbf-b3a4-41e23cb961ba-161004200047.pdf
 
27 Excel Hacks to Make You a Superstar
27 Excel Hacks to Make You a Superstar27 Excel Hacks to Make You a Superstar
27 Excel Hacks to Make You a Superstar
 
05 ms excel
05 ms excel05 ms excel
05 ms excel
 
ITB - UNIT 4.pdf
ITB - UNIT 4.pdfITB - UNIT 4.pdf
ITB - UNIT 4.pdf
 
IMPORTRANGE-1.pptx
IMPORTRANGE-1.pptxIMPORTRANGE-1.pptx
IMPORTRANGE-1.pptx
 
Focusing on specific data by using filterss
Focusing on specific data by using filterssFocusing on specific data by using filterss
Focusing on specific data by using filterss
 
Workshop Presetation.pptx
Workshop Presetation.pptxWorkshop Presetation.pptx
Workshop Presetation.pptx
 
Excel database
Excel databaseExcel database
Excel database
 
MS Excel Module 2012
MS Excel Module 2012MS Excel Module 2012
MS Excel Module 2012
 
06.sorting and filling
06.sorting and filling06.sorting and filling
06.sorting and filling
 
Dependent drop down list nta
Dependent drop down list ntaDependent drop down list nta
Dependent drop down list nta
 
Introduction to Business analytics unit3
Introduction to Business analytics unit3Introduction to Business analytics unit3
Introduction to Business analytics unit3
 
How to Create Drop Down Lists in Excel, step by step
How to Create Drop Down Lists in Excel, step by stepHow to Create Drop Down Lists in Excel, step by step
How to Create Drop Down Lists in Excel, step by step
 

More from Dr. Shalini Pandey

Flip book on consumer awareness
Flip book on consumer awarenessFlip book on consumer awareness
Flip book on consumer awareness
Dr. Shalini Pandey
 
Advertisment fo anaemia awareness camp
Advertisment fo anaemia awareness campAdvertisment fo anaemia awareness camp
Advertisment fo anaemia awareness camp
Dr. Shalini Pandey
 
Advertisment practical file
Advertisment practical fileAdvertisment practical file
Advertisment practical file
Dr. Shalini Pandey
 
Res525 shalini
Res525 shaliniRes525 shalini
Res525 shalini
Dr. Shalini Pandey
 
Res525 origin of earth and earth atmosphere
Res525 origin of earth and earth atmosphereRes525 origin of earth and earth atmosphere
Res525 origin of earth and earth atmosphere
Dr. Shalini Pandey
 
Data processing
Data processingData processing
Data processing
Dr. Shalini Pandey
 
Introduction Advertising
Introduction AdvertisingIntroduction Advertising
Introduction Advertising
Dr. Shalini Pandey
 
Climate smart agriculture 2
Climate smart agriculture 2Climate smart agriculture 2
Climate smart agriculture 2
Dr. Shalini Pandey
 
Climate smart agriculture
Climate smart agricultureClimate smart agriculture
Climate smart agriculture
Dr. Shalini Pandey
 
Farmers Right
Farmers RightFarmers Right
Farmers Right
Dr. Shalini Pandey
 
Critical analysis of welfare schemes
Critical analysis of welfare schemesCritical analysis of welfare schemes
Critical analysis of welfare schemes
Dr. Shalini Pandey
 
College of home science leaflet
College of home science leafletCollege of home science leaflet
College of home science leaflet
Dr. Shalini Pandey
 
Health problems related to nutrition
Health problems related to nutritionHealth problems related to nutrition
Health problems related to nutrition
Dr. Shalini Pandey
 
Farmers kit
Farmers kitFarmers kit
Farmers kit
Dr. Shalini Pandey
 
Digital india program
Digital india programDigital india program
Digital india program
Dr. Shalini Pandey
 
Folder
FolderFolder
A speech
A speechA speech
Hecm512 assignment on participatory communication
Hecm512 assignment on participatory communicationHecm512 assignment on participatory communication
Hecm512 assignment on participatory communication
Dr. Shalini Pandey
 
Letter
LetterLetter

More from Dr. Shalini Pandey (20)

Flip book on consumer awareness
Flip book on consumer awarenessFlip book on consumer awareness
Flip book on consumer awareness
 
Advertisment fo anaemia awareness camp
Advertisment fo anaemia awareness campAdvertisment fo anaemia awareness camp
Advertisment fo anaemia awareness camp
 
Advertisment practical file
Advertisment practical fileAdvertisment practical file
Advertisment practical file
 
Res525 shalini
Res525 shaliniRes525 shalini
Res525 shalini
 
Res525 origin of earth and earth atmosphere
Res525 origin of earth and earth atmosphereRes525 origin of earth and earth atmosphere
Res525 origin of earth and earth atmosphere
 
Data processing
Data processingData processing
Data processing
 
Introduction Advertising
Introduction AdvertisingIntroduction Advertising
Introduction Advertising
 
Climate smart agriculture 2
Climate smart agriculture 2Climate smart agriculture 2
Climate smart agriculture 2
 
Climate smart agriculture
Climate smart agricultureClimate smart agriculture
Climate smart agriculture
 
Farmers Right
Farmers RightFarmers Right
Farmers Right
 
Critical analysis of welfare schemes
Critical analysis of welfare schemesCritical analysis of welfare schemes
Critical analysis of welfare schemes
 
College of home science leaflet
College of home science leafletCollege of home science leaflet
College of home science leaflet
 
Health problems related to nutrition
Health problems related to nutritionHealth problems related to nutrition
Health problems related to nutrition
 
Farmers kit
Farmers kitFarmers kit
Farmers kit
 
Digital india program
Digital india programDigital india program
Digital india program
 
Folder
FolderFolder
Folder
 
Communication audit
Communication auditCommunication audit
Communication audit
 
A speech
A speechA speech
A speech
 
Hecm512 assignment on participatory communication
Hecm512 assignment on participatory communicationHecm512 assignment on participatory communication
Hecm512 assignment on participatory communication
 
Letter
LetterLetter
Letter
 

Module 8 sorting excel data

  • 1. Module No. - 8 Sorting the Data List: Excel provides the facility to sort the Data List on any column of the Data List. Sorting means rearranging the row in increasing or decreasing column value. When you sort the rows then rows having the same column-value, appear together. Table on the next page show a Data List that has been sorted on “Department” Column. Sorting order can either be ascending (increasing) or descending (decreasing) Excel sorting process can be broadly categorized into following categories. (a) Simple or Single level sorting (b) Complex or Multi level sorting Simple Sorting: In simple sorting, list is sorted only on single field/ column. To sort the list on Department, following steps are observed : (a) Select those records of the Data List that have to be sorted. If the complete list is to be sorted then place the cell pointer anywhere in the list, instead of selecting the complete list by dragging the mouse. (b) Select Data option from the bar menu, it will display a submenu. On choosing Sort... option from the submenu, Excel will display the following dialog box. (c) Clicks on down arrow button of Sort by drop down list box and choose Dept in the option because you want to sort the list on department. After selecting the sort field select sorting order, as ascending, by clicking on corresponding radio button. At last select OK button. Data List will rearrange itself to acquire following arrangement of records. A B C D E F G
  • 2. 1 2 3 4 5 6 7 8 9 10 11 Code E005 E010 E003 E002 E006 E007 E001 E004 E008 E009 Name Rahul Anil Ramesh Ajit Babita Subodh Anil Anil Ajit Ramesh Dept. Hardware Hardware Hardware Software Software Software Software Support Support Support Designation Manager Executive Executive Executive Executive Manager Executive Manager Executive Executive Salary Bonus Total 8000 2000 10000 4000 2000 6000 6000 2000 8000 5500 3000 8500 6000 3000 9000 10000 3000 13000 7000 3000 10000 9000 2500 11500 4500 2500 7000 6000 2500 8500 Since this list is sorted on department, hence all the records having same department name appear together and the order of sorting is ascending, therefore the order of the department name has been kept as Hardware, Software and then Support. Multi Level Sorting: Sometimes you want the sorting to be more systematic. Once the records have been sorted on one column, then you would like them to get further sorted on some other column within the group. For example, we would like to sort the Data List on department but within the department, we want to sort on the basis of designation in the descending order, so that within the same group, records having Manager designation appears before the records, having Executive designation. This type of sorting is called Multi level sorting. To perform this type of sorting, follow the following steps: (a) Select the Data List that is to be sorted. (b) Chose Sort option from Data submenu, so as to get Sort dialog box on the screen. (c) Select Dept and order as Ascending in Sort by list box and then select Designation, and Descending radio button in first Then by list box. Finally, select OK button. Following Data List will be provided, which is sorted on Department and within department, it is sorted on designation (descending order). A B C D 1 Code Name Dept. Designation 2 E005 Rahul Hardware Manager 8000 2000 10000 3 E010 Anil Hardware Executive 4000 2000 6000 4 E003 Ramesh Hardware Executive 6000 2000 8000 2 E Salary F Bonus G Total
  • 3. 5 E007 Subodh Software Manager 10000 3000 13000 6 E002 Ajit Software Executive 5500 3000 8500 7 E006 Babita Software Executive 6000 3000 9000 8 E001 Anil Software Executive 7000 3000 10000 9 E004 Anil Support Manager 9000 2500 11500 10 E008 Ajit Support Executive 4500 2500 7000 11 E009 Ramesh Support Executive 6000 2500 8500 We can resorted Data List further. For example, in the above case, sorting is to done so that for the same designation, higher salary records appear first (descending order). To introduce this step of sorting, select Salary in second Then by dialog box and keep the order of sorting as Descending. This selection will result into following Data List. A B C D E Salary F Bonus G 1 Code Name Dept. Designation Total 2 E005 Rahul Hardware Manager 8000 2000 10000 3 E010 Anil Hardware Executive 4000 2000 6000 4 E003 Ramesh Hardware Executive 6000 2000 8000 5 E007 Subodh Software Manager 10000 3000 13000 6 E006 Babita Software Executive 6000 3000 9000 7 E002 Ajit Software Executive 5500 3000 8500 8 E001 Anil Software Executive 7000 3000 10000 9 E004 Anil Support Manager 9000 2500 11500 10 E009 Ramesh Support Executive 6000 2500 8500 11 E008 Ajit Support Executive 4500 2500 7000 When we sort a table on the basis of any column, the records of similar value are displayed together. These are called as Groups. In the above example, records are grouped on the basis of department. The place where one group ends and another group starts, a group break is said to have occurred. 3
  • 4. Assignment No. – 8 Q.1. What is sorting? Explain by giving a suitable example. Q.2. How data in a worksheet can be sorted according to a given column? Q.3. What is multilevel sorting? Explain by giving a suitable example. 4