Solved

Sorting in Excel with Group Headers if the Exist

Posted on 2016-09-10
2
68 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 28

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 31

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

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

This is about my first experience with programming Arduino.
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
Learn how to make your own table of contents in Microsoft Word using paragraph styles and the automatic table of contents tool. We'll be using the paragraph styles in Word’s Home toolbar to help you create a table of contents. Type out your initial …
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

757 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now