BlondieC
New Member
- Joined
- Feb 9, 2016
- Messages
- 41
Hi, this is the last piece for a little tool I'm working on. I've used RANK for the data range but what I need is for any cell with 0.00 in Column E to remain with that cell content and not be ranked numerically and preferablyy be at the bottom of the data content.
Only cells >0.00 should be ranked highest to lowest based on the revenue dollar amount.
The idea is to have the ranking number displayed rather that the revenue dollar amount except where the revenue = 0.00. Currently the data is ranking the way it should and displays the way it should but the rows with 0.00 are also displaying a ranking number. Thank you
My code:
Only cells >0.00 should be ranked highest to lowest based on the revenue dollar amount.
The idea is to have the ranking number displayed rather that the revenue dollar amount except where the revenue = 0.00. Currently the data is ranking the way it should and displays the way it should but the rows with 0.00 are also displaying a ranking number. Thank you
My code:
Code:
Sheets("SiteCopy").Select
Range("E8:E" & Range("E7").End(xlDown).Offset(-1).Row).Name = "DataRank"
With Range("DataRank").Offset(0, 1)
.FormulaArray = "=RANK(DataRank,DataRank)"
End With
Last edited: