• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

Sort a list alphabetically forcing one entry to the top

Hi

Try this formula =IF(A1="All",1,IF(COUNTIF($A$1:$A$6,"<="&A1)=1,COUNTIF($A$1:$A$6,"<="&A1)+1,COUNTIF($A$1:$A$6,"<="&A1)))

I have hard coded "ALL". I am not sure is there any better way of doing this, but I am getting the result you were looking for . Wait for this space someone else will be having a better logic.

Thanks
Nebu
 
Hi Nebu,

with your formula, if one has any list of names which are lesser than "All", then those gets 2 repeated twice instead of 2.
use below list of Examples:
Fred
Linda
Aana
Albert
Aaron
All

Aana and Aaron reflects 2!

Regards,
Prasad DN
 
Hi Krishna,

I have also entered "All" manually in first cell, but the formula will ensure rest gets sorted by replacing All's position with next item.

Regards,
Prasad DN
 
Back
Top