Sorting a List #2

Hi,

In column A I have a list of dollar values.

$40
$-30
$10
$0
$0
$120

What I would like to do is in column B put a ranking 1through whatever
corresponding to their dollar value so it would look like this:

$40    2
$-30   6
$10    3
$0      4
$0      4
$120  1

I hope I explained it well.  In other words, in column B,  they are
sorted according to rank right where they stand.  $120 is number 1.
$-30 is number 6, etc.

Thanks,

Tom
0
invalid460 (432)
11/25/2006 1:31:42 AM
excel 39879 articles. 2 followers. Follow

2 Replies
420 Views

Similar Articles

[PageSpeed] 16

In B1:
=rank(a1,$a$1:$a$6)
and copy down to B6



Tom G wrote:
> 
> Hi,
> 
> In column A I have a list of dollar values.
> 
> $40
> $-30
> $10
> $0
> $0
> $120
> 
> What I would like to do is in column B put a ranking 1through whatever
> corresponding to their dollar value so it would look like this:
> 
> $40    2
> $-30   6
> $10    3
> $0      4
> $0      4
> $120  1
> 
> I hope I explained it well.  In other words, in column B,  they are
> sorted according to rank right where they stand.  $120 is number 1.
> $-30 is number 6, etc.
> 
> Thanks,
> 
> Tom

-- 

Dave Peterson
0
petersod (12004)
11/25/2006 4:06:41 AM
On Fri, 24 Nov 2006 22:06:41 -0600, Dave Peterson
<petersod@verizonXSPAM.net> wrote:

>In B1:
>=rank(a1,$a$1:$a$6)
>and copy down to B6
>
>
>
>Tom G wrote:
>> 
>> Hi,
>> 
>> In column A I have a list of dollar values.
>> 
>> $40
>> $-30
>> $10
>> $0
>> $0
>> $120
>> 
>> What I would like to do is in column B put a ranking 1through whatever
>> corresponding to their dollar value so it would look like this:
>> 
>> $40    2
>> $-30   6
>> $10    3
>> $0      4
>> $0      4
>> $120  1
>> 
>> I hope I explained it well.  In other words, in column B,  they are
>> sorted according to rank right where they stand.  $120 is number 1.
>> $-30 is number 6, etc.
>> 
>> Thanks,
>> 
>> Tom

Thank you, that worked perfectly.

Tom

0
invalid460 (432)
11/25/2006 8:44:17 AM
Reply:

Similar Artilces:

"An unexpected error has occurred" when sending from distribution lists
I have set up a new computer, installed Outlook 2002 on it and migrated my files to it from the previous computer. Now whenever I attempt to send an email addressed via one of my distribution lists, I get an error message (An unexpected error has occurred). I also see two Contacts folders in the Add Address List in the Tools/options in the address book. I did change the location of the Outlook pst files, did I confuse something or ? Any ideas? Nothing in the Knowledge base helped Thanks. ...

Sorting
Hi, is it possible to use variable for sorting? Something like: declare @sort varchar(10) SET @sort='column1 DESC' SELECT ROW_NUMBER() OVER (ORDER BY @sort)AS rowId, * FROM table Is dynamic SQL only option? Thank you, Simon On 15/04/2010 11:28, simon wrote: > Hi, > > is it possible to use variable for sorting? > > Something like: > > declare @sort varchar(10) > SET @sort='column1 DESC' > > SELECT ROW_NUMBER() OVER (ORDER BY @sort)AS rowId, * FROM table > > Is dynamic SQL only option? You can use CASE to he...

How to sort account list?
I'm using MS Money 2004 Small Business. In the account list, my accounts are catagorized by and in this order: - bank accounts - credit accounts - investment accounts - loans and liabilities - asset accounts TOTAL BALANCE In the above view, I cannot easily determine totals for assets and liabilities. The following view does this. - bank accounts - investment accounts - asset accounts SUBTOTAL -loans and liabilities SUBTOTAL TOTAL BALANCE How do I get the above view? Thanks, Brett I don't use Small Business. But you can run a Net Worth report to get total assets and ...

Where's the Sort by New Message option?
Not sure when the layout of the newsgroups changed but I can't seem to find the ability to sort by new message in a thread instead of sorting by just the original thread date. That was hugely helpful as I could follow along and see what threads were still active. If you're gonna hang around in the newsgroups (any newsgroups), you may want to start using a newsreader. Microsoft Outlook Express can do it for you. Saved from a previous post: You may want to connect to the ms newsserver directly: If you have Outlook Express installed, try clicking on these links (or copy and paste i...

Cash Sales Entry #2
How to do a cash sales entry? You mean a cash-basis accounting type of entry or a sales transaction where you are receiving cash (as opposed to check or credit card)? New User wrote: > How to do a cash sales entry? ...

Chinese antique #2
Q2hpbmVzZSBhbnRpcXVlCndvcmxkIGZpcnN0LCB0aGUgYW50aXF1ZSBjaGluYXdhcmUgc2VyaWVz IHBsZWFzZSB3YXRjaCEKRW50aXJlIGZpZGVsaXR5IDEwMCUgQW50aXF1ZSAoMTkxMi0xOTQ5KSBS ZXB1YmxpYyBvZiBDaGluYSBwb3JjZWxhaW4KdGVhcG90IDg4OCBjaGluYXdhcmVzIDQwMCBwbGVh c2Ugd2F0Y2hpbmchCldlYnNpdGUgaHR0cDovL3d3dy54ang1ODguY29tCkUtbWFpbCB4anhfNTg4 QHRvbS5jb20KQ2l0eSBTaGVuZ3pob3UgWmhlamlhbmcgQ2hpbmEKCsirx/LOqNK7oaK5xbattMnG 98+1wdDD8bn6tMmy6Lr4ODg4sNHH67nbyc2joQrIq8fyzqjSu6GiyKuxo9XmucW2rbTJxvfPtcHQ w/G5+rS/ytbWtLTJsui6+Dg4OLDRoaK0ycb3NDAwvP7H67nbyc2howq5xdLV0Pm5xbatytWy2Nau trwKzfjVvqO6aHR0cDovL3d3dy54ang1ODguY29tCrXn08qjunhqeF81ODhAd...

Row names will not move with sort
Each row in my summary table in Sheet1 is hyperlinked to a corresponding table in Sheet2 with additional details. I need to move the rows in my summary table (Sheet1) and preserve the links to and from the details tables (Sheet2). I found that I can move rows in Sheet1 with cut & insert and the hyperlinks are maintained. I can travel from a row in summary table (Sheet1) to details table (Sheet2) and back, even after the corresponding row (Sheet1) was moved. But if I sort the rows in Sheet1 the links from Sheet2 back to corresponding rows in Sheet1 lead to presorted locations. Apparen...

sorts not sorting
OK- Thanks to everyones help I now i have a list i can work with... but there are a few problems.... the zips are all 5 digit and now i have to sort them... the problem is, THEY WONT SORT CORRECTLY!!!!!!! The numbers are not in order... some are but a lot are not... is there anyway to fix this???? i need to sort them by zip code but cant seem to get them to do it correctly.. any ideas??? ------------------------------------------------ ~~ Message posted from http://www.ExcelTip.com/ ~~ View and post usenet messages directly from http://www.ExcelForum.com/ You are going to be far better of...

2 copies coming into Inbox
I recently paid for a hotmail account so I could have larger storage and not get cancelled for any reasons such as not checking it often enough. I followed the instructions and put my service on Outlook Express. Now I'm receiving 2 of every message. What's up? Can I fix this? Thanks Darla ...

import- number- sort?
I imported this data into a spread sheet- I tried to format it to number, but when I sort it- I get : 37.08 4.33 4.79 4.8 42.56 5.94 Whats up with this? Thanks Brent Hi Brent, Install the TrimAll macro, select the column and invoke the macro from Alt+F8 http://www.mvps.org/dmcritchie/excel/join.htm#trimall Directions to install and use a macro at http://www.mvps.org/dmcritchie/excel/getstarted.htm#havemacro I expect that you have spaces or CHAR(128) "Required Blank" characters in you data you can check is =LEN(A1) --- HTH, David...

sorting macro #3
I need to sort on 8 cells in a row and on 1500+rows. I can do it one at a time but I know there must be an easier way. Can ANYONE HELP? C3:J3 I need these cells sorted and then down to C1532:J1532 I did create a macro to sort after I selected them but still one at a time. Does it have to be a macro? I can edit a macro but don't really know how to program them. Yes, it has to be a macro. The following should do it. This macro loops through all the entries in Column C, and in each row it sorts the values in Columns C:J. HTH Otto Sub SortRows() Dim rColC As Range Dim i As...

how2: show contact name and phone fields in task list
It would be useful if I could display contact name and phone number fields in my task list. In Simple View I've used Field Chooser to insert these columns into the table .. but alas! the fields are blank. Can I do what I want to do and .. how? thanks Any folder view shows only the data in that folder, even though Outlook lets you think otherwise by allowing you to add fields from different types of items in the folder. You may be able to accomplish what you want, however, with a little custom VBA code. For an example, see http://www.outlookcode.com/codedetail.aspx?id=566 -- Su...

Populating outlook labels #2
Is there a way to do it using VB labels -- exodu ----------------------------------------------------------------------- exodus's Profile: http://www.excelforum.com/member.php?action=getinfo&userid=1572 View this thread: http://www.excelforum.com/showthread.php?threadid=27247 ...

Can we sort a form and also be able to enter new records.
Hi, It is possible to sort the data on a form and also be able to enter new and edit the existing records in it. Cheers! On Tue, 15 Jan 2008 15:41:16 -0800 (PST), Rex wrote: > Hi, > > It is possible to sort the data on a form and also be able to enter > new and edit the existing records in it. > > Cheers! I assume you mean "Is it". The form sort order has nothing to do with editing or adding new records, so the answer is yes. If you cannot edit or add new records, make sure the form's record source, if it is a query, is updateable. Some queries are not. O...

Sorting checking register
How do i sort my check register in Money 2004 Deluxe so that uncleared transactions appear below cleared transactions? In Quicken i could click on the column to provide that sort. In microsoft.public.money, Dean wrote: >How do i sort my check register in Money 2004 Deluxe so >that uncleared transactions appear below cleared >transactions? In Quicken i could click on the column to >provide that sort. You don't. Available choices are chosen by clicking View at the top of the register. ...

Manager can update membership list check box
Hi, I'm working with W2K3 and E2K3. Is there a way to setup 'Active Directory Users and Computers' on a workstation so that the check box for 'Manager can update membership list check box' (Distribution Group, Managed by tab) appears? So far I can only make that work by remoting into an Exchange server, but that won't work for administrators, we need them to do this from their desktops. Thanks, Mindy Mindy: ADUC is probably overkill for just managing distribution group memberships. Can the manager just manage them through Outlook by selecting the properti...

using addrress books to sort incoming mail
I use address books to sort incoming mail. An odd thing: depending on how the sender's name comes across, it doesn't get caught by the filter (amd moved to the "Family Mail" Folder I have set up. for example: my mom and dad's email (from momanddad@somedomain.com) comes as from that address. However, in my contacts, they are listed by their names: John and Mary Smith, with momanddad@somedomain.com as their email address and John and Mary Smith as the display name. What have I done wrong? TIA 1. The big ONE - failed to post your version of Outlook. Rules operate at ...

Supplier List and Sales Report
I am trying to build a report that lists all items for a given supplier, and then lists sales quantities (including zeros for items not sold) within a given timeframe. My attempts so far have allowed be to list all items for a supplier with sales for all time, but the minute I put a timeframe for the sales in place I lose items that have not been sold from the list. Does anyone know where I can find such a report or have any suggestions that would allow me to complete it? Thanks, Holly What report did you base it off of? Detailed Sales with a filter on the Supplier field will giv...

Handling UNICODE #2
Hello, again Here is another problem (at least for me). In the edit control non-English string is displayed properly. There is a member variable for this control, of a CString data type. My question is - how to assign this non-English string to this variable? I mean when I'm calling UpdateData(TRUE), in Debug the value for this member data is "??????" and also when I'm reading recordset, which returns this non-English value properly, (I can see it running corresponding stored procedure in Query Analyzer), the variable of a type _bstr_t, which receiving the value also look...

Unmerge so I can sort
I coy/pasted data into Excell and when I try to sort it I get "This operation requires merged sells to be identically sized". I understadn the work around in KB but how do I find which sells are merged? I wouldn't bother looking. I'd just remove all the merged cells from the range to sort. Select that range format|cells|alignment tab uncheck the merge cells box But if you wanted to search, you can do it via process of elimination. Select a range, format|cells|alignment tab. If that merge cells box is checked, then the whole selection is merged. If it's grey, t...

Want use results of Drop down list to look up a value
I am using Excel 2002 and I have a multisheet workbook and on the first sheet I have created a series of 6 drop down lists pulling from predefined named ranges. I also have limited subsequent choices based on what is selected in the other lists. The end result is the user will be selecting parameters that identify a product and now I am stuck with an easy way to look up the associated part number based on the parameters they selected. Essentially, once they have chosen the parameters in the list, I would like to create a macro that uses those values to locate the associated part...

How does excel determine the range of a list?
Hey, I'm working with worksheets that have more than one list on them. I need to define the range of the list and I only know one cell of the list. How does excel determine the range of a list if you select one cell and set the autofilter or sort data? I'm doing this in VBA and was trying to find something like FilterDatabase to define the range but these list are not filtered or named. Hi If first cell is A1 and your list your list has no empty rows in the column before end of the list, you can use this: Set FilterRange=range("A1",Range("A1").End(xl...

RE: server based archive solution #2
i was looking for a good server based email archive solutions...we currently have inidividual users using Outlook archive but i wanted to move the "responsibility" of archiving to the server-level ; the MSFT exchange sites lists some vendors (http://www.microsoft.com/exchange/partners/archivingandcompliance.asp) but i was wondering what other people had used and what they liked/disliked about the product they chose (or evaluated) ; thanks for any help!! Aloaha is quite good in archiving. If you buy their product they nearly implement you all feature requests. "Sunish Abraham...

sorting issue
Hi, When a range of columns are highlighted and a sort is performed on only one column empty cells above the sort display first. How can this be prevented. I know when there is data in any of the other column but not on the column being sorted this will happen. Any thoughts? Pat Are you sure the cells are really empty? They don't contain spaces or even formulas that evaluate to "". (Even formulas converted to values that returned "")? Pat wrote: > > Hi, > > When a range of columns are highlighted and a sort is performed on only one > column em...

Address Labels #2
Can't you print address labels onto normal Avery 1" X 2,5/8" from an Excel database? Trying to print labels directly from Excel and from printer to another would cause you a lot of trouble. To print labels in MS Word using Mail Merge (MS Word) from Excel see http://www.mvps.org/dmcritchie/excel/mailmerg.htm remember to move the worksheet tab to the far left so that it is the first worksheet. --- HTH, David McRitchie, Microsoft MVP - Excel [site changed Nov. 2001] My Excel Pages: http://www.mvps.org/dmcritchie/excel/excel.htm Search Page: http://www.mvps.org/dm...