Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Benny cannot figure otu the solution
 
Posts: n/a
Default How do I sort a group of calculated cells in Excel?

I've created a spreadsheet that I copy and paste information with people's
last name and first name. I've created a table where I've recreated the list
so they are first name, space and then last name. I need to sort the table
into alphabetical order based on the first name. Using the Sort function
doesn't change the order from what they what they were first created. What
I'd like to do is build a function into the spreadsheet so that the table is
automatically sorted after I copy and paste the list into the worksheet. Is
this possible and can you show me how to do it?
  #2   Report Post  
olasa
 
Posts: n/a
Default


Is this what you're looking for?

The Input list is placed in column A2.
=INDEX(List,MATCH(SMALL(COUNTIF(List,"<="&List),RO WS(A2:$A$2)),COUNTIF(List,"<="&List),0))

I have defined a name (Menu:InsertNameDefine...)
List: =OFFSET(Sheet1!$A$2,0,0,COUNTA(Sheet1!$A$2:$A$1000 0))

Attached zip-file:
http://www.excelforum.com/attachment...tid=3565&stc=1


Ola Sandström


+-------------------------------------------------------------------+
|Filename: Book5.zip |
|Download: http://www.excelforum.com/attachment.php?postid=3565 |
+-------------------------------------------------------------------+

--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=384453

  #3   Report Post  
Benny cannot figure otu the solution
 
Posts: n/a
Default

This solution is PERFECT! Not only does it solve the problem, it also
includes information that let me include the formula in my own spreadsheet!

Thank you very much!

"olasa" wrote:


Is this what you're looking for?

The Input list is placed in column A2.
=INDEX(List,MATCH(SMALL(COUNTIF(List,"<="&List),RO WS(A2:$A$2)),COUNTIF(List,"<="&List),0))

I have defined a name (Menu:InsertNameDefine...)
List: =OFFSET(Sheet1!$A$2,0,0,COUNTA(Sheet1!$A$2:$A$1000 0))

Attached zip-file:
http://www.excelforum.com/attachment...tid=3565&stc=1


Ola Sandström


+-------------------------------------------------------------------+
|Filename: Book5.zip |
|Download: http://www.excelforum.com/attachment.php?postid=3565 |
+-------------------------------------------------------------------+

--
olasa
------------------------------------------------------------------------
olasa's Profile: http://www.excelforum.com/member.php...o&userid=17760
View this thread: http://www.excelforum.com/showthread...hreadid=384453


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
Excel subtotal group sort rick@bcbsne Excel Worksheet Functions 4 October 13th 05 12:31 AM
Sort Ascending button - Excel 2003 Ann Scharpf Excel Discussion (Misc queries) 0 May 23rd 05 11:11 PM
Sort Ascending button - Excel 2003 bigwheel Excel Discussion (Misc queries) 1 May 23rd 05 11:10 PM
How to make empty cells as zero in excel add-ins for SQL Server an Microlong Excel Worksheet Functions 0 January 12th 05 06:31 AM
HELP: Access table linked to Excel - calculated fields? K Zox Excel Worksheet Functions 3 November 12th 04 08:18 AM


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

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

About Us

"It's about Microsoft Excel"