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?

Similar Messages

  • 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

  • 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

  • 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"?

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

  • Concatenate with Commas in Non-Blank Cells

    I am concatenating last and first name cells in a pair of long columns.  I do not want to display commas in the non-blank cells when extending the formula down the sheet.  On the web I found a formula which almost works:  =C7&IF(B7="","","
    "&B7) .
    But, I need to put a comma between the last and first names.  So, instead of "Smith Hal" it would read "Smith, Hal".  Please advise.
    PS, An alternative would be to delete the commas from blank cells in the concatenated column from earlier today.  But, Excel does not see them for some reason and will not allow me to replace them with nothing.  Is there a way to do this en masse?
    Thanks.
    Doug in York PA
    Douglas R. Eckert

    I stumbled upon the solution.  Here is my note to myself for future reference.
    COMMAS in CONCATENATE BUT NOT IN BLANK CELLS – FORMULA
    To concatenate a long column of names (last, first) without leaving extra commas in the blanks cells use the following formula: 
    =C7&IF(B7="","",", "&B7) .
    Please close this question.
    Thanks.
    Doug in York PA
    Douglas R. Eckert

  • Insert subtotals in blank cells in Excel

    I just completed a complicated exercise where I expanded upon an existing table using VLOOKUP.  My next step was to insert subtotals in each of the new columns of the modified table.  But, the original subtotals in the original table
    were text, not formulas.   So, I had to insert new subtotal formulas in each cluster of the table.  This was time-consuming, because each grouping contained a different number of rows.
    Q:  How could I have instructed Excel to insert subtotals quickly for each set of rows in the new table, without having to enter a new range of cells in each formula?  The subtotals would have to land in the blank cells underneath each cluster
    of data.
    Doug in York PA
    Douglas R. Eckert

    I'm not quit sure what's your table looks like.
    If you want to excel insert a formula to the blank cells under each cluster of data. You may need to use VBA code to achieve that, otherwise I don't think excel will be so smart that can insert formula automatically.
    And how is it time consuming to enter the formula? since you have said they are all formatted as table, you can take advantage of the column names in the formula.
    Maybe you can share your file with us, meanwhile if you hope to find some VBA code to achieve it, you can post your question to the forum for Excel Developer:
    http://social.msdn.microsoft.com/Forums/office/en-US/home?forum=exceldev
    Best Regards,
    Wind

  • 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

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

  • Pie chart legend showing digit "1" when we set "ignore blank cells"property

    All,
    We have pie chart in Xcelsius 2008 that shows the data with legend value and we have also set the ignore blank cells property to ignore the blank value from column. but once we set this property, it displays the digit "1" in the legend when there is no data.
    we are expecting that nothing should be displayed in pie chart legend when there is no data for the pie chart.
    Thanks,
    Sourabh

    hi Sourabh,
    I could replicate your scenario.
    Workaround is to create a duplicate of this chart. Go to properties of this new chart.
    Go to Appearance ->
    Uncheck
    - Legend
    - Mouse-over values
    - Data Labels
    for this chart.
    Write a logic in excel using 'IF' to verify if your data is empty.
    Use 'Dynamic Visibility' feature to display this chart only when your data is empty.
    Display your original chart if your data is not empty.
    Regards,
    Vamsee

  • Remove blank cells in a table?

    I have a Pages 5.0.1 document that's one three-column, multi-row table set up to print address labels for our annual holiday card mailing.
    As people come and go from the mailing list, we have a number of blank cells I would like to delete from the table.
    After reviewing all the menu and Help options, I've still not found the process.
    Can someone help me to discover how I do this?  (And where I overlooked the directions to do so? It's got to be possible to do, right?)
    In case it matters, this document was originally created in Word years ago on a previous iMac and converted to Pages when I got rid of the MS for Mac suite.

    Assuming you want to update columns containing only blanks to null:
    update your_tab
       set your_col = null
    where regexp_like (your_col, '^ {1,}$')
    /

  • How do i set the background of the table( not of cell / row / column).

    How do i set the background of the table( not of cell / row / column).
    What happens when i load the applet the table is blank and displays the background color is gray which we want to be white.
    We tried using the setBackGround but it is not working maybe we are not using it properly. Any help would be gr8.
    Thanks in advance.

    I don't understand very well, but i guess that the background is gray when the table content's empty, isn't it?
    When the table model is empty, the JTable doesn't paint, so its container displays its background (often gray).
    In this case, what you must do is force the table to paint, even if the model is empty. So, you have to create your own table and override three methods :
    public class MyTable extends JTable
    //specify the preferred and minum size when empty
    myPreferredWidth = 200;
    myPreferredHeigth =200;
    myMinimunWidth = ...;
    myMinimunHeigth = ...;
    public Dimension getPreferredSize()
    if(getModel().getRowCount() < 1)
    return new Dimension(myPreferredWidth, myPreferredHeigth);
    else
    return super.getPreferredSize();
    public Dimension getMinimumSize()
    if( getModel().getRowCount() > 0)
    return new Dimension(myMinimunWidth, myMinimunHeigth);
    else
    return super.getMinimumSize();
    protected void paintComponent(Graphics g)
    if (getModel().getRowCount<1 && isOpaque()) { //paint background
    g.setColor(Color.white);
    g.fillRect(0, 0, getWidth(), getHeight());
    else super.paintComponent(g);
    }

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

  • Ignore blank cells and truly blank cells in named range?

    Ok so my named range looks like this:
    ='Product Group Attributes'!$F$2:$F$1048576
    However, I want to ignore the "" cells and the truly blank cells... However, I think all of them will have "" since I have this formula in all of the ones I'm putting in the range:
    =IF(ISBLANK(C2),"",CONCATENATE(B2," - ",C2))
    How do I go about getting these results into a named range so I can use it on validation since validation only seems to ignore truly blank cells and not the "" ones.

    Actually, the "" cells means truly blank cells.
    But the "Ignore blanks" in data validation does not mean it will remove blanks from the list. It basically means that a Blank will be allowed as a valid entry in the cell.
    If you want to get rid of blank cells in the list, you have to create another list that does not include the blanks.
    Use the VBA code below to copy data in column F to column G, meanwhile it will remove the blank cells.
    Sub test()
    Dim arr, i&
    arr = Range("F2:F" & Range("F1048576").End(xlUp).Row)
    For i = 1 To UBound(arr)
    If arr(i, 1) <> "" Then s = s + 1: arr(s, 1) = arr(i, 1)
    Next i
    Columns(7).NumberFormatLocal = "@"
    Range("G2").Resize(s, 1) = arr
    End Sub

Maybe you are looking for