Excel Question

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Tom Slick
    Veteran Member
    • May 2005
    • 2913
    • Paso Robles, Calif, USA.
    • sears BT3 clone

    #1

    Excel Question

    Is there a way to make an excel formula ignore empty cells until they are "filled"?

    i.e. you write the formula =AVERAGE(A1:A8) but A1:A8 doesn't currently contain data you'll get an #DIV/0 error.

    I am building a spreadsheet (Cpk) with several columns of data that each column gets averaged (x bar) then the average of the averages (x bar bar) is calc'd. I'd like to leave some empty columns for future input but don't want to put a "0" placeholder in the empty column.
    Opportunity is missed by most people because it is dressed in overalls and looks like work. - Thomas Edison
  • chopnhack
    Veteran Member
    • Oct 2006
    • 3779
    • Florida
    • Ryobi BT3100

    #2
    cant divide by zero as you found out - its a limitation of the formula your using. I dont know of any others, the only thing i can offer you is to shorten your averaging list to the numbers you have and expand the field (a1:a12, etc) as you get those results.
    I think in straight lines, but dream in curves

    Comment

    • master53yoda
      Established Member
      • Oct 2008
      • 456
      • Spokane Washington
      • bt 3000 2 of them and a shopsmith ( but not for the tablesaw part)

      #3
      excel formulas

      if A1>.01,formula,""

      if a1 is greater then.01, use the formula, if not "" leaves a blank

      use the if formal it is pretty self explanatory to uses.



      art
      Art

      If you don't want to know, Don't ask

      If I could come back as anyone one in history, It would be the man I could have been and wasn't....

      Comment

      • LCHIEN
        Super Moderator
        • Dec 2002
        • 22012
        • Katy, TX, USA.
        • BT3000 vintage 1999

        #4
        excel treats empty cells as zeros for calculations. except for average which counts non-blank items for what to divide by.
        The simplest thing is "if (count(a1.a8)=0, "", Average(A1.a8))"
        that will put a empty field if there are no items, or the average if there are more than one item. The count function returns the number of non-blank items in the range.

        I did this from memory, it'll be something like that , if not exactly syntactically correct.
        I'm watching the BCS...
        Last edited by LCHIEN; 01-08-2009, 09:45 PM.
        Loring in Katy, TX USA
        If your only tool is a hammer, you tend to treat all problems as if they were nails.
        BT3 FAQ - https://www.sawdustzone.org/forum/di...sked-questions

        Comment

        • Tom Slick
          Veteran Member
          • May 2005
          • 2913
          • Paso Robles, Calif, USA.
          • sears BT3 clone

          #5
          Thanks guys!

          It didn't dawn on me to write an IF statement (obviously).
          Loring, you were right on except you have to define cell ranges with a colon, not a decimal.

          anyone deal with process control charts, 6 sigma, and discrete data?
          Opportunity is missed by most people because it is dressed in overalls and looks like work. - Thomas Edison

          Comment

          • LCHIEN
            Super Moderator
            • Dec 2002
            • 22012
            • Katy, TX, USA.
            • BT3000 vintage 1999

            #6
            Originally posted by Tom Slick
            Thanks guys!

            It didn't dawn on me to write an IF statement (obviously).
            Loring, you were right on except you have to define cell ranges with a colon, not a decimal.

            anyone deal with process control charts, 6 sigma, and discrete data?

            Actually, you can type it in with dot or colon, it works. Shows as a colon in the readback.
            I usually start the range by moving the cursor with the arrow keys, hit a dot, then move the cursor to end of the range and close with ")".
            Loring in Katy, TX USA
            If your only tool is a hammer, you tend to treat all problems as if they were nails.
            BT3 FAQ - https://www.sawdustzone.org/forum/di...sked-questions

            Comment

            • Tom Slick
              Veteran Member
              • May 2005
              • 2913
              • Paso Robles, Calif, USA.
              • sears BT3 clone

              #7
              Thanks for the trick, it does save a keystroke. I usually hold down shift and use the arrow keys so it automatically fills in the ":"
              Opportunity is missed by most people because it is dressed in overalls and looks like work. - Thomas Edison

              Comment

              Working...