Calgarypuck Forums - The Unofficial Calgary Flames Fan Community

Go Back   Calgarypuck Forums - The Unofficial Calgary Flames Fan Community > Main Forums > The Off Topic Forum
Register Forum Rules FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread
Old 04-03-2012, 03:05 PM   #1
Fozzie_DeBear
Wucka Wocka Wacka
 
Fozzie_DeBear's Avatar
 
Join Date: Nov 2003
Location: East of the Rockies, West of the Rest
Exp:
Default Excel Boss Needed

Hey CP'ers,

I have a Excel question and was hoping someone here would be enough of a guru.

I'm looking to embed a 'sort' function (macro?) into the top of a bunch of columns.

So the user can just click the button in the cell at the top of the column and the data will sort based upon that column.

Way more user friendly than rooting through the tool menu for the sort function...

I know it can be done because I have a spreadsheet with this feature...but I have no idea how to do it....

Help?
__________________
"WHAT HAVE WE EVER DONE TO DESERVE THIS??? WHAT IS WRONG WITH US????" -Oiler Fan

"It was a debacle of monumental proportions." -MacT
Fozzie_DeBear is offline   Reply With Quote
Old 04-03-2012, 03:09 PM   #2
Hockeyguy15
Franchise Player
 
Join Date: Dec 2009
Exp:
Default

I think you are talking about a pivot table?

Edit: I think I might have misread and thought a little too complicated.

Second Edit: Did you mean making a table? If you make a table you will be able to sort and filter each column, and each header will have a drop down box to do so. Or what they said below too. The table will give you an extra 'pretty' table format, might be overkill.

Last edited by Hockeyguy15; 04-03-2012 at 03:21 PM.
Hockeyguy15 is offline   Reply With Quote
The Following User Says Thank You to Hockeyguy15 For This Useful Post:
Old 04-03-2012, 03:12 PM   #3
Bend it like Bourgeois
Franchise Player
 
Join Date: Oct 2001
Exp:
Default

i think you're looking for filter. choose the headings you want and click filter from the sort menu.

Alternately, guys on this board can make excel to anything so a great place to ask tougher questions.
http://www.mrexcel.com/forum/index.php
Bend it like Bourgeois is offline   Reply With Quote
The Following User Says Thank You to Bend it like Bourgeois For This Useful Post:
Old 04-03-2012, 03:17 PM   #4
Mattington
Crash and Bang Winger
 
Join Date: Oct 2011
Exp:
Default

Maybe you're thinking of the auto filter function?

Just highlight your column headings, click "data", scroll over "filter", then a mini menu pops up to the left, click "AutoFilter".

In Excel 2007 it works similarily, exept under the data tab there is an icon that looks like a funnel, click that.
Mattington is offline   Reply With Quote
The Following User Says Thank You to Mattington For This Useful Post:
Old 04-03-2012, 03:18 PM   #5
calumniate
Franchise Player
 
calumniate's Avatar
 
Join Date: Feb 2007
Location: A small painted room
Exp:
Default

Yeah, just click on one of your header rows, click the data tab, and click filter. Objective complete!

edit - beaten badly to it.
calumniate is offline   Reply With Quote
The Following User Says Thank You to calumniate For This Useful Post:
Old 04-03-2012, 05:02 PM   #6
oilyfan
Powerplay Quarterback
 
oilyfan's Avatar
 
Join Date: Dec 2009
Location: SE Calgary
Exp:
Default

The autofilter will work, but putting a button up there is cooler.

This is what you have to (instructions are for Excel 2010)
- make sure developer tab is showing in your menus http://msdn.microsoft.com/en-us/library/bb608625.aspx
- goto developer - insert - formcontrol (pick the button) and draw the button where you want it
- a message pops up asking to assign macro
- click record and then ok
- sort the table in the way you want and then click stop recording on the top menu
- right click on the button and edit text and change it to "sort"
- reposition the button where you want it to go (probably above the cloumn you set to sort)

repeat these steps for the all the columns, changing the column you sort on everytime you record your macro, and voila! you are done.
oilyfan is offline   Reply With Quote
The Following User Says Thank You to oilyfan For This Useful Post:
Old 04-04-2012, 10:28 AM   #7
GirlySports
NOT breaking news
 
GirlySports's Avatar
 
Join Date: Jan 2007
Location: Calgary
Exp:
Default

That sounds complex.

Why don't you add a dropdown box to column heading and then add the sort/filter function as one of the items of the dropdown box.
__________________
Watching the Oilers defend is like watching fire engines frantically rushing to the wrong fire

GirlySports is online now   Reply With Quote
The Following User Says Thank You to GirlySports For This Useful Post:
Old 04-04-2012, 01:17 PM   #8
oilyfan
Powerplay Quarterback
 
oilyfan's Avatar
 
Join Date: Dec 2009
Location: SE Calgary
Exp:
Default

Quote:
Originally Posted by GirlySports View Post
That sounds complex.

Why don't you add a dropdown box to column heading and then add the sort/filter function as one of the items of the dropdown box.
Its not very complex at all, takes me 5 minutes. I know the dropdown list works, this just looks slicker.
oilyfan is offline   Reply With Quote
The Following User Says Thank You to oilyfan For This Useful Post:
Old 04-04-2012, 08:17 PM   #9
Fozzie_DeBear
Wucka Wocka Wacka
 
Fozzie_DeBear's Avatar
 
Join Date: Nov 2003
Location: East of the Rockies, West of the Rest
Exp:
Default

Thanks all...the solution I was thinking of was from HockeyGuy (creating a table)...just highlighted the worksheet...created a table and BOOM...a SORT macro (or whatever) is at the top of each column.

I may have to try the dropdown list option though just for shiggles...it might be easier for the boss to use.
__________________
"WHAT HAVE WE EVER DONE TO DESERVE THIS??? WHAT IS WRONG WITH US????" -Oiler Fan

"It was a debacle of monumental proportions." -MacT
Fozzie_DeBear is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 04:10 PM.

Calgary Flames
2024-25




Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Calgarypuck 2021 | See Our Privacy Policy