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.

Similar Messages

  • 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

  • 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

  • Grep: How to fill a table cell with certain color

    I have an excel sheet with 5000 rows that needs to be formatted in Indesign.
    1. Is there a way to get a certain color fill of the cell depending on text. Lets say if the text is "apple", the cell should fill with red (and text also color red to make it disappear).
    2. How do I make two different character styles to appear in the same cell (information is tab-separeted but sometimes I would like to have 2 "paragraphs" in one cell sometimes – with that I mean two tab-delimited cells from excel to appear in ONE cell in indesign).
    Thanks in advance
    Example of what I would like to accomplish:  http://tinypic.com/r/vo4och/6

    Yes but wouldn't that make the field contain a string?
    I tried something like that, and every field I edit becomes left-justified, and String (instead of int, float which is right-justified)
    Matthew

  • How to fill an empty cell with the value above

    Hello,
    Please help me on the following issue related to BEx query and it's output in BEx analyzer as well as on Web.
    I am trying to modify a query output where the empty cells are to be filled with the value in the above cell.
    e.g. there is a column for transaction number, and this transaction number is the same for three rows, so it turns out to be two empty cells and only appears as if the transaction number applies to the first row only.
    not sure how to paste screenshot or attach document but would love to provide more information if the above isn't suffice.
    Please advise on what and where to modify in BEx designer.
    Thank you for your help!

    Thanks a lot...yes, now it works in BEx Analyzer but for some reason doesn't work in the Web view.
    Any ideas why is that?
    Thanks again for your prompt help.
    Edited by: One Idea on Jan 15, 2009 12:17 AM

  • 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 a table column with an empty value as the column is not existing in the data file

    Hello,
    I m new to SQL loader
    I have a table like this :
    CREATE table ListeEcriture
    ( "NUMERO" varchar2 (8 bytes)
    "dateEcr" varchar (10 byte)
    "CodeOp" Varchar2 (10 byte)
    "LibOp" varchar (32 byte)
    "CodeVal" varchar (12 byte)
    "NumCompte" varchar (8 bytes)
    This is my control file :
    load data
    infile 'C:\ReQ\FR00010303.txt'
    into table ListeEcriture
    fields terminated by ";"
    (numero, DateEcr, CodeOp, libOp, CodeVal "FR00010303", NumCompte)
    The problem is thataslo if possible to ignore the file header it would be really great

    You might be after SQL*Loader Control File Reference
    Check SQL*Loader Concepts for the big picture.
    Regards
    Etbin

  • 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

  • Photoshop CS6 - How can javaScript fill blank layer with color?

    Hello,
    I'm a production artist and I work with PSD files that were created in Adobe Scene7 Image Authoring Tool. These PSDs contain a background layer along with 1-20 alpha channels. My script has to make new blank layers based on the number of alpha channels and then it has to fill the new layers with light gray. The RGB values are 161, 161, 161. I checked the PSCS6 JavaScript Reference pdf, but I don't see a method that would do this for artLayers. (Let me also say that I'm new to javaScript).
    Does anyone know how to fill a blank layer with these RGB values?
    Here's my script so far:
    #target photoshop 
    // declare variable to contain the active document
    var myDoc=app.activeDocument;
    // declare variable to contain the number of alpha channels, excluding the RGB channels
    var alphaChan = myDoc.channels.length - 3;
    // create loop to make new layers based on number of alpha channels and fill each layer with gray
    for (a=0; a<alphaChan; a=+1){
    myDoc.artLayers.add();
    if (myDoc.artLayers.length == (alphaChan + 1)) {
        break;

    var color = new SolidColor();
    color.rgb.red = 161;
    color.rgb.green = 161;
    color.rgb.blue= 161;
    myDoc.selection.fill(color);

  • 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

  • Fill empty cell with '0'

    Hi,
    I have a crosstab table and some of the cells within the table are empty purely because there is no data in the database which is reasonable.
    For presenation purposes, what are my options to fill these empty cells with '0'?
    I was hoping to find an option to default empty cells to '0', but failed to find such feature.
    Thanks in advance.
    Regards
    Tom

    Hi Tom
    Steps to fill empty cell with '0':-
    1. Select intersection cell in cross tab.
    2. Go to properties tab.
    3. In Text Format section, click on Number Format button.
    4. Select Format type is 'Number' and check the Custom check box.
    5. Enter 0 in all text boxes(Positive, Negative, Equal to zero, and Undefined).
    6. Click ok.
    Now you can see 0 in the Emply cells of cross tab.
    If you want decimal values, enter 0.00 in Positive box.

  • Trying to replace a 'default date' with a 'blank cell' (data presentation issue)?

    Hi Everyone,
    I am trying to add the total cost of purchases to a reports that shows 'row level' items and costs. To do this I have used the UNION ALL command, as shown below.
    SELECT
    T1.DocDate
    , T0.Dscription AS 'Item Description'
    , T0.Price
    FROM AU.dbo.POR1 T0
    INNER JOIN AU.dbo.OPOR T1 ON T1.DocEntry = T0.DocEntry
    WHERE T1.DocType = 'S' AND T1.CardCode = 'V010050'
    UNION ALL
    SELECT
    --CASE WHEN CAST(SUM(0) AS varchar) = '1900-01-01 00:00:00.000' THEN 'A' ELSE 'B' END
    , 'Total Cost'
    , SUM(T0.Price)
    FROM AU.dbo.POR1 T0
    INNER JOIN AU.dbo.OPOR T1 ON T1.DocEntry = T0.DocEntry
    WHERE T1.DocType = 'S' AND T1.CardCode = 'V010050'
    I am getting the results that I expect however instead of seeing '1900-01-01 00:00:00.000' in the bottom left hand corner of my result set I would simply like to see a blank cell (with no contents).
    Here is what I am currently seeing -
    How can I 'remove the contents' and substitute a 'blank'? I tried using a case statement and the SUM operator without success. I chose SUM, because to choose a non-aggregate function would require me to use the GROUP BY clause, and doing so would then affect my result set adversely.
    Any suggests here will be greatly appreciated.
    Kind Regards,
    David

    Hi!
    Try This.
    SELECT 
    cast(T1.DocDate as varchar)  'Date'
    , T0.Dscription AS 'Item Description' 
    , T0.Price 
    FROM AU.dbo.POR1 T0 
    INNER JOIN AU.dbo.OPOR T1 ON T1.DocEntry = T0.DocEntry 
    WHERE T1.DocType = 'S' AND T1.CardCode = 'V010050' 
    UNION ALL 
    SELECT 
    --CASE WHEN CAST(SUM(0) AS varchar) = '1900-01-01 00:00:00.000' THEN 'A' ELSE 'B' END 
    ''  'Date'
    , 'Total Cost' 
    , SUM(T0.Price) 
    FROM AU.dbo.POR1 T0 
    INNER JOIN AU.dbo.OPOR T1 ON T1.DocEntry = T0.DocEntry 
    WHERE T1.DocType = 'S' AND T1.CardCode = 'V010050' 
    Regards,

  • Filling out form with pre-determined values

    I am new to LiveCycle. I want to set up a form where if a person hits a button or check box, it fills in the form with predetermined variables. I want to there to be several different buttons/check boxes which if selected fill out the form with the predetermined values. These values would be different, depending on the check box/button selected.  Is this possible?
    Just to help understand a little more, I am designing a medical prescription form.
    If the practitioner selects 'Option A' I want it to automatically fill out the required fields in the rest of the form with the predetermined values (set by me).
    Similarily if the practitioner selected 'Option B', it fills out the form with another set of predetermined values.
    Hope this makes sense.
    Thanks

    After looking at your form, I understand what you were going for.  You want several fields prepopulate values when you select either Option A, Option B... and so on.  Here is the script I use for the different fields, I would also suggest adding the same script to the initialized event so you can save the state of the form after it has been changed.
    From a Drop Down - JavaScript Change event 
    if(xfa.event.newText == 'Option A'){
    optionText.rawValue = "This is option A";
    optionText2.rawValue = "This is option A value";
    optionText3.rawValue = "This is option A";
    optionText4.rawValue = "This is option A";
    optionCheckbox.rawValue="0";      //0= unselected  1=selected
    optionRadio.rawValue = "Option A";
    if(xfa.event.newText == 'Option B'){
    optionText.rawValue = "This is option B";
    optionText2.rawValue = "This is option B value";
    optionText3.rawValue = "This is option B text";
    optionText4.rawValue = "This is option B";
    optionCheckbox.rawValue="1";
    optionRadio.rawValue = "Option B";
    From a Radio Box - JavaScript Click event  (make sure you define your values)
    if(optionRadio.rawValue == 'Option A'){
    optionText.rawValue = "This is option A";
    optionText2.rawValue = "This is option A value";
    optionText3.rawValue = "This is option A";
    optionText4.rawValue = "This is option A";
    optionCheckbox.rawValue="0";
    optionDropdown.rawValue = "Option A";
    if(optionRadio.rawValue == 'Option B'){
    optionText.rawValue = "This is option B";
    optionText2.rawValue = "This is option B value";
    optionText3.rawValue = "This is option B text";
    optionText4.rawValue = "This is option B";
    optionCheckbox.rawValue="1";
    optionDropdown.rawValue = "Option B";
    From a Button - JavaScript Click event
    optionText.rawValue = "This is option A";
    optionText2.rawValue = "This is option A value";
    optionText3.rawValue = "This is option A";
    optionText4.rawValue = "This is option A";
    optionCheckbox.rawValue="0";
    optionDropdown.rawValue = "Option A";
    optionRadio.rawValue= "Option A";
    I would attach a sample form, however I can't see where to upload it on this forum.  I will email you the form.
    Suggestion on your form:  Make sure your form fields have unique names in the hierarchy (Shift + F11). 

  • Hyperlinked file opens with junk values

    Hello Guys,
    I am Developing a portal where in people can upload files to different categories. So, there is no problem with uploading.
    So, next time when want to view the file list i am just adding the upload directory as a hyper link to the text displayed something like this.
    <td class="td"><a href="javascript:void window.open('DocumentPolicies/<%=(String)dV.get(1)%>','Document','200','200')">DummyDocumentFileSubject
    </a>
    </td>
    so, this displays DummyDocumentFileSubject with a hyper link and the specified document name will be opened in a seperat window.
    The problem i face is that if it is a word document it some time opens inside the browser itself some time it opens with some junk values.(Even MSWord installed on the client system).
    The file type may be different some times .pdf .jpg, .dwg,.apc.etc.
    My client wants to view it on the browser.
    Or if in case i am doing it wrong. please correct me.
    can anybody help me on this.
    thanks in advance
    regards,
    dina

    Yes, it looks like you are not setting the appropriate content type to the file extension.

  • Filling half a cell diagonally with a colour CS5.5

    I have a need to recreate some artwork that needs to have a table with each cell split diagonally and the top diagonal white and the bottom diagonal of each cell grey.
    I can find the obvious such as diagonal LINE fills but nothing about filling HALF the cell with a colour.
    Any ideas?

    It's been a while since the last post of this thread, but i'm still happy to see that I'm not the only one who is looking for this feature.
    The link to that file no longer exist, and I'm looking for a solution to make a diagonal fill.
    I created a Gradiant that cut 2 colors into half with hard edges like this:
    I than created a graphic frame, filled it with this color, and gave it 45°, so it looks like this:
    I than tried to do the same to a cell, but when I filled it, I did't see the gradient like in the graphic frame, it didn't fill it from green to blue, I see only the blue part of the gradient.
    Yes, I can use the Gradient tool and drow this diagonal fill, but I don't understand why it behaves different when defining it to a cell or if and how can I tell the gradient to fill the cell from one side to the other like in a graphic frame.
    Maybe someone have a nice solution?
    all the best,
    shlomit

Maybe you are looking for

  • Skype Credit - Isn't showing up in client.

    Hi, I just purchased credit like I was do. Normally it shows up instantly but this time it has taken my money and shows online but when I go into client nothing showing.. just my previous credit. I have logged out, restarted, deleted %appdata%/Skype/

  • Plug-in(s) for Id program

    I cannot successfully download and install the Id program? Which plug-in(s) do I need to download to achieve this? Thank you for your attention.

  • Use wildcards in filenames

    Good morning everyone! I'm pretty new in ODI and I need to read a text file which name starts by "INV", the rest of the filename is variable: date and time. Is there a quick solution to do that? Is it possible to use wildcards (*, %) like OS commands

  • Plant Maintenance Order Act Costs-0PM_OM_OPA_2 or 0CO_OM_OPA_6 datasources?

    To get Actual/plan costs for the value categories in Plant Maintenance workorders, which DataSource  would I use? The 0PM_OM_OPA_2 or 0CO_OM_OPA_6? What is the difference? The 0CO_OM_OPA_6 is already pulling data for Internal orders in our system. Ho

  • HT2486 My address book won't work

    I just installed Snow Leopard and now my address book won't open. It says I have address book 4.1.2, but I can't find an update or anything for it. Help please! I need my addresses!