MrExcel Message Board

Go Back   MrExcel Message Board > Question Forums > Excel Questions

Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only.

Reply
 
Thread Tools Display Modes
Old May 24th, 2002, 01:31 PM   #1
ucpage
New Member
 
Join Date: May 2002
Posts: 2
Default

I am attempting (although it is not working) to sort in a pivot table . In this table, I have 2 yrs of info, sorted in rows by physician. I have 2 standard columns of data and then one calculated column. using the calculated columns, I want to take the difference between the two years to sort in descending order - this will determine what physicians changed the most from one year to the next. Can anyone help me??? Thanks.
ucpage is offline   Reply With Quote
Old May 24th, 2002, 02:16 PM   #2
danam531
New Member
 
Join Date: May 2002
Posts: 40
Default

You should just be able to create your calculated field, place your cursor on one number under the calculated field and click the sort button (z --> a) Is that what you already tried? It works for me
danam531 is offline   Reply With Quote
Old May 24th, 2002, 02:31 PM   #3
ucpage
New Member
 
Join Date: May 2002
Posts: 2
Default

That method works, but I have a drop down filter by hospital and by just hitting the sort button, it only sorts the current hospital we ae looking at. If I was showing this data in a meeting, I would like a way where it automatically sorts each time I change a hospital... Does that make sense??
ucpage is offline   Reply With Quote
Old May 24th, 2002, 02:52 PM   #4
sen_edp
Board Regular
 
sen_edp's Avatar
 
Join Date: Mar 2002
Location: Hellas
Posts: 553
Default

hello UCPAGE

i tried to make an example of your data as below

Microsoft Excel - PIVOT TABLE EXAMPLE.xls___Running: xl2000 : OS = Windows (32-bit) NT 5.00
(F)ile (E)dit (V)iew (I)nsert (O)ptions (T)ools (D)ata (W)indow (H)elp
A1=physician

A
B
C
D
E
F
G
H
I
1
physicianworkhoursyear
PIVOT TABLE



2
ANDREW1202000





3
JIM1352000
Sum of workhoursyear


4
BILL1202000
physician20002001diference
5
JANE1502000
ANDREW1201200
6
ANDREW1202001
BILL12014020
7
JIM1702001
JANE15018030
8
BILL1402001
JIM13517035
9
JANE1802001
Grand Total52561085
10









11









Sheet1

To see the formula in the cells just click on the cells hyperlink

The above image was automatically generated by [HtmlMaker V1.28]
If you want FREE SOFT, click here and Colo will email the file to you
This code was graciously allowed to be modified: by Ivan F Moala All credit to Colo


in order to sort the physicians (asc or desc)
go to the pivot table , select the physician
field, then go menu-data-sort and in the sort by cell click on the cell under the difference either desc or asc order with values checked and click ok.
that should do it , try it and post back if it works.




__________________
Best Regards
Andreas
sen_edp is offline   Reply With Quote
Old May 24th, 2002, 04:06 PM   #5
Mark W.
MrExcel MVP
 
Join Date: Feb 2002
Location: Austin, Texas USA
Posts: 11,654
Default

For the sake of clarity it should be stated that the Difference formula, ='2001'-'2000', would be a Calculated Item rather than a Calculated Field.

[ This Message was edited by: Mark W. on 2002-05-24 15:07 ]
Mark W. is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On

Forum Jump


All times are GMT -4. The time now is 08:30 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
All contents Copyright 1998-2012 by MrExcel Consulting.
diabetic desserts recipes recipes Diabetic Soups Holiday Pizza Recipes Popcorn Recipes Recipes For Microwave Pasta Recipes Casserole Recipes Chili Recipes Curry Recipes Crockpot Recipes Apples Recipes Bread Recipes Vegetarian Recipes Vegetable recipes Desserts Recipes Appetizers Ethnic Recipes Meat Dishes Barbecue Recipes Sauces Recipes Marinade Recipes Low Fat Recipes Frugal Gourmet Kitchen Classics Recipes On The Grill Cook Books Seafood Recipes Cajun Recipes Breads Low Fat Low Fat Breads Bread Machine Recipes Yeast Breads Quick Breads Fat Free Vegetarian Salad Recipes Eggplant Recipes Radish Recipes Tomato Recipes Jalapeno Recipes Potato Recipes Lettuce Recipes Cabbage Recipes Beans Ambrosia Recipes Biscotti Recipes Desserts Low Fat Cookie Recipes Cheesecake Recipes Cake Recipes Pie Recipes Muffin Recipes Custard Recipes Best Appetizers Appetizers Low Fat Salsa Recipes Dip Recipes International Recipes Afghan Recipes Alaska Recipes French Recipes German Recipes Greek Recipes Italian Recipes Spanish Recipes Thai Recipes Korean Recipes Chinese Recipes Mexican Recipes Indian Recipes Beef Recipes Pork Pork & Ham Pork Butts Pork Chop Recipes Pork Ribs Rulled Pork Poultry Recipes Stews Recipes Ground Beef Barbecue Grill Barbecue Smoker All Purpose Sauce BBQ Sauce Barbecue Sauce Carolina BBQ Sauce Pickle Recipes Marinades Smoking Low Fat Appetizers & Dips Low Fat Breakfast Low Fat Cakes Low Fat Cheesecakes Low Fat Cookies Low Fat Desserts Low Fat Fish & Seafood Low Fat Meats Low Fat Pasta Low Fat Pies Low Fat Salads Low Fat Sandwiches Low Fat Sauces & Condiments Low Fat Sides Low Fat Soups Low Fat Vegetarian Baker's Dozen Taste of Home Recipe Book Bon Appetit Cookbook Blacktie Cookbook Buster Cook Book Cookbook USA Cook Book Cook Book Sara's Cookbook Sara's Cookbook Appetizers and Dips Poultry recipes Diabetic recipes Holiday recipes Miscellaneous recipes 110 recipes 1986 Usenet cookbook 2900 recipes Cyberrealm recipes Great sysops of world Specialty recipes Ceideburg recipes Cheese recipes Chili recipes Fruits recipes Garlic recipes Great chefs of NY Londontowne recipes Raisins recipes Recipes for kids US Food Vegetarian recipes Bread recipes Drinks Meat Dishes Brisket recipes Caribou recipes Chicken recipes Filet mignons recipes Pork recipes Swordfish recipes Turkey recipes Pasta recipes Uncategorized recipes Ethnic recipes Canada recipes English recipes Ethiopia recipes Germany recipes Greece recipes Mexican recipes Philippines recipes Welsh recipes Microwave recipes Soups recipes Vegetable recipes Asparagus recipes Barley recipes Brown rice recipes Lentil recipes Mushrooms recipes Salads recipes Wild rice Desserts recipes Cakes recipes Chocolate recipes Cookies recipes Ice cream recipes