Xcel formula question

Collapse

Recommended Videos

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • fistofrage
    Hall Of Fame
    • Aug 2002
    • 13682

    #1

    Xcel formula question

    I need a formula that is going to make any cell with 0(zero) in it and a Div/# error to read as a "-". Should be a common if statement, but can't figure out what to do with the error cells.

    Can someone point me in that direction.

    Thanks.
    Chalepa Ta Kala.....
  • Blzer
    Resident film pundit
    • Mar 2004
    • 42515

    #2
    Re: Xcel formula question

    I'm afraid I don't have an answer, but I actually wanted the exact same thing. I had stats over the summer for my sister's softball team, and people with ratios that didn't include a nonzero number stayed as #DIV/0!. When I tried to convert it to a hyphen myself, it screwed up the [stat] column totals and averages.

    I couldn't find anything under the Format Cells option, either. I'll be looking around some more until we can hopefully find an answer.
    Samsung PN60F8500 PDP / Anthem MRX 720 / Klipsch RC-62 II / Klipsch RF-82 II (x2) / Insignia NS-B2111 (x2) / SVS PC13-Ultra / SVS SB-2000 / Sony MDR-7506 Professional / Audio-Technica ATH-R70x / Sony PS3 & PS4 / DirecTV HR44-500 / DarbeeVision DVP-5000 / Panamax M5400-PM / Elgato HD60

    Comment

    • p_rushing
      Hall Of Fame
      • Feb 2004
      • 14514

      #3
      Re: Xcel formula question

      =IF(B1>0,A1/B1,"-")

      A1=10
      B1=0

      C1='-'

      A2=10
      B2=20

      C2=.5

      Comment

      • LetsGoBucs
        Let's Go Nuggets!
        • Feb 2003
        • 1289

        #4
        Re: Xcel formula question

        In your cell, use this formula:

        =IF(OR(ISERROR(Formula),0),"-",Formula)

        This will put a dash in the cell if there is an error or a 0, otherwise it will use the formula result.
        Last edited by LetsGoBucs; 09-20-2008, 07:48 PM.
        MLB: Pittsburgh Pirates, Colorado Rockies
        NFL: Pittsburgh Steelers
        NHL: Pittsburgh Penguins
        NBA: Denver Nuggets, Orlando Magic
        NCAA: Penn State Nittany Lions, Boston College Eagles

        Comment

        • LetsGoBucs
          Let's Go Nuggets!
          • Feb 2003
          • 1289

          #5
          Re: Xcel formula question

          Originally posted by p_rushing
          =IF(B1>0,A1/B1,"-")

          A1=10
          B1=0

          C1='-'

          A2=10
          B2=20

          C2=.5
          This will only take care of the situation where the result is a zero, not if there is an error (#DIV/0!)
          - Nevermind, rethought the equation and it will not do the division if it will cause an error
          MLB: Pittsburgh Pirates, Colorado Rockies
          NFL: Pittsburgh Steelers
          NHL: Pittsburgh Penguins
          NBA: Denver Nuggets, Orlando Magic
          NCAA: Penn State Nittany Lions, Boston College Eagles

          Comment

          • fistofrage
            Hall Of Fame
            • Aug 2002
            • 13682

            #6
            Re: Xcel formula question

            Originally posted by p_rushing
            =IF(B1>0,A1/B1,"-")

            A1=10
            B1=0

            C1='-'

            A2=10
            B2=20

            C2=.5

            There are some situations where the number could be negative as well, can I put an or statement in there so B1>0 OR B1<0,A1/B1,"-" ?
            Chalepa Ta Kala.....

            Comment

            • p_rushing
              Hall Of Fame
              • Feb 2004
              • 14514

              #7
              Re: Xcel formula question

              Originally posted by fistofrage
              There are some situations where the number could be negative as well, can I put an or statement in there so B1>0 OR B1<0,A1/B1,"-" ?

              For that I would just do B1<>0, B1 does not equal 0

              Comment

              • fistofrage
                Hall Of Fame
                • Aug 2002
                • 13682

                #8
                Re: Xcel formula question

                Originally posted by LetsGoBucs
                In your cell, use this formula:

                =IF(OR(ISERROR(Formula),0),"-",Formula)

                This will put a dash in the cell if there is an error or a 0, otherwise it will use the formula result.
                This wroks great. Thanks.
                Chalepa Ta Kala.....

                Comment

                Working...