Results 1 to 5 of 5
  1. #1
    Mile129 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    11

    Variance column to be zero


    I have a query with variance columns from the data in the other columns, I want to put a formula in the variance coulmn to return a zero if it is less than 1, it can be either a -1 or +1. If it is less than that, I would like a zero instead of a decimal place. I would like to retain the decimal places for over 1 variances. Please advise if this is possible. Thanks.

  2. #2
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    Please check IIF function.

  3. #3
    Mile129 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    11
    That will work, but how do I say the absolute of 1, either +1 or -1? Basically if the absolute value of column A minus column B is less than 1, enter zero.

  4. #4
    Mile129 is offline Novice
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    11
    I got it, I put ABS in front of my formula, thanks Weekend00 for the IIF statement.

  5. #5
    weekend00 is offline I may not be right
    Windows XP Access 2003
    Join Date
    Aug 2010
    Posts
    1,295
    My pleasure I can help a little.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Data variance calculation report
    By O2BSmart in forum Access
    Replies: 4
    Last Post: 08-10-2010, 09:35 AM
  2. Replies: 7
    Last Post: 04-27-2010, 02:47 PM
  3. Replies: 1
    Last Post: 04-15-2010, 02:07 AM
  4. A column numbered: 1,2,3,4,5...
    By eezing in forum Queries
    Replies: 1
    Last Post: 08-18-2009, 09:44 PM
  5. inserting values in column based another column
    By wasim_sono in forum Database Design
    Replies: 1
    Last Post: 06-27-2006, 05:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums