danmillion
New Member
- Joined
- Mar 20, 2015
- Messages
- 2
I have a range, say A1:A20. Some of the cells in this range are numbers, some are text (-,NA,MN, or even an error, such as #DIV/0!). I would like to create a sum of the existent number, but also add a specific number (say 99) to the cells that are text (or error, as mentioned previously)
A B <= columns
12 1
23 3
NA 1
blank NA
3 5
- 2
10 2
--------------------
345 113
=sum(12+23+99+99+3+99+10) = 345 => Rank = 1
=sum(1+3+1+99+5+2+2) = 113 => Rank= 2
The reason I am adding 99 is that I am ranking the sums/columns by the lowest sum (ascending). So higher sums, lower the rank.
Thanks for any help!!
A B <= columns
12 1
23 3
NA 1
blank NA
3 5
- 2
10 2
--------------------
345 113
=sum(12+23+99+99+3+99+10) = 345 => Rank = 1
=sum(1+3+1+99+5+2+2) = 113 => Rank= 2
The reason I am adding 99 is that I am ranking the sums/columns by the lowest sum (ascending). So higher sums, lower the rank.
Thanks for any help!!