Divide two number

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • barkarlo
    New Member
    • Nov 2006
    • 59

    Divide two number

    I must divide income from 2007 and 2006. but in same cases income in 2006 is null and result is #error. How can I see 0 for this case.
    for an example 120/0=0
  • abolos
    New Member
    • Apr 2007
    • 65

    #2
    Originally posted by barkarlo
    I must divide income from 2007 and 2006. but in same cases income in 2006 is null and result is #error. How can I see 0 for this case.
    for an example 120/0=0

    If text0.text is Null then tex0.value=0

    Comment

    • barkarlo
      New Member
      • Nov 2006
      • 59

      #3
      Originally posted by abolos
      If text0.text is Null then tex0.value=0
      I have a query with columns:
      income2007, income2006 IND07/06.
      In column IND07/06 i have formula
      =nz([income2007];0)/iif(nz([income2006];0)=0;1;[income2006]))*100.
      if income2006=0 this formula return result, but I want see result 0 for this cases.

      Comment

      • Rabbit
        Recognized Expert MVP
        • Jan 2007
        • 12517

        #4
        Replace your semicolons with commas.

        Comment

        • barkarlo
          New Member
          • Nov 2006
          • 59

          #5
          Originally posted by Rabbit
          Replace your semicolons with commas.
          now is OK.
          Thank you

          Comment

          • Rabbit
            Recognized Expert MVP
            • Jan 2007
            • 12517

            #6
            Not a problem, good luck.

            Comment

            Working...