S
shpon
I had posted this question before too and got an answer
from Dave Peterson....Thank you so much...the problem is
that my nubers are not single digits all the time...there
are times that i have single digits but sometimes i have
decimal numbers too...for example, i might have 0.25SL or
1.5V...in that case these formulas don't work...any idea?
thanks a lot in advance.
from Dave Peterson....Thank you so much...the problem is
that my nubers are not single digits all the time...there
are times that i have single digits but sometimes i have
decimal numbers too...for example, i might have 0.25SL or
1.5V...in that case these formulas don't work...any idea?
thanks a lot in advance.
..-----Original Message-----
are all the numbers single digits?
If yes, then this worked ok for me:
(I used columns A:E for my input range)
For SL:
=SUM(IF(RIGHT(A1:E1,2)="SL",--LEFT(A1:E1,1)))
For V:
=SUM(IF(RIGHT(A1:E1,1)="V",--LEFT(A1:E1,1)))
But both of these formulas are array formulas. Hit ctrl-shift-enter instead of
enter. If you do it
correctly, excel will wrap curly brackets {} around your formula. (don't type
them yourself.)
for regular hours:
=sum(a1:e1)
(excel will ignore the text values)
--
Dave Peterson
(e-mail address removed)
.