formula question
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? |
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? |
See the answer to your other post in the excel group.
-- Regards, RD --------------------------------------------------------------------------- Please keep all correspondence within the NewsGroup, so all may benefit ! --------------------------------------------------------------------------- "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? |
All times are GMT +1. The time now is 08:12 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com