DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: any excel pivot table experts out there?  (Read 9,769 times)

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
any excel pivot table experts out there?
« on: September 13, 2007, 09:03 PM »
I have a excel sheet that shows individual basketball players that gets updated daily to show win/loss record of that day, and the total win/loss record overall.  I'd like the table to automatically get sorted every day so that the person with the best winning percentage is on top.  How can I do this with pivot tables?  Whenever I try to make a pivot table, I can't get it do to this kind of automatic sorting.  I don't even know if this is possible with pivot tables or something else.  Thanks.  Here's a screenshot of the excel sheet.
Screenshot - 9_13_2007 , 12_00_08 PM.png

AbteriX

  • Member #520
  • Charter Honorary Member
  • Joined in 2005
  • ***
  • Posts: 1,150
Re: any excel pivot table experts out there?
« Reply #1 on: September 13, 2007, 09:25 PM »
Don't know the syntax correctly out of mind
but you can script Excel with VBA (Visual Basic for Application)

You can look for an script with an
"OnLoad"-action like:

With Worksheet
If Target <> "" Then
x1 = Selection.Row
y1 = Selection.Column
Columns("A:Z").Select
Selection.Sort Key1:=Range("A1"), Order1:=xlAscending, Header:=xlGuess, OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Cells(x1, y1).Select
End If
End With



Sorry, just an hint.

---
Edit:
I have found some help and better code example with google:
http://pubs.logicalexpressions.com/pub0009/LPMArticle.asp?ID=302
http://www.anthony-vba.kefra.com/vba/vbabasic2.htm

greeds
Stefan
Greetings, Stefan.
« Last Edit: September 13, 2007, 09:50 PM by AbteriX »

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: any excel pivot table experts out there?
« Reply #2 on: September 13, 2007, 09:37 PM »
ooo...I try to avoid VBA whenever possible.  It's always a big headache for me.

Target

  • Honorary Member
  • Joined in 2006
  • **
  • Posts: 1,840
    • Coding Snacks
Re: any excel pivot table experts out there?
« Reply #3 on: September 13, 2007, 10:48 PM »
if you're building pivots manually, you can set the sort order and field in the layout options dialog (apologies if this isn't exactly correct - it's not something I use very often - but it'll get you started)

double click on the field header, then select advanced.

Set the sort order (descending?) and the field name (it will probably default to the 'active' column anyway).

you can force your pivot to refresh on open under the options dialog (or select TABLE OPTIONS from the pivot context menu) - last check box is refresh on open
Alcohol is photoshop, bottled
Askhole - someone who ask for advice, then ignores it
"Look wise, say nothing, and grunt. Speech was given to conceal thought" - Sir William Osler

superboyac

  • Is your software in my list?
  • Charter Member
  • Joined in 2005
  • ***
  • Posts: 6,347
Re: any excel pivot table experts out there?
« Reply #4 on: September 13, 2007, 11:20 PM »
Actually guys, I decided that this is something better suited for Access.  I'm going to try to create it in there.  Ugh...Access...so complex.

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Re: any excel pivot table experts out there?
« Reply #5 on: March 23, 2010, 11:27 AM »
The Ultimate Excel Cheatsheet

http://www.investintech.com/articles/excelcheatsheet/

Quote
... we’ve put together the cream of the crop of Excel shortcuts in easy to use cheatsheets you can print up and keep handy.

Highlighting the most commonly used and commonly looked for Excel commands, this list puts it all at your fingertips.

Keyboard Shortcuts

Learn how to get around Excel using only the keyboard. These cheatsheets have the keyboard shortcuts for mainpulating files, editing content, changing formatting and navigating around workbooks.

...
http://www.investintech.com/articles/excelcheatsheet/

just F.Y.I.
« Last Edit: March 23, 2010, 11:28 AM by Curt »

Original address: https://www.donationcoder.com/forum/index.php?topic=9986.0