LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Using Excel Functions (Array) to put a list in alphabetical order

Replace this:

COUNTA(A$1:A$15)

With this:

COUNTIF(A$1:A$15,"?*")

--
Biff
Microsoft Excel MVP


"Dano" wrote in message
...

Copy down until you #NUM! errors. Or, if you want an error trap:

=IF(ROWS(B$1:B1)<=COUNTA(A$1:A$15),INDEX(A$1:A$15, MATCH(SMALL(IF(A$1:A$15<"",COUNTIF(A$1:A$15,"<"&A $1:A$15)),ROWS(B$1:B1)),IF(A$1:A$15<"",COUNTIF(A$ 1:A$15,"<"&A$1:A$15)),0)),"")

** array formulas need to be entered using the key combination of
CTRL,SHIFT,ENTER (not just ENTER)



That worked out great. However I bring in all of the names I am using
to the front page of my worksheet using references to other
workpages. So the "blank" cells really arn't blank they have a
formula reference that is refering to a blank cell. The result is
the Array alphabetizes it perfectly but all cells which refer to a
cell that is blank are at the bottom of the array resulting in
#NUM! .

Is there a way to have those cells in the array which refer to blank
cells also be "blank"?

Thanks so much,

Dan



 
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
organize a list of names in alphabetical order durnford Excel Discussion (Misc queries) 1 October 24th 08 05:51 PM
How may I make a list display in alphabetical order in Excel? pat henry Excel Discussion (Misc queries) 1 December 6th 05 08:09 PM
How do I get my Excel document list in alphabetical order Larry Rogers Setting up and Configuration of Excel 1 April 29th 05 05:02 PM
how do i sort excel worksheets by alphabetical order? Birichica Excel Worksheet Functions 4 February 23rd 05 05:10 PM
how can i sort excel worksheets in alphabetical order? Birichica Excel Worksheet Functions 1 February 14th 05 06:25 PM


All times are GMT +1. The time now is 02:16 PM.

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"