I have a formula that makes a list of unique employee names that I am trying to alphabetize. The problem is there can be 2-50 (range A1:A50) employees within the list causing the alphabetize rank formula to count blank or 0 cells due to having a formula in that cell. Is there a way to use a dynamic range formula to not include the cells that contain 0 or blanks? So would it be possible to have the COUNTIF dynamically rank A1:A10 since A11:A50 are blank?
Current formula in B1:
Desired Result:
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Employee name[/TD]
[TD]Alphabetize rank[/TD]
[/TR]
[TR]
[TD]GRAY,BOBBY F[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]PARK,AMY G[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]JOHNSON,BONNIE[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]HARTFORD,ERIN Q[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]STEEL,ASHLEY[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]DOWEL,LOUIS[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]WORD,LARRY F[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]DUNCAN,HARRY W[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]YOUNG,RICK R[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]KNIGHT,MELISSA R[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]
Current formula in B1:
Code:
=COUNTIF($A$1:$A$50,"<="&A1)
Desired Result:
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]Employee name[/TD]
[TD]Alphabetize rank[/TD]
[/TR]
[TR]
[TD]GRAY,BOBBY F[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]PARK,AMY G[/TD]
[TD]7[/TD]
[/TR]
[TR]
[TD]JOHNSON,BONNIE[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]HARTFORD,ERIN Q[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]STEEL,ASHLEY[/TD]
[TD]8[/TD]
[/TR]
[TR]
[TD]DOWEL,LOUIS[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]WORD,LARRY F[/TD]
[TD]9[/TD]
[/TR]
[TR]
[TD]DUNCAN,HARRY W[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]YOUNG,RICK R[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]KNIGHT,MELISSA R[/TD]
[TD]6[/TD]
[/TR]
</tbody>[/TABLE]