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

Similar Messages

  • HT3349 How do you select a sub-set of cells from the entire document so you can print only those specific cells?

    How do you select a sub-set of cells from the entire document so you can print only those specific cells?

    There is no analog to MS Excels print range.  So the next best thing is to plan your data so that you don't need to use print range.  The next best thing after that is to select the range of cells you want to print, then copy, the switch to the application Preview, and create a new document from the clipboard (select the menu item "File > New from Clibboard") then select all, copy then paste to the destination (maybe an email) .
    You can also paste that portion of the table into another table (or a new table) by pasting values only

  • How to generate blank cells in cross-tab (Matrix) report

    Hi All,
    I am facing issue in populating blank columns in a cross-tab report.Please help me out as it is urgent.......
    Thanks in advance.
    regards,
    sreekanth

    If you haven't found the answer yet, check out the following article. It was an immense help to me!
    http://apps2fusion.com/at/64-kr/345-matrix-cross-tab-report-bi-publisher
    HTH

  • Is there a script that can count 'How many points are used in an entire document and/or how many are used by placed graphics'?

    My company is having issues with artwork being used in it's creative that contains extremely high points counts.  This causes issues downstream and we want to be proactive rather than reactive.

    It's not possible (to the best of my knowledge) to access the points in
    a PDF or EPS that are placed in InDesign.
    However, an InDesign script could open the files in Illustrator (if Illy
    can open those files), get it to count the points, and return the result
    to InDesign via BridgeTalk.

  • How can I select and enlarge the entire doc,ge on a page, reducing the surrounding boarder.  I can move the difference text boxes about independently of each other but the outer most boarders of the main template block appear to be fixed.

    How can I select adn enlarge the entire document/image on a page, reducing the the surrounding boarder?  I can move the different text and image boxes around independently of each other but the outer most boarders of the main template block appear to be fixed.  I thought I would be able to enlarge or reduce my document from 'page layout' but this does not seem possible.

    Inspector > Document > Document Margins
    The word is border. Boarders are the Harry Potters of this world.
    Peter

  • HAP_DOCUMENT Appraisal. How to autofill cells?

    Hi to every one!
    First of all I want to thanks to everyone who have been helping me. I've done several of questions about the HAP_DOCUMENT BSP application and I always have an answer that solved my problem or leads me to solve it by my one. So Thank you very very much to all of you.
    Now.
    What I'm trying to do is to autofill some cells of my template after I press on button I've create and I'm showing at the "In Process" status.
    I complete by hand a couple of cells and I need to show some data in another cell calculated from the one complete by hand before.
    I'm using a copy of the HRHAP00_VAL_DET_007 implementation to autocomplete some cells in a custom column when I change my status from "In Preparation" to "In Planning" (when the In Planning template shows up I get some values from a table depending on the appraise ID) and its works ok. But it seems that this implementation does not work when I'm "In Process" to complete my cells of another custom column that are only shown in this status.
    Does anyone know how can I do this?.
    Thank you very much again for all your help.
    Nico.-

    Hi,
    Yes. I think you are very close to the solution.
    Just ensure that the import parameter T_BODY_CELLS-NO_VALUE is not marked for that cell. If so the cell would not accept any default values.
    May be this can be checked in debugging.
    Otherwise i think it should be working fine.
    Regards,
    Subbu

  • How to allow multiple values in a single blank cell in WebI report

    Hi
             I am working in BO XIR2. I have a scenario as follows.
    In a single cell (blank cell from template) i need to display multiple contact persons. When I drag the contact person name into the blank cell, I am getting an error: MULTIVALUE). Please let me know how to use a function so that I can show two or three contact person names in a single blank cell.
    I tried to use Replace and Char function as follows to bring Carriage Return functionality to the cell.
    Replace([Contact Person]; ";" ; Char(13)) but this did not work.
    Thanks in Advance.

    BOUser11:
    I know this thread has been answered. I recently came across a scenario where I happen to populate multiple values in a single blank cell(from templates). But the only catch being that if user enters multiple values for a prompt you can show them in a single cell eg: =UserResponse("Enter value(s) for Branch:"). would be the formula for the blank cell. Afetr the user selects three values say A, B,C, webi puts it in the format of A;B;C. in a single cell.
    In your case try giving that as a prompt to the user or answer that multi prompt some how and when u use the above formula it should suffice your requirement.
    Let me know if you have tried.
    Thanks,
    karthik

  • How to Avoid Errors in Max Function When Data Contains Blank Cells

    I have a column with duration values. However, it also contains some blank cells. These "blank cells" have formulas in them, but as the cells they reference too are blank the formula doesn't produce a result.>/p>
    I want to get the max value from this column. When I simply do =MAX(column-name) I get an error, presumably because some of the cells are blank. This table is going to be highly dynamic, so I don't want to limit the range of the MAX() function to only those cells with values.
    So does anyone know a solution for this, please? If I was some how able to create a formula which returned the range of cells with actual values, then I could use that in the MAX() function. Or, if I could somehow tell the MAX() function to ignore blank cells, but I'm not sure either of these are possible.
    Thanks,
    Nic

    I don't see a problem with "blank" (null string) cells mixed with duration cells.  MAX works fine with this mix of cells. But if the "blank" cells are numbers, not text, that gives an error.
    A formula always produces a result. A formula cannot result in a blank cell. The closest you can get to "blank" is a null string (the result of two quotes next to each other with nothing between them) . So the question is, what is the result that you are calling "blank"?

  • 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.

  • How to get rid of all the extra blank cells in excel export

    Hi I am using vs2005 and when the user exports a report to excel there are many extra blank cells and rows, just wondering if there is a way to get rid of these, thanks.

    Hi I will have to look for the article but if I remember correctly you will want to use the grid format set up on the view menu.  This displays the entire report in crystal reports overlayed on a grid.  You will then want to line everything up has much as possible both horizontally and vertically.  You can use the snap to grid feature which will turn the end of the text object red when it is aligned.  I placed ruler markers on both the x and y rulers and tried to line stuff up to those.  Try to get rid of any blank space between the objects placed on the report as the excell dll will turn these into additional cells.  I do not know if crystal reports for .net has this feature but I used version 9 developer edition.

  • How to keep a value in blank cell in xml publisher

    Hi All,
    I have a column which displays a value.
    When there is no value in that column it is showing BLANK in the report.
    Here I want to place some symbol like "*" or "$" in the BLANK cell.
    I tried using if condition but i am not clear.
    How can i do that?
    Thanks
    sunil

    Try this:
    <?if:a!=''?><?a?><?end if?><?if:a and a=''?><?'*'?><?end if?>
    replace 'a' with your column name.
    Assign points and close out the thread if your question has been answered.
    Thanks,
    Bipuser

  • How do I reference a blank cell in an if/then formula?

    How do reference a blank cell in an if/then formula, i.e. =IF(A4="Blank",0,A7)

    The upfront answer to your question is
    =IF(ISBLANK(A4),0,A7)
    Typically I just check for an empty string which is TRUE if the cell contains an empty string or is blank.
    =IF(A4="",0,A7)
    You can also do both to be doubly sure.
    IF(OR(ISBLANK(A4),A4=""),0,A7)
    Test all three and you will see the difference.
    Message was edited by: Badunit

  • Need to add Ignore Blank Cells In Values in Flex Component - How?

    Can anyone help in providing any code that will add into the properties the capability to Ignore Blank Cells in Values?

    Hi,
    Look at the SDK Sales Funnel sample which has code for ignore end blanks.
    Regards
    Matt

  • Numbers09: editing formulas/blank cells

    I tried to have a look trough all the topics on this forum, but it is impossible.
    These questions have probably been treated already, but I didin't find the answers:
    1) when editing formulas and refering to the same cells several time in this formula, I can't click on it a second, third .. time. I can click once on it, then i have to highlight it, copy it, and paste it in the rest of formula; here is an example:
    =SI(D4=" ";"0";E4F4*H4SI(D4="Cèdre CAT 1";Marché du Bois :: B7;SI(D4="Cèdre CAT 2";Marché du Bois :: G7;SI(D4="Cèdre CAT 3";Marché du Bois :: L7;SI(D4="Iroko";Marché du Bois :: B8;SI(D4="Bois Rouge";Marché du Bois :: B9;SI(D4="Bois Blanc";Marché du Bois :: B10;"0")))))))
    Here, D4 is set the first time by clicking on the cell, and after that, I have to copy and paste it to use it again.
    Why is that ?. Why can't I just click on the reference cell as many time as needed ?.
    2)How do i make the formula understand that a cell remains blank (no space, no 0, .. nothing) under conditions ? And then, using this "blank" cell in a sum, as a "0" value in the sum ?.
    Thanks.

    Lionnel2n wrote:
    I tried to have a look trough all the topics on this forum, but it is impossible.
    These questions have probably been treated already, but I didin't find the answers:
    1) when editing formulas and refering to the same cells several time in this formula, I can't click on it a second, third .. time. I can click once on it, then i have to highlight it, copy it, and paste it in the rest of formula; here is an example:
    =SI(D4=" ";"0";E4F4*H4SI(D4="Cèdre CAT 1";Marché du Bois :: B7;SI(D4="Cèdre CAT 2";Marché du Bois :: G7;SI(D4="Cèdre CAT 3";Marché du Bois :: L7;SI(D4="Iroko";Marché du Bois :: B8;SI(D4="Bois Rouge";Marché du Bois :: B9;SI(D4="Bois Blanc";Marché du Bois :: B10;"0")))))))
    Here, D4 is set the first time by clicking on the cell, and after that, I have to copy and paste it to use it again.
    Why is that ?. Why can't I just click on the reference cell as many time as needed ?.
    *_Because itsn't designed to behave this way !_*
    The correct way of use is described in a recent thread entitled : "Formula question":
    http://discussions.apple.com/thread.jspa?threadID=2603281&tstart=0
    In this one, Badunit wrote :
    You have to hold down the command key to make a second reference to a cell if you already have a reference to the cell in your formula. Or you can type it in rather than clicking to create the reference.
    2)How do i make the formula understand that a cell remains blank (no space, no 0, .. nothing) under conditions ? And then, using this "blank" cell in a sum, as a "0" value in the sum ?.
    There is no way to set a cell to blank with a formula. It's a feature which I already asked to Apple.
    At this time, when a formula is supposed to returned a NIL value, I ask it to return the nil string defined by "" (string whose length is zero).
    When we use the SUM() function, cells which don't store a valid number are carefully dropped.
    So, when you aren't sure that cells contain a valid number, don't use the + operator but use the SUM() function.
    SUM() behave flawlessly when cells contain the nil string described above.
    An alternate soluce is to ask the formula to return zero and apply a custom format which doesn't display the zeroes.
    A problem arise when we fill an entire column with calculations.
    The custom format is applied to the entire column but it doesn't make the difference between a zero which must be displayed and a zero which doesn't.
    In such a case, using the nil string makes the difference and the document is lighter.
    Yvan KOENIG (VALLAURIS, France) mercredi 6 octobre 2010 13:49:04

  • How to remove blank pages from WebI Report in view page layout option

    Hi,
             I am working in Business Objects XIR2 environment. I have a WebI report with several sections. I need to show the report as a book with 69 sections (each section on new page). there are 69 sections on cost center and each cost center section has almost 10 sections embedded in it. When i see in regular view - I only see 69 pages but when I try to see in "View Page Lay out" option, there is one blank page added after each results page.
    Please let me know how to remove this blank page. I need to give users the option to download the book as PDF on to their machine. Now, when I download to my machine, I see one blank page after each results page.
    Thanks in advance.

    Jus convert your report in Page Layout mode and see if your first pafe is getting expand in the second page.
    Now check if there are any cell going into second page.
    - if there are any blank cell which is there after table.
    you have to check formating very carefull.

Maybe you are looking for