formula
VBA Telemetry pings you when your VBA projects fail
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: formula

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    3
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    have excel xp and some earlier versions as well. What I need to know is how to make a cell show a value of 0 given these conditions.in b11 I have entered a width and in d11 a height. I am going to mutilply b11*d11 then divide it by 1.75 and the answer is to go into h11 but only if it is within a certain range.
    33*36/1.75=
    I want it to place a value there but only if the begginning number(as in bll) is between 24 and 33 any lower would be 0 any higher would be 0 and its it is in the right range then it would equal the corret value instead of 0.
    Have tried the IF function every way I can think of.

    [ This Message was edited by: OldManDtr on 2002-03-31 15:13 ]

  2. #2
    MrExcel MVP Aladin Akyurek's Avatar
    Join Date
    Feb 2002
    Location
    The Hague, NL
    Posts
    81,809
    Post Thanks / Like
    Mentioned
    12 Post(s)
    Tagged
    1 Thread(s)

    Default

    On 2002-03-31 15:10, OldManDtr wrote:
    have excel xp and some earlier versions as well. What I need to know is how to make a cell show a value of 0 given these conditions.in b11 I have entered a width and in d11 a height. I am going to mutilply b11*d11 then divide it by 1.75 and the answer is to go into h11 but only if it is within a certain range.
    33*36/1.75=
    I want it to place a value there but only if the begginning number(as in bll) is between 24 and 33 any lower would be 0 any higher would be 0 and its it is in the right range then it would equal the corret value instead of 0.
    Have tried the IF function every way I can think of.

    [ This Message was edited by: OldManDtr on 2002-03-31 15:13 ]
    In H11 enter:

    =((LEFT((B11*D11)/1.75,2)+0)>=24)*((LEFT((B11*D11)/1.75,2)+0)<=33)*((B11*D11)/1.75)

    Addendum: I used an inclusive between.

    Aladin

    [ This Message was edited by: Aladin Akyurek on 2002-03-31 15:23 ]

  3. #3
    Board Regular
    Join Date
    Mar 2002
    Location
    Fort McMurray, AB
    Posts
    218
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    I'm not sure if you want to compute if the value in B11 IS 24 or 33...the following formula will include 24 and 33...enter the following into h11

    =IF(AND(B11>23.99,B11<33.1),(B11*D11)/1.75,0)
    Regards, Duane
    Office2010 in Win7

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com