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

    Criteria for Summed Lines (2000)

    How do I sum lines where I only want to sum lines that are >0?

  2. #2
    New Lounger
    Join Date
    Jan 2003
    Location
    Sydney, New South Wales, Australia
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: Criteria for Summed Lines (2000)

    Try this in place of the Sum function:

    =Sum(IIf([FieldName]>0,[FieldName],0))

  3. #3
    Silver Lounger GARYPSWANSON's Avatar
    Join Date
    Aug 2001
    Location
    Frederick, Maryland, USA
    Posts
    1,788
    Thanks
    0
    Thanked 2 Times in 2 Posts

    Re: Criteria for Summed Lines (2000)

    If in a query, use the group function to sum where the value you want is >0
    Regards,

    Gary
    (It's been a while!)

Posting Permissions

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