[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Sort cells alphabetically

Posted on 2012-09-06
6
Medium Priority
?
397 Views
Last Modified: 2012-09-06
Hello Experts,

I have a spreadsheet which lists those who have access to a system with their access rights listed.  However, the access rights are not in alphabetical order.

I need a macro to go through the spreadsheet and sort the data horizontally in alphabetical order.  

I have attached an example of the data.

Thanks
Infosec36
SortData.xls
0
Comment
Question by:Sonia Bowditch
  • 3
  • 3
6 Comments
 
LVL 48

Expert Comment

by:jpaulino
ID: 38371559
Why don't you use the sort build-in feature?
0
 

Author Comment

by:Sonia Bowditch
ID: 38371565
I would have to go through every single line and the file is huge.  It does not ignore the blank cells.

Thanks
0
 
LVL 48

Expert Comment

by:jpaulino
ID: 38371579
But what kind of sort do you like? You want to sort only the functions?

If possible upload an example of what you have an the expected result.
0
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.

 

Author Comment

by:Sonia Bowditch
ID: 38371610
I would like to sort the Functions only.  I have attached a the updated file for your information.

Thanks.
SortData.xls
0
 
LVL 48

Accepted Solution

by:
jpaulino earned 2000 total points
ID: 38372020
Try this example.

I have changed the header from function to the correct name and you cannot change it (until you run the code).
SortData.xls
0
 

Author Closing Comment

by:Sonia Bowditch
ID: 38372248
Works perfectly.  Thank you.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.

873 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