![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
New Member
Join Date: May 2002
Location: Algonquin Industries
Posts: 2
|
I have a sales report with headings such as: Customer Name, 2001 Sales, 2002 Sales, 2002 Plan, etc.
I want to automatically display the "sort by" heading on the worksheet, and whether it is increasing or decreasing. For example: "Sorted by decreasing 2002 sales" Thanks, Dave |
|
|
|
|
|
#2 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
Quote:
="Sorted by "&IF(C2=MIN(C2:C1000),"in",IF(C2=MAX(C2:C1000),"de","NEEDS SORTING"))&"creasing 2002 Sales" it's not foolproof though, it just checks to see if the first value is min or max adjust the ranges too so they don't look at any totals
__________________
:: Pharma Z - Family drugstore :: |
|
|
|
|
|
|
#3 | |
|
New Member
Join Date: May 2002
Location: Algonquin Industries
Posts: 2
|
Quote:
I would accept a formula which analyzes the data table and figures out how it must have been sorted, but this sounds like a kludgy solution. Thanks, Dave |
|
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Millbank, London, UK
Posts: 1,790
|
kludgy's my middle name
sounds like you're going to need one of our VBA coding experts to help you out with those internal sorting settings |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|