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

One way

in A4

=SUM(A2:A3)*(LEFT(A1)="D")

in A5

=SUM(A2:A3)*(ISNUMBER(A1))

you could also use an IF function



=IF(LEFT(A1)="D",SUM(A2:A3),0)


=IF(ISNUMBER(A1),SUM(A2:A3),0)

--
Regards,

Peo Sjoblom

(No private emails please)


"B.B" wrote in message
news:axtQe.327946$s54.327680@pd7tw2no...
Need help on 2 formulas.
here the work sheet
cell A1 will have input either letter DO then a number (i.e. D102) or just
the number (i.e. 134)
cell A2 & A3 will input only numbers. (i.e. 9)
1st formula
Cells A4 will add A2 + A3 only when cell A1 starts with the letter D (ie
D102)
Cell A5 will add cells A2+A3 only when cell A1 does not start with the
letter D. (ie 134)

Can this be done?