Roger, on another sheet you could just put in A1 =Sheet1!A1 and in B1 put
=Sheet1!B1 and copy down to as many rows as you think the max will be, this
data will up date when you change the data, then just sort on column B, the
dollar amount.
Or you could use a macro like this, this assumes your date is in sheet 1,
columns A & B and that row 1 is a header row, and that you want the sorted
data in sheet 2. change as needed.
Sub SelectDown()
Application.ScreenUpdating = False
Sheets("Sheet1").Range(Range("A1"), Range("B1").End(xlDown)).Copy
Sheets("Sheet2").Select
Range("A1").Select
ActiveSheet.Paste
Application.CutCopyMode = False
Selection.Sort Key1:=Range("B2"), Order1:=xlDescending, Header:=xlYes, _
OrderCustom:=1, MatchCase:=False, Orientation:=xlTopToBottom
Range("A1").Select
Application.ScreenUpdating = True
End Sub
To put in this macro, from your workbook right-click the workbook's icon and
pick View Code. This icon is to the left of the "File" menu this will open
the VBA editor, in the left hand window click on your workbook name, go to
insert, module, and paste the code in the window that opens on the right
hand side, press Alt and Q to close this window and go back to your workbook
and press alt and F8, this will bring up a box to pick the Macro from, click
on the Macro name to run it. If you are using excel 2000 or newer you may
have to change the macro security settings to get the macro to run.
--
Paul B
Always backup your data before trying something new
Using Excel 2000 & 97
Please post any response to the newsgroups so others can benefit from it
** remove news from my email address to reply by email **