Solved

Sorting in Excel with Group Headers if the Exist

Posted on 2016-09-10
2
96 Views
Last Modified: 2016-10-03
I have a table in Excel that contains some directory information - Name, Department, Extension, etc.

On another worksheet  within the same workbook, I want to created a filtered view of the directory. I only want to display a few of the fields, and I want them to be sorted by the person's last name. That part I can handle.

Here's the trick, I want a header row for each letter of the alphabet (but only if last names exist beginning with that letter), followed by the alphabetical list of names that begin with that letter.

So, instead of:

Appleby
Antler
Bates
Bogus
Dreyfus
Goony

I would get:

A
Appleby
Antler

B
Bates
Bogus

D
Dreyfus

G
Goony

(Nothing that "C", "E", "F" do not appear since there are no last names beginning with those records.)

I'm not sure if this is even possible, but I'm hoping it is!

Thanks!!
0
Comment
Question by:GMC02108
2 Comments
 
LVL 30

Expert Comment

by:Subodh Tiwari (Neeraj)
ID: 41792743
It would help all of us if you can upload a sample workbook and mock up the desired output manually to show all the steps you want to automate to get the desired output.
0
 
LVL 33

Accepted Solution

by:
Rob Henson earned 500 total points
ID: 41793932
You could get something similar with a Pivot Table.

See attached.
Directory.xlsx
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Microsoft Office Picture Manager was included in Office 2003, 2007, and 2010, but not in Office 2013. Users had hopes that it would be in Office 2016/Office 365, but it is not. Fortunately, the same zero-cost technique that works to install it with …
Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

829 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