codeman_not
New Member
- Joined
- Jun 25, 2011
- Messages
- 8
Ok, I will try to explain this better. I have four columns (A1:D1). Those columns will either have a "1" or "-1" in them. In column 5, I am trying to figure out a way to show me how many of the columns are postive or negative (or the net positve vs negative of the four columns) (IE: 1,1,1,1 - column 5 = 4 and -1,-1,-1,-1 - column 5 = -4 and finally 1,1,-1,-1 = 0). I tried just using SUM(A1:D1), and that works for all scenarios except when there are 3 positves or negatives. IE: 1,1,1,-1 returns 2, when I am looking for it to return 3 (for 3 net positive columns). The same thing for the inverse (-1,-1,-1,1 = -2). Anyone know of any other way to tackle this other than SUM?