Results 1 to 6 of 6
  1. #1
    New Lounger
    Join Date
    May 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    if statement (excel)

    I'm having a tough time with an if statement. Here's what I'm trying to do:
    if the value is less than 100% then equal 0. If it equals 100% then equal 4%.
    if the value is between 100% and 105% then equal 6%
    if the value is greater than 105.1% then equal 8%.

  2. #2
    Uranium Lounger
    Join Date
    Jan 2001
    Location
    South Carolina, USA
    Posts
    7,295
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: if statement (excel)

    If the value is in A1, then try something like:

    <pre>=IF(A1<1,0,IF(A1<=1.05,0.06,0.08))
    </pre>

    Legare Coleman

  3. #3
    New Lounger
    Join Date
    May 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: if statement (excel)

    it works accept at the 100%. I need it to equal 4% at 100%.

    Everything else is great.
    Thanks

  4. #4
    Uranium Lounger
    Join Date
    Dec 2000
    Location
    Salt Lake City, Utah, USA
    Posts
    9,508
    Thanks
    0
    Thanked 6 Times in 6 Posts

    Re: if statement (excel)

    I think Legare may have overlooked the second sentence on your second line. Is this OK?

    =IF(A1>=1,IF(A1=1,0.04,IF(A1<=1.05,0.06,0.08)),)
    -John ... I float in liquid gardens
    UTC -7ąDS

  5. #5
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: if statement (excel)

    Legare, you forgot the case A1=100%.
    <pre>=IF(A1<100%,0,IF(A1=100%,4%,IF(A1<=105%,6%,8% )))
    </pre>

    Note 1: it is possible to use percentages in formulas.
    Note 2: don't forget to format the cell with the formula as a percentage (this is not automatic)

  6. #6
    New Lounger
    Join Date
    May 2004
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: if statement (excel)

    Thanks everyone. Works great!

Posting Permissions

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