Results 1 to 10 of 25

Thread: IF Formulas

Hybrid View

  1. #1

    IF Formulas

    Having a little trouble with an IF formula.

    Column A1 = $1050

    In Column A2 I want it to say, if A1<1000 = 0, if A1>1000 then enter the value from A1
    So in this example the answere in A2 would be $1050

    IF(A1<1000,"0",????

  2. #2
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    1,580
    Articles
    100
    Blog Entries
    14
    Hi sumsum, and welcome to the forum.

    Try this: =IF(A1<1000,0,A1)
    Ken Puls, CMA, MS MVP (Excel)

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  3. #3
    Thanks Ken.

    So happy to find this forum, what a great resource.

  4. #4
    Just because I like no-IF formulas

    =A1*(A1>=1000)

  5. #5
    Conjurer JeffreyWeir's Avatar
    Join Date
    Mar 2011
    Location
    New Zealand
    Posts
    118
    Articles
    0
    Sumsum: you should also check out http://www.excelhero.com/blog/2010/01/i-heart-if.html for some more background on IF as well as some alternatives. Such as
    Code:
    =A1*(A1>=1000)
    which basically says
    multiply A1 by one if A1 >= 1000, otherwise multiply A1 by zero
    . The part (A1>=1000) is an example of boolean logic: it returns "True" if true and "FALSE" if false. When Multiplying a "TRUE" or "FALSE" with something (in this case, A1), Excel turns a TRUE into 1 and a FALSE into zero.

    The 2 reasons you might want to do this is that (1) using boolean logic is much less processer intensive than using IF, and (2) it makes other excel nerds excited.

  6. #6
    Administrator Ken Puls's Avatar
    Join Date
    Mar 2011
    Location
    Nanaimo, BC, Canada
    Posts
    1,580
    Articles
    100
    Blog Entries
    14
    Quote Originally Posted by JeffreyWeir
    The 2 reasons you might want to do this is that (1) using boolean logic is much less processer intensive than using IF
    I doubt most users would notice the effects of this unless they had thousands of these calls in their spreadsheets. (And possibly tens of thousands.)

    Quote Originally Posted by JefferyWeir
    , and (2) it makes other excel nerds excited.
    Now that's an EXCELLENT reason though!
    Ken Puls, CMA, MS MVP (Excel)

    Main Site: http://www.excelguru.ca -||- Blog: http://www.excelguru.ca/blog -||- Forums: http://www.excelguru.ca/forums
    Check out the Excelguru Facebook Fan Page -||- Follow Me on Twitter

    If you've been given VBA code (a macro) for your solution, but don't know where to put it, CLICK HERE.

  7. #7
    Quote Originally Posted by Ken Puls View Post
    I doubt most users would notice the effects of this unless they had thousands of these calls in their spreadsheets. (And possibly tens of thousands.)
    And if they do, it will be so slow they won't notice the difference anyway.

Posting Permissions

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