Home |
Search |
Today's Posts |
#1
|
|||
|
|||
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? |
#2
|
|||
|
|||
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? |
#3
|
|||
|
|||
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? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Another Formula question - please | Excel Discussion (Misc queries) | |||
Formula question | Excel Discussion (Misc queries) | |||
time formula question... | Excel Discussion (Misc queries) | |||
Formula Question | Excel Discussion (Misc queries) | |||
formula Question | Excel Discussion (Misc queries) |