#1   Report Post  
B.B
 
Posts: n/a
Default 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   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?


  #3   Report Post  
Ragdyer
 
Posts: n/a
Default

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
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Another Formula question - please Anthony Excel Discussion (Misc queries) 4 August 1st 05 01:18 AM
Formula question danlinksman Excel Discussion (Misc queries) 6 July 6th 05 03:58 AM
time formula question... Greg Excel Discussion (Misc queries) 5 February 25th 05 10:11 AM
Formula Question JDT Excel Discussion (Misc queries) 2 January 30th 05 01:17 PM
formula Question danlinksman Excel Discussion (Misc queries) 3 January 25th 05 02:07 PM


All times are GMT +1. The time now is 01:12 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"