Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Rank then sort then pastelink

I have 9 topics (ColumnA) with a tallied numerical answer(ColumnB) in Excel.
I have used the RANK function in Excel to Rank numerical responses from 1 to
9 in Column C. After that I need to sort them by the rank to be displayed
with the Rank Number and Topic name in Column D only to then have it
paste-linked to a word document. I think I need a macro. Can you help?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Rank then sort then pastelink

Hello,

If you like to sort with worksheet functions:
http://www.sulprobil.com/html/sorting.html

I would also suggest to use the COUNTIF() + COUNTIF() formula approach
instead of RANK because you might face identical sort keys or (in
other tasks) non-numerical sort keys for which RANK would not work.

Regards,
Bernd
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Rank then sort then pastelink

Ok if I were to use the COUNTIF. How would I do that?
Example below. Yeah the problem with RANK is that in the 3rd column where I
want to list the fruits by descending order based on the tally, 25 is for
banana and apple but it will just list banana 2 times. Some help with the
formula for COUNTIF please :)
Fruit Tally
banana 25
carrot 23
fig 24
apple 25
orange 19
peach 1

"Bernd P" wrote:

Hello,

If you like to sort with worksheet functions:
http://www.sulprobil.com/html/sorting.html

I would also suggest to use the COUNTIF() + COUNTIF() formula approach
instead of RANK because you might face identical sort keys or (in
other tasks) non-numerical sort keys for which RANK would not work.

Regards,
Bernd

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 806
Default Rank then sort then pastelink

Hello Sue,

If your fruit data resides in A2:A7 and the count data in B2:B7 then
enter into C2 (C being a helper column):
=COUNTIF($B$2:$B$7,""&B2)+COUNTIF($B$2:B2,B2)
and copy down to B7. Please note the correct "$" chars!

Enter into D2:
=INDEX($B$2:$B$7,MATCH(ROW()-1,$B$2:$B$7,))
and copy down.

Enter into E2:
=INDEX($A$2:$A$7,MATCH(ROW()-1,$B$2:$B$7,))
and copy down again.

Regards,
Bernd
  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default Rank then sort then pastelink

Got it. great. thanks

"Bernd P" wrote:

Hello Sue,

If your fruit data resides in A2:A7 and the count data in B2:B7 then
enter into C2 (C being a helper column):
=COUNTIF($B$2:$B$7,""&B2)+COUNTIF($B$2:B2,B2)
and copy down to B7. Please note the correct "$" chars!

Enter into D2:
=INDEX($B$2:$B$7,MATCH(ROW()-1,$B$2:$B$7,))
and copy down.

Enter into E2:
=INDEX($A$2:$A$7,MATCH(ROW()-1,$B$2:$B$7,))
and copy down again.

Regards,
Bernd

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Pastelink spiz via OfficeKB.com Excel Worksheet Functions 1 June 20th 08 01:33 PM
rank the numbers / range of data using 'RANK' and 'ABS' KP Excel Worksheet Functions 1 March 8th 08 05:50 PM
Microsoft Excel Rank and Sort [email protected] Excel Discussion (Misc queries) 2 July 7th 07 04:14 AM
Rank items, select one start date, have remaining dates follow based on rank rob normerica Excel Discussion (Misc queries) 1 August 15th 05 09:36 PM
"Pastelink" cells not updating Don Holmes Links and Linking in Excel 3 February 7th 05 10:22 PM


All times are GMT +1. The time now is 08:53 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"