ubervu
Apple iPhone
Nexus One
+ Add

EMAIL ALERTS: SUBSCRIBE
Updated 1 month, 2 weeks ago

Source:
http://chandoo.org/
Thank you Chandoo and Ketan. You guys(/gals?) rock. Since I found this website a few weeks ago I have learned SOOOOOO much. I look forward to learning much more and being able to contribute sometime as well.
David
Showing 13 relevant reactions out of 15.

Sorting text using formulas http://bit.ly/2j6izs [PHD time-machine]

@lohhw3 oops..my mistake, I think you need to use formulas to sort numbers and text. learn more: http://bit.ly/q1zw9

@David: You can make excel return unique rows by adding a very small random fraction to the original values or running fractions to the original values. We have used similar technique in our KPI dashboards to ensure that each row is unique. You may want to check it out…
http://chandoo.org/wp/2008/08/27/excel-kpi-dashboard-sort-2/
Let me know if you still have some doubts…
...
See all content

@Derek: You are right, using small() or large() should solve the problem. I have updated the post with this. Thanks. Btw, how nice it would be if MS had actually enabled small/large for text. But….
@Robert… thanks so much for the wonderful words.
@Rajesh: Welcome to PHD blog and thanks for comments
I am not sure how adding 1 to countif() can make the sort order
...
See all content

Hi solution to solve the non-unique problem that you foresee in the formula given above
Use “=COUNTIF($A$2:$A$7,”<”&A2)+1″ instead of the formula above
I bet it works.
I would like to thank the person who has devised the formula as it an excellent one! If it doesn’t work, give me a slap by emailing me.

Chandoo, Derek,
thanks for the tips. This is fantastic.
Using COUNTIF and VLOOKUP for formula based sorting is much more elegant than the technique I used in the KPI dashboard workbook.
And it works with numbers and texts. As derek pointed, the technique using SMALL or LARGE (see KPI dashboard post nr. 2) works with numbers only.
You could easily add an IF-clause
...
See all content

Struck by inspiration, I tried SMALL() all on its own with text values, as a possible way of cutting through all the complication.
Sadly, unlike COUNTIF(), SMALL() does not accept strings. I see no reason why it could not have, if MS had thought about it. It would then be the “simple spreadsheet formula” Chandoo wished for.
Follow us
FEEDBACKTwitterFacebook