bordensize
Board Regular
- Joined
- Dec 4, 2013
- Messages
- 81
- Office Version
- 365
- Platform
- Windows
Good afternoon,
I'm trying to come up with a formula to only add the right most value of an array or cells if the values are numbers (and these numbers will only ever be 1, 2, or 3.) I've managed to come up with making sure all values are computed as numbers, but I cannot figure out how to ignore actual text values from the array to compute the way I need it to.
=SUMPRODUCT(IF((A1:A8)<>0,--RIGHT(A1:A8)))
This formula works if the column doesn't include any values ending with text (such as '2p' below,) but my column will almost always have multiple cells with values that end in text that I'd like to ignore.
Thoughts?
I'm trying to come up with a formula to only add the right most value of an array or cells if the values are numbers (and these numbers will only ever be 1, 2, or 3.) I've managed to come up with making sure all values are computed as numbers, but I cannot figure out how to ignore actual text values from the array to compute the way I need it to.
=SUMPRODUCT(IF((A1:A8)<>0,--RIGHT(A1:A8)))
This formula works if the column doesn't include any values ending with text (such as '2p' below,) but my column will almost always have multiple cells with values that end in text that I'd like to ignore.
Thoughts?
VBA Code:
1
2
3
p1
p2
wjp1
flf2
2p
#VALUE! Sum