Morning all.
I am using this formula to find rank in column A
=IF(A2="","",RANK(A2,A$2:A$30,0))
however how do i get rid of the value error i get if a cell has text in.
many thanks
steviegee
Hi steviegee,
Try this:
HTHCode:=IF(OR(A2="",ISTEXT(A2)),"",RANK(A2,A$2:A$30,0))
Cheers,
Docendo discimus.
Please consider:
- Thanking those who helped you. Click the reputation icon
in the contributor's post and add Reputation.
- Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.
Or to keep the test down to one calculation:
=IF(ISNUMBER(A2), RANK(A2, A$2:A$30,0), "")
NOTE: Zero evaluates as a number, so zeros would generate a rank, and blank cells or null cells would not.
_________________
Microsoft MVP 2010 - Excel
Visit: Jerry Beaucaire's Excel Files & Macros
If you've been given good help, use theicon below to give reputation feedback, it is appreciated.
Always put your code between code tags. [CODE] your code here [/CODE]
“None of us is as good as all of us” - Ray Kroc
“Actually, I *am* a rocket scientist.” - JB (little ones count!)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks