Fill Blank Cells in Column

I have a spreadsheet given to me that is a list. Column A is a nominal or catergorical variable (imagine something like "Nationality") and column B is a ratio variable (imagine something like "height").
Unfortunately not all of the rows have data filled out column A. The issue is identical to the one presented here in MS Excel: http://www.contextures.com/xlDataEntry02.html
I would like to calculate averages for the subgroups in column A. I could do this manually be selecting each range of data in column B, but with thousands of cells and many subcategories, it would take a long time. From what I can see Numbers "categories" function won't work as I would like if there are blank cells, so it seems I would need to fill in the blank data, to make a proper nominalised database list. Rather than do this manually with manual fills, is there a way to do it programatically? I can't manage the trick for MS Excel in the aforementioned website, as Numbers only allows filtering for blank cells, rather than selecting blank cells.
I hope someone can help.

And now, the script :
--[SCRIPT fillblankcells]
Enregistrer le script en tant que Script : fillblankcells.scpt
déplacer le fichier ainsi créé dans le dossier
<VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
Sélectionner une cellule dans la colonne à compléter.
menu Scripts > Numbers > fillblankcells
Si une cellule de la colonne est vide, le script l'alimente avec le contenu de la dernière cellule remplie qui la précéde.
--=====
L'aide du Finder explique:
L'Utilitaire AppleScript permet d'activer le Menu des scripts :
Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
Cochez la case "Afficher le menu des scripts dans la barre de menus".
--=====
Save the script as a Script: fillblankcells.scpt
Move the newly created file into the folder:
<startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
Select a cell in the column to fill.
menu Scripts > Numbers > fillblankcells
The script will fill every blank cell of this column with the contents of the preceeding filled cell.
--=====
The Finder's Help explains:
To make the Script menu appear:
Open the AppleScript utility located in Applications/AppleScript.
Select the "Show Script Menu in menu bar" checkbox.
--=====
Yvan KOENIG (VALLAURIS, France)
2010/04/05
--=====
on run
set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
tell application "Numbers" to tell document dName to tell sheet sName to tell table tName to tell column colNum1
set maybe to ""
repeat with r from 2 to count of row
if not (value of cell r) = 0 then
set maybe to value of cell r
else
set value of cell r to maybe
end if
end repeat
end tell
end run
--=====
on getSelParams()
local r_Name, t_Name, s_Name, d_Name, col_Num1, row_Num1, col_Num2, row_Num2
set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
if r_Name is missing value then
if my parleAnglais() then
error "No selected cells"
else
error "Il n'y a pas de cellule sélectionnée !"
end if
end if
set two_Names to my decoupe(r_Name, ":")
set {row_Num1, col_Num1} to my decipher(item 1 of two_Names, d_Name, s_Name, t_Name)
if item 2 of two_Names = item 1 of two_Names then
set {row_Num2, col_Num2} to {row_Num1, col_Num1}
else
set {row_Num2, col_Num2} to my decipher(item 2 of two_Names, d_Name, s_Name, t_Name)
end if
return {d_Name, s_Name, t_Name, r_Name, row_Num1, col_Num1, row_Num2, col_Num2}
end getSelParams
--=====
set {rowNumber, columnNumber} to my decipher(cellRef,docName,sheetName,tableName)
apply to named row or named column !
on decipher(n, d, s, t)
tell application "Numbers" to tell document d to tell sheet s to tell table t to return {address of row of cell n, address of column of cell n}
end decipher
--=====
set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
on getSelection()
local _, theRange, theTable, theSheet, theDoc, errmsg, errNum
tell application "Numbers" to tell document 1
repeat with i from 1 to the count of sheets
tell sheet i
set x to the count of tables
if x > 0 then
repeat with y from 1 to x
try
(selection range of table y) as text
on error errmsg number errNum
set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errmsg, quote)
return {theDoc, theSheet, theTable, theRange}
end try
end repeat -- y
end if -- x>0
end tell -- sheet
end repeat -- i
end tell -- document
return {missing value, missing value, missing value, missing value}
end getSelection
--=====
on decoupe(t, d)
local l
set AppleScript's text item delimiters to d
set l to text items of t
set AppleScript's text item delimiters to ""
return l
end decoupe
--=====
on parleAnglais()
local z
try
tell application "Numbers" to set z to localized string "Cancel"
on error
set z to "Cancel"
end try
return (z is not "Annuler")
end parleAnglais
--=====
--[/SCRIPT]
Yvan KOENIG (VALLAURIS, France) lundi 5 avril 2010 14:37:02

Similar Messages

  • Fill blank cells in power query from the cell above

    Is it possible in Power Query to fill blank 
    In excel I can choose them by using "go to special" > "blanks" dialogue, and using referrence like "=R-1C"
    Is it possible to fill this blank cells with value of cell above if Import this file in power query? 
    Thank you

    I am using Power Query preview Version: 2.9.3547.162 and there is a 'Fill Down' command in the transform section that does just that. 
    Bertrand

  • Partial Blank cells in columns suing GUI_DOWNLOAD

    Hi,
    Could you please suggest for,after downloading data using GUI_DOWNLOAD ,I am getting blank cells in some part of columns and it's corresponding data is shifting to next columns .
    country COUNTRY CODE
    IN 123
    AU 123
    Empty Cell    IN 123
    Empty Cell    IN 123
    AU 123
    IN 123
    US 123
    IN 123
    US 123
    in country "COUNTRY" column 3rd and 4th records shifted to next and it became a blank cell.
    so,pls.. suggest me ,if any one could help for the same for which I am thankful to you.
    Maheswar.A.U.

    what type of file you are passing?

  • Quickly fill in blank cells (Excel equivalent)?

    I often import reports from Quicken into Numbers to create data tables for analysis purposes and find that I must fill in blank cells to ensure I have data consistency across rows.
    While I am confident there is no built in way for Numbers to quickly populate these blank cells, I am asking here if AppleScript has the potential of providing the means. 
    The following link gives insight into how it is done with Excel. Does the AppleScript library provide the tools for something similar?
    http://www.techrepublic.com/blog/microsoft-office/quickly-fill-blank-cells-in-ex cel/
    -DaverDee

    Again SGIII, more than I expected.  Thank you.
    A zero is treated like an empty cell.  It is overwritten with the previous non zero valued cell.
    Lastly, so that I understand what you provided, I inserted comments for each line of code.  Would you please look over my comments to confirm that I get it?
    My problem with learning AppleScript is that while I think I understand the code while reading it, I don't know the AppleScript vocabulary to create the code myself.
    -DaverDee
    Tells…
    —From the selected range, in a table, on a sheet, in a document, within Numbers...
    — Set the variable ‘pv’ to null.
    set pv to ""
    — Begin a loop starting from the initial cell in the selected range.
    — Define ’c’ as value in the current cell.
    repeat with c in cells
    — Copy the value of the current cell to the variable ‘v’.
    set v to c's value
    — If the current cell value stored in the variable 'v' is not zero, then copy the value 'v' to the variable 'pv'.
    if v is not 0 then set pv to v
    — Otherwise, set the cell value defined by 'c' to be the value stored in 'pv'.
    --Note: If nothing has been stored in 'pv', as in the case when 'v' is zero which occurs if zero or null is the first cell value in the selected range, then the cell is populated with a blank.
    else set c's value to pv
    —Close the If.
    end if
    —Close the repeat loop.
    end repeat

  • How to autofill blank cells in an entire document?

    Is there a way of filling blank cells in the entire document, not just surrounding cells as the fill-function works? In other programms you search " " and fill (replace) it with "0" for example. Doesn't work with the Find/Replace function in Numbers.
    Tino

    tis15 wrote:
    Is there a way of filling blank cells in the entire document, not just surrounding cells as the fill-function works? In other programms you search " " and fill (replace) it with "0" for example. Doesn't work with the Find/Replace function in Numbers.
    A cell containing " " (a space) is not a blank cell.
    When cells contain this string, the Search / Replace tool behaves flawlessly and replace the spaces by the wanted string.
    To fill the blank cells, I know only one soluce : AppleScript.
    Here is a script doing the trick.
    --[SCRIPT fillblank_cells_withclipboard]
    Enregistrer le script en tant que Script : fillblank_cells_withclipboard.scpt
    déplacer le fichier ainsi créé dans le dossier
    <VolumeDeDémarrage>:Users:<votreCompte>:Library:Scripts:Applications:Numbers:
    Il vous faudra peut-être créer le dossier Numbers et peut-être même le dossier Applications.
    Sélectionner la cellule en haut à gauche de la zône à remplir.
    Aller au menu Scripts , choisir Numbers puis choisir fillblank_cells_withclipboard.
    Le script remplit les cellules vides de la zône définie avec la valeur extraite du presse-papiers.
    --=====
    L'aide du Finder explique:
    L'Utilitaire AppleScript permet d'activer le Menu des scripts :
    Ouvrez l'Utilitaire AppleScript situé dans le dossier Applications/AppleScript.
    Cochez la case "Afficher le menu des scripts dans la barre de menus".
    --=====
    Save the script as a Script: fillblank_cells_withclipboard.scpt
    Move the newly created file into the folder:
    <startup Volume>:Users:<yourAccount>:Library:Scripts:Applications:Numbers:
    Maybe you would have to create the folder Numbers and even the folder Applications by yourself.
    Select a cell which is at top left of the range to fill?
    Go to the Scripts Menu, choose Numbers, then choose fillblank_cells_withclipboard
    The script will fill every blank cell of the defined range with the value extracted from the clipoard.
    --=====
    The Finder's Help explains:
    To make the Script menu appear:
    Open the AppleScript utility located in Applications/AppleScript.
    Select the "Show Script Menu in menu bar" checkbox.
    --=====
    Yvan KOENIG (VALLAURIS, France)
    2010/10/29
    --=====
    on run
    local remplir_avec, dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2, c, r
    set remplir_avec to the clipboard as text
    set {dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    tell application "Numbers" to tell document dName to tell sheet sName to tell table tName
    repeat with c from colNum1 to count of column
    tell column c
    repeat with r from rowNum1 to count of row
    if (value of cell r) = 0 then set value of cell r to remplir_avec
    end repeat
    end tell
    end repeat
    end tell
    end run
    --=====
    set {rowNum1, colNum1, rowNum2, colNum2} to my getCellsAddresses(dname,s_name,t_name,arange)
    on getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    local two_Names, row_Num1, col_Num1, row_Num2, col_Num2
    tell application "Numbers"
    set d_Name to name of document d_Name (* useful if we passed a number *)
    tell document d_Name
    set s_Name to name of sheet s_Name (* useful if we passed a number *)
    tell sheet s_Name
    set t_Name to name of table t_Name (* useful if we passed a number *)
    end tell -- sheet
    end tell -- document
    end tell -- Numbers
    if r_Name contains ":" then
    set two_Names to my decoupe(r_Name, ":")
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, item 1 of two_Names)
    if item 2 of two_Names = item 1 of two_Names then
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    else
    set {row_Num2, col_Num2} to my decipher(d_Name, s_Name, t_Name, item 2 of two_Names)
    end if
    else
    set {row_Num1, col_Num1} to my decipher(d_Name, s_Name, t_Name, r_Name)
    set {row_Num2, col_Num2} to {row_Num1, col_Num1}
    end if -- r_Name contains…
    return {row_Num1, col_Num1, row_Num2, col_Num2}
    end getCellsAddresses
    --=====
    set { dName, sName, tName, rname, rowNum1, colNum1, rowNum2, colNum2} to my getSelParams()
    on getSelParams()
    local r_Name, t_Name, s_Name, d_Name
    set {d_Name, s_Name, t_Name, r_Name} to my getSelection()
    if r_Name is missing value then
    if my parleAnglais() then
    error "No selected cells"
    else
    error "Il n'y a pas de cellule sélectionnée !"
    end if
    end if
    return {d_Name, s_Name, t_Name, r_Name} & my getCellsAddresses(d_Name, s_Name, t_Name, r_Name)
    end getSelParams
    --=====
    set {rowNumber, columnNumber} to my decipher(docName,sheetName,tableName,cellRef)
    apply to named row or named column !
    on decipher(d, s, t, n)
    tell application "Numbers" to tell document d to tell sheet s to tell table t to ¬
    return {address of row of cell n, address of column of cell n}
    end decipher
    --=====
    set { d_Name, s_Name, t_Name, r_Name} to my getSelection()
    on getSelection()
    local _, theRange, theTable, theSheet, theDoc, errMsg, errNum
    tell application "Numbers" to tell document 1
    repeat with i from 1 to the count of sheets
    tell sheet i
    set x to the count of tables
    if x > 0 then
    repeat with y from 1 to x
    try
    (selection range of table y) as text
    on error errMsg number errNum
    set {_, theRange, _, theTable, _, theSheet, _, theDoc} to my decoupe(errMsg, quote)
    return {theDoc, theSheet, theTable, theRange}
    end try
    end repeat -- y
    end if -- x>0
    end tell -- sheet
    end repeat -- i
    end tell -- document
    return {missing value, missing value, missing value, missing value}
    end getSelection
    --=====
    on decoupe(t, d)
    local l
    set AppleScript's text item delimiters to d
    set l to text items of t
    set AppleScript's text item delimiters to ""
    return l
    end decoupe
    --=====
    on parleAnglais()
    local z
    try
    tell application "Numbers" to set z to localized string "Cancel"
    on error
    set z to "Cancel"
    end try
    return (z is not "Annuler")
    end parleAnglais
    --=====
    --[/SCRIPT]
    Yvan KOENIG (VALLAURIS, France) vendredi 29 octobre 2010 14:42:38

  • Keep Auto Fill Down A Column With Blank Cells

    Hello,
    I understand if one blank cell is left, auto fill cannot continue through out the rest of the column.
    Is there a way to "trick" the cell into thinking there is information in the blank cell, in order for it to continue to auto-fill? 
    Please help

    You could enter a space in a cell - it will appear to be blank. An apostrophe will work too - this makes the cell contain an empty string value.
    Regards, Hans Vogelaar (http://www.eileenslounge.com)

  • Filling in the Blanks - Formula for "specific" fill of blank cells

    I am still in the midst of my super extended spreadsheet project and I have come across one more issue that I am sure has an easy solution (using a formula). What I have is a table like this:
    !http://i142.photobucket.com/albums/r103/foenixfortean/Blanks.jpg!
    What I need is for every blank to be filled with the previous word directly above it so the original file would end up looking like this.
    smooth
    smooth
    tax-free
    public
    public
    fair 1
    fair 1
    part-time
    part-time
    inland
    inland
    another
    another
    another
    another
    agricultural
    cold
    cold
    cold
    cold
    cold
    freezing
    freezing
    I would just do it by hand but seeing as how my spreadsheet has 60000+ entries it would be much nicer to let the computer do the work, right?!? Are there any formula experts out there who might be able to help me come up with one for this? Thanks in advance!!

    You can do this using a simple formula.
    To fill column B, for example, enter this in B2:
    =B1
    Click Accept, then drag the handle at the bottom right of B2 down to fill the rest of column B.
    When you enter data in any cell in column B, the entered date will replace the formula in that cell, and the formulas in the cells below will copy the entered data into every cell below until blocked by the next cell filled with entered data.
    Regards,
    Barry

  • Fill in blank cells with a "junk" value

    Greetings
    If I have a table with 20 columns, and some rows that have data in varying numbers of the columns
    Col1 Col2 Col3 etc
    1
    4 4 4
    3 3
    How can I fill in the blank cells with a junk value, say ffff?
    I figure its going to involve the IF and IFBLANK functions, but I'm missing something. Perhaps I need to have it fill in a secondary table, instead of trying it with the "live data" table?
    Thanks!

    If you are trying to do it in the same table you will have to pre-fill all cells with a formula or fill in the blank cells with a formula such as RAND. ISBLANK will not work in this case because you can't have a cell checking itself.
    You could do this in a separate table with a formula such as
    A1=IF(Table 1:: A1 = "", 10*RAND(), Table 1:: A1) and fill this to all the other cells in that table.

  • Fill in blank cells of a Pivot Table Value field area

    Hi,
    In this workbook (http://1drv.ms/1oHk0QV), a normal Pivot Table has been created on the "Pivot Table" worksheet.  I'd like the blank cells of the Pivot Table to be filled up with the preceding non blank
    value.  So to take an example of Product A, the following is what I want:
    1. H5:N5 should have 1
    2. P5:S5 should have 2
    3. U5:W5 should have 2
    4. Y5:BA5 should have 3
    The same should be done for the others as well.
    I have attempted something on the "PowerPivot" worksheet but I do not get the correct result.
    Please help.
    Regards, Ashish Mathur Microsoft Excel MVP www.ashishmathur.com

    there you go:
    YourMeasure:=CALCULATE([State value],
    LASTNONBLANK(FILTER(ALL(Table2[Week]), Table2[Week] <= MAX(Table2[Week])), [State value])
    it basically finds the last week with a valid [State Value] and shows it
    hth,
    gerhard
    Gerhard Brueckl
    blogging @ http://blog.gbrueckl.at
    working @ http://www.pmOne.com

  • Really blank cells...

     I have a strange problem in my excel data. I don't know if I can upload a sample workbook, in the meantime I try to describe the problem.
    In my database I have a column (formatted as text) with many blank cells. The problem is that, for unknown reasons, some of these "blank" cells are not really blank. At the moment, there are 1004 records total (this is not important, it's just
    to use actual figures): if I filter with the regular excel filter (the one on top of the column), selecting all values EXCEPT blanks, I get 374 records selected. If I use the function COUNTA, I get 395 records; if I use the function COUNTBLANK I get 630 records.
    Since 395+630 is 1025 and the records are only 1004, this makes little sense to me: some records are counted twice, once with the blanks and once with the non-blanks. 
    I noticed the problem because the pivot table based on the database and  counting the non-blank records related to that column was giving the wrong results as well (I KNOW that 374 records is correct). Comparing the results of the filtering and of the
    pivot, I was able to isolate the "wrong" records: canceling the cell contents in the column in these records, the pivot table and the functions give the correct results. In those cells there seems to be something, but I don't know what that is:
    1) if I apply the function CODE to one of those cells, I get #VALUE?;
    2) If I apply the function LEN, I get 0 (zero)
    I assume that this means that there is absolutely nothing there.: so what are COUNTA and the pivot table counting?
    I apologize if I am not being clear: this problem is driving me crazy, because the pivot table are the basis of all statistics I need on the database. Thanks in advance for any suggestion
    Robert, Italy

    OK, in the meantime I discovered something else. Let me try to explain. The user of my amateur VBA code can select to add a new entry or to modify an existing entry, via user forms. In the second case, the user form if filled with the contents of the selected
    record fields, the user changes what is needed and the contents of the user form fields are written back to the database. Now, suppose that the field in the database corresponding to the column I mentioned in my post is empty. It is (correctly) NOT counted
    by the pivot table. Now the user changes something else in the form (NOT that field, that remains blank): when the data are written back to the database and the pivot is refreshed, voilà: wrong number, one item more counted. Canceling the field in the database,
    the pivot count is back to normal. 
    What I did was to apply your suggestion to the database field (range of 1 cell only) right after having written it back to the database:
    .Cells(rowno, 24) = Me.TextBox4
    .Cells(rowno, 24) = Application.Clean(.Cells(rowno, 24))
    Unfortunately, it does not work. The pivot table gives the wrong result. BUT the only way I found to "solve" the problem is to clear the cell with clearcontents, equivalent of Cancel in VBA:
    .Cells(rowno, 24) = Me.TextBox4
    If Len(.Cells(rowno, 24)) = 0 Then .Cells(rowno, 24).ClearContents
    This works, but it does not make any sense to me: What am I clearing if there is nothing there? Or what is there is a kind of ghost, of zero length but that is detected by pivot and COUNTA? 
    Add two other mysteries:
    1) the field is counted by COUNTBLANK AND COUNTA: so is it blank or not?
    2) if the user adds a new entry and leaves that field blank, nothing strange happens.
    For the moment, i'll stick with this correction, but not understanding what is going on makes me unconfortable. Thank you for your attention.

  • Missing a Formula for ignoring blank cells.

    I've made a spreadsheet in Numbers 2.3 for keeping track of FIFA standings for a group. Because the scores are empty, the formulas think it’s a 0. This is a problem for the draw column since it thinks that the scores are equal. Is there a function I’m missing here that I can add to my Draw column (E) to ignore the cells if blank? I'm sorry if this is solved, but I've been looking and cannot find anything I can use or understand. Thanks for the help.
    A link to the spreadsheet is here.
    https://www.dropbox.com/s/vjmgi4keo7g4x7u/Numbers%20Test.numbers
    Running Numbers 2.3 on Mavericks.
    Thanks.

    Hi Tim,
    Interesting question!
    Here's a possible solution. It requires two auxiliary columns (which may and should be hidden) to be added to Table 1, and a new formula to count the draws in Table 1-1, column D:
    Table 1:
    Columns F and G are the auxiliary columns. The formulas below are entered into row 2, then filled down to row 6.
    F2: ="-"&B2&"-"&E2&"-"&IF(AND(LEN(C)>0,LEN(D)>0),"XXX-","")
    This constructs a string consisting of the names of the opposing teams (from columns B and E) plus a code ( XXX ) that indicates scores have been entered for both teams (ie, the game has been played).
    G2: =C=D
    This returns TRUE if cells in column C and D have identical contents, and FALSE if their contents differ. TRUE indicates a possible draw, FALSE that one or the other team has won.
    Table 1-1
    The formula below is entered in D2, and filled down to D5:
    D2: =COUNTIFS(Table 1 :: $F,"=*"&A2&"*",Table 1 :: $F,"=*XXX*",Table 1 :: $G,TRUE)
    Syntax for COUNTIFS is COUNTIFS(test-values,condition,test-values,condition,test-values,condition)
    There are two tests on values in column F:
    Does it contain the team name for whom we are counting draws?
    Does it contain the string "XXX" (Has the game been played?)
    There is one test of the values in column G:
    Is the value TRUE? (Do both teams have the same score—including both having no score–?)
    If all three conditions are TRUE, the row (game) is added to this teams Draw count.
    Regards,
    Barry
    Message was edited by: Barry
    (Deleted original formula from T 1-1::D2, which I had stored here.)

  • Blank cells?

    How can I make a cell with a value of 0 appear blank?
    I have formulas that I want to fill down a who column, for when things are later put in the corresponding columns, but when I "fill down" I get loads of 0's which I would rather didn't appear.
    Thanks!

    Ack! Sorry - found a topic about this.

  • Iam using a table in numbers to plot daily graph lines. If I fill a cell with a text box  at say zero it plots the graph. I can't actually set the cell value until the actual day but the graph plots it at zero when I don't want it to plot anything. Is tho

    I am using a table in Numbers to plot daily graph lines. Mood swings of how I am on the day, i"m a depressive.
    If I fill a cell with a step box at say zero it plots the graph. I can't actually set the cell value until the actual day but the graph plots it at zero when I don't want it to plot anything. Is there a work around. so thatbgraph only plots on the day?

    The answer is (sort of) in your subject, but edited out of the problem statement in the body of your message.
    When you use a stepper or a slider, the value in the cell is always numeric, and is always placed on the chart if that cell is included in the range graphed by the chart.
    But if you use a pop-up menu cell, you can specify numeric or text values in the list of choices for in the menu. Numeric values will be shown on the chart. Text values will not.
    For the example, the values list for the pop-up menu was:
    5
    3
    1
    Choose
    -1
    -3
    -5
    The first pop-up was set to display Choose, then the cell was filled down the rest of the column. Any text value (including a single space, if you want the cell to appear blank) may be used instead of Choose.
    For charts with negative Y values, the X axis will not automatically appear at Y=0. If your value set will include negative values, I would suggest setting the Y axis maximum and minimum to the maximum and minimum values on your menu list, rather than letting Numbers decide what range to include on the chart. Place a line shape across the chart at the zero level, and choose to NOT show the X axis.
    Regards,
    Barry

  • I am trying to average multiple cells including some blank cells.  How do I get numbers to assess a blank cell as zero and include that cell in the average?

    I am trying to average multiple cells including some blank cells.  How do I get numbers to assess a blank cell as zero and include that cell in the average?

    Hi rkcfizzle,
    Blanks
    Blanks = 0
    1
    1
    2
    2
    0
    3
    3
    2
    1.5
    AVERAGE ignores blank cells (Column A)
    Formula in Footer Cell A6
    =AVERAGE(A)
    If you want to include blank cells as zero, type this formula in B2 (and Fill Down)
    =IF(A2<>0,A2,0)
    Numbers 3 will change the formula to
    =IF(A2≠0,A2,0)
    Yeah, right! but that is Numbers 3.
    And the answer (6/4) is 1.5. Correct!
    Regards,
    Ian.

  • Blank Cells and Zeroes

    I am a teacher trying to use an iPad with iOS Numbers as a mobile gradebook.
    One issue I have is making a blank cell not count in sums and averages. When I enter a new assignment, the student automatically gets a zero until I enter his or her actual grade, which negatively and unfairly affects his or her averages.
    Is there a way to skip a blank cell in sums and averages instead of having it automatically count as a zero?
    I also have Numbers on a laptop (if that helps).

    When I tried this using the Gradebook Template, I found that if I added a new work item to be graded (quiz, exam, assignment, etc) as a new column (adjusting the weight to keep the semester/term total equal to 100% of the grade) that the new column is blank until I enter something, even if the cell is formatted for numbers. So that worked as planned.
    There is another way, of course to keep the grade from being recorded as zero - use a pull-down (pop-up menu in the cell - you can set the first line in the menu to read "Petunia", "new item", "ungraded" or anything you wish and then build the pop-up list to match your grading needs (e.g., 100%, 99%, 98%, ... or A, B, C or A+, A, A-, B+, B, B-, or 4.0, 3.75, 3.5, 3.25, etc... you get my drift) Sounds tedious BUT you only have to build it once and then copy/paste and match style for all the rest. So here you can create a new column, paste in the pop-up menu cell you've carefully created elsewhere, fill-down and you are ready to go (just remember to adjust the weighting to stay fair.) Someone writes a stellar paper, pull-down to the grade you think it deserves, move on to the next, etc.
    On the iPad (iOS Numbers) the formatting is: Select the cell > Styles Menu (brush) > Format > Pop-Up Menu > (enter your desired list) > Initial Value = Blank or First Item.
    Works for me.  Try it.
    Hope this helps.

Maybe you are looking for