View Single Post
  #2   Report Post  
bj
 
Posts: n/a
Default

If the text value is always "V" you could use something like
=SUM(IF(RIGHT(A18:A21,1)="V",VALUE(LEFT(A18:A21,LE N(A18:A21)-1)),A18:A21))
entered as an array formula (control-shift -return)
If there are other codes than just V, it gets a little more complex. if the
coding is never more than just one character you could use
=SUM(IF(ISNUMBER(A18:A21),A18:A21,VALUE(LEFT(A18:A 21,LEN(A18:A21)-1))))
entered as array formula.

"cbarcroft" wrote:

I have a timesheet spreadsheet. Cell contents include hours and coding.
Example: 8 (8 hours regular pay-no letter) or 8V (8 hours vacation pay). I
want to have a total at the end but my formula will only read the cells that
don't have a letter after the number.