Product of empty cell

This seems too be so basic but i can't see how to solve it.
If have a formula such as =PRODUCT(B4,2) and cell B4 is empty I would expect the answer to be displayed as "0" but instead I get "2"!
What I am I doing wrong?

You are right.
The help claims:
PRODUCT
+The PRODUCT function calculates the product of the numbers in the arguments.+
+PRODUCT(number, [number, . . .])+
+number: One or more numbers or numeric expressions, or references to cells containing numbers or numeric expressions.+
Notes
+_Empty cells in a range are ignored and do not affect the result._+
I feel that this is surprising but as the function behaves as it is described, it's a feature not a bug.
No problem, I will post an addition to my report. More than 50 other ones are always alive
Yvan KOENIG (from FRANCE mercredi 20 août 2008 20:59:04)

Similar Messages

  • Theme 20: Empty cells

    See the Top 10 Products reports on http://apex.oracle.com/pls/otn/f?p=580:3
    Test is a column containing a single space. The report template is Stanard.
    In FF, this renders fine but in IE 6 (sigh), the empty cells in that column don't get a border. http://screencast.com/t/o2Cf2ofah
    Any idea why? What CSS magic do I need to take care of this?
    Thanks

    Theme 20 is using the [empty-cells CSS property|http://reference.sitepoint.com/css/empty-cells] to show cells that the browser considers to have no visible content—in this case normal spaces are treated as invisible. Neither IE6 nor IE7 support this CSS property.
    There are 2 possible workarounds: generate a * * non-breaking space entity for the content; or apply the collapsing borders model to the table using a [*border-collapse: collapse;*|http://reference.sitepoint.com/css/border-collapse] rule.
    The real fix for this is to tell anyone asking for IE6 support that it'll take an additional 2 weeks to develop and test! ;-)

  • How to get an empty cell when SUM cells are empty?

    When doing a SUM, I want the result to be blank if there are no numbers yet. In Excel, if you have =SUM(A6:A30) with empty cells, the result is an empty cell.
    In Numbers, it's a zero.
    I know you can use =IF(SUM(A6:A30)>0,SUM(A6:A30),"") to put an empty string in the cell if there's nothing to add, but this doesn't work for negative numbers.
    I tried =SUMIF(A6:A30,"count(A6:A30)>0") and it puts a zero there even if all the cells are blank, and I don't think it's correct anyway.
    =IF(SUM(A6:A30)>0,SUM(A6:A30),(IF(SUM(A6:A30)<0,SUM(A6:A30),"")))
    works, but it seems rather cumbersome.
    Is there a better way?
    Ideas?

    Terrell Smith wrote:
    =IF(SUM(A6:A30)>0,SUM(A6:A30),(IF(SUM(A6:A30)<0,SUM(A6:A30),"")))
    works, but it seems rather cumbersome.
    </div>
    Hello
    The best way I found to solve your problem is:
    =IF(COUNT(A6:A30),SUM(A6:A30),"")
    Which reads:
    if at least one cell of the range (A6:A30) contains a numeric value returns SUM(A6:A30)
    else
    returns a blank cell.
    Of course, if the sum is nil the displayed [thanks you Barry ;-)] value will be a zero.
    Maybe it's what schubladenschrank was offering but I don't read Deutsch.
    Just for info, your formula may be shorten as:
    =IF(SUM(A6:A30)=0,"",SUM(A6:A30))
    Yvan KOENIG (from FRANCE samedi 2 février 2008 13:55:43)

  • How can I add a character globally to empty cells in an InDesign table?

    I have a document with 190 tables, each with many empty cells. Client now wants m-dashes in the empty cells. Is it possible to do this in an automated fashion, without having to go cell-by-cell?

    Hi Jarek,
    Unfortunately I'm still getting the same "no tables found in the active document" message after modifying it the way you instructed.
    Here's my current code. Hopefully you'll be able to detect my problem. I greatly apologize for my ineptitude in javascript
    try 
    var myCells = app.app.selection[0].cells.everyItem().getElements(); 
    alert("myCells:" + myCells.length) 
    for(i=0; i<myCells.length; i++) 
        if(myCells[i].contents == "") 
            myCells[i].contents = "N/A" 
    catch(myError) 
        alert("no tables found in the active document") 

  • Dimension member values not showing (just empty cells)

    Hi,
    I have an organization dimension (Business > Business Unit> Department > Account) and a single fact (Dollars) on my test repository. When I add my fact and any dimension level to an answers report I can see for example two empty cells for each member at the "Business" level and the result of my fact calculation. I've tried many ways to attempt solving this issue from aggregating my data to compressing all the dimension in a single table and still haven't had success. I also turned on logging and found out that the physical layer SQL being generated returns the correct values when I run it in my query tool.
    Has anyone experienced similar behavior? I'm not sure if I skipped a step on my modeling or this is a bug in my OBIEE installation
    Thanks a lot!!
    -Ignacio

    Had this problem when source datatype was nvarchar and the field was coming over as varchar with a length of 0 in the physical layer. Check your physical table definitiion to see the length of the fields that are empty for you, may have to change it to an appropriate value

  • 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

  • How to disply empty cell from a string using stringtokenizer class

    Hello All
    I had wriiten a small program to read the string and split the string into different tuples.When i had empty cell in string i am unable to display it. Can any body help me out pls?
    code given below
    import java.io.*;
    import java.util.StringTokenizer;
    class Tokenize {
    // Create BufferedReader class instance
    static InputStreamReader input = new InputStreamReader(System.in);
    static BufferedReader keyboardInput = new BufferedReader(input);
    static String record;
    /* Main method */
    public static void main(String[] args) throws IOException {
         //declare the string variables
         String text,delim,var,delimv,vname;
         String X = "x";
         int i = 1;
         //read the inputs from keyboard for variables and delimv
         System.out.print("What is your variable names? ");
    var = keyboardInput.readLine();
    System.out.println("variable are :" + var );
         System.out.print("What is your separator? ");
         delimv = keyboardInput.readLine();
         //read the inputs from keyboard for string and delim
    System.out.print("What is your String? ");
    text = keyboardInput.readLine();
    System.out.println("String is :" + text );
         System.out.print("What is your separator? ");
         delim = keyboardInput.readLine();
         //create the stringtokenizer class instance
         StringTokenizer vt = new StringTokenizer(var,delimv);
         StringTokenizer st = new StringTokenizer(text,delim);
         //print the nexttokens as long as tokens and variables are available
         while (vt.hasMoreTokens()) {
         while (st.hasMoreTokens()) {
         vname = vt.nextToken();
         //     if(st.nextElement() == X){
         // System.out.println("filed is empty");
         // System.out.println(vname + "= ");
         System.out.println(vname + "=" + st.nextToken());
                   //nextToken());
    Variables name : cat1,cat2,cat3,cat4,cat5,cat6,cat7,cat8,cat9,cat10,cat11
    String name : Produkten;Voor hem;;Funny Mask ;12.50;4.90;17.40;1-5 dagen;0;http://www.eroticastore.nl/ProductDetails.asp?ProductId=21733&ReferrerId=134;http://www.eroticastore.nl/ProductImages/thumb_3300000510.jpg
    Note : Empty cell is in between "Voor hem" and "Funny Mask"
    Thanks In advance,
    Murali

    When you post code, please use [code] and [/code] tags as described in Formatting Help on the message entry page. It makes it much easier to read.

  • How important spacer.gif within table empty cell?

    I've always used a spacer image (or  ) within an empty cell over the years to keep consistency between browsers, and that it was recommended. Has anyone seen any stats on this in recent times? I'm curious which recent versions of browsers still have problems with this and if it's still that important to do so.
    One reason I ask is I'm needing several 1px height black table cells and it'd be nice if I didn't have to keep putting a 1x1 spacer within each empty cell. With my tests, I've check with several most recent browsers and they all render an empty black 1px height cell the same.
    Thanks.

    I don't know what kind of look your going for, but i wonder if you could achieve the same effect by using CSS to put a 1 pixel black border on something.
    I've found that with IE6 something needs to be in a cell for it to be affected by css. For example, if i use css to place a black border around all table cells IE6 won't apply the border to empty cells. Instead of putting a spacer image in the cell i use a non-blanking space ";nbsp".

  • Empty-cells:show CSS style is not work

    this is some visual glitch. empty cells of tables not showed as default. And css attribute empty-cells:show not works.

    Hey there, It is better if you provide a link.
    We need to see how you are calling it. The stylesheet you think is being called may not be etc.

  • Globally adding content to empty cells in InDesign Tables

    I have a file with 190 tables, all with a number of empty cells. The client has decided that these cells need to contain an m-dash. Is there a way to globally add this m-dash to all empty cells, to avoid having to go cell by cell?

    I think that would have to be scripted.
    Perhaps check out the Scripting forum - but sometimes those clever scripters are lurking here too

  • BSP HTMLB TABLE - BORDERS FOR EMPTY CELLS

    Hello Colleagues, I'm new to BSP HTMLB, maybe someone could help me.
    I’m taking data from a DB table through select and there are a lot empty cells.
    The layout looks like:
    <htmlb:tableViewColumn columnName="PK_Terms"
    <%--wrapping="true"--%>
    width="50"
    horizontalAlignment = "center"
    verticalAlignment = "middle"
    fixedColumn="true">
    </htmlb:tableViewColumn>
    THE BORDER does not APPEAR in empty cells (the table looks horrible), how can I make it appear?

    Hi,
    If the cell is initial pass the   then it will shows the border like when the data is not initial.
    i have got this in my requirement.
    if it is not shows the any cell pass <border=1>
    Regards,
    Sri..

  • How to resolve merge empty cells JS error

    Hi Scripters
    I am new to scripting and now looking into it.
    I am trying to write a table script for that, I found one merge empty cells JS from Jongware GfBROo
    table = app.selection[0];
    if (!(table instanceof Table)) table = table.parent;
    if (table instanceof Cell) table = table.parent;
    if (table instanceof Table)
         for (r=0; r<table.rows.length; r++)
              c = 0;
              while (c < table.rows[r].cells.length)
                   while (c < table.rows[r].cells.length &&
                        table.rows[r].cells[c].contents.length > 0)
                        c++;
                   while (c < table.rows[r].cells.length &&
                        table.rows[r].cells[c].contents.length == 0)
                        table.rows[r].cells[c].merge (table.rows[r].cells[c-1]);
    Even though for almost tables it's working like charm but in some of the cases it's falling me in trouble by showing this error "Object is Invalid" at bold face line.
    Though I can guess some problem wolud be with those tables but I am not able to catch it.
    Could any one any way suggest me to resolve this error.

    Thanks for reply Loic_aigon
    As Marc suggested in discussion, I used
    myTable.rows[r].cells[c].characters.everyItem().contents.length > 0
    But above syntex falls script to infinite loop.
    any other help will be appreciated.

  • Dreamweaver Developer Toolbox - Show border on empty cell using Horizontal Looper Wizzard

    Hello,
    I just applied a horizontal looper, 3 columns, unlimited
    rows. Works nice. One question however. On the last row, my
    recordset does not have data for 3 columns, thus, the 2 cells on
    the right is empty, as it should be. But my table has a border, and
    because there is no data in the cells, including a " ",
    there is no border on that cell. Cosmetically is looks like a
    problem, even though all else is correct.
    How can I get a border on that last 2 empty cell, bottom
    right? I tried adding a "&nbsp" before almost all the
    "</td>", but still could not get the border on that empty
    cell.
    I'm using ASP VB Script
    Regards
    Rune

    Reinstall ADDT was the key I was able to finish the tutorial
    still having problems but all can wait

  • Empty cells will be filled when you press ENTER

    Hello Experts,
    how can you do the following
    I type in a particular cell any number (3 or 4 or 8 etc.) and all the
    empty cells in the ALV should be filled witt the enterd number when I press ENTER
    Is somewhere a tutorial or an example ?
    Regards
    Sas

    first read the value ... then loop at screen .  ,, then give the all fields value equal to that value .... then change screen ..

  • Table View : display:none leaves a empty cell

    Hi Experts,
    There is a requirement to display a report in a normal table view but print the other view ( sectioned table view).
    I have created two views in teh same request and in teh second view i have used the display:none css code in the Data section , Folder Heading and Column Heading of evey column being used in this report.
    But i see some grey empty cells and since its a sectioned table view these empty cells are increasing.
    Can you please help me on how to hide this empty cells from getting displayed in the Dashboard
    Regards
    Veena A

    Hi,
    Refer
    OBIEE Changing unchangeable cells
    http://obiee101.blogspot.in/2010/02/obiee-changing-unchangeable-cells.html
    Award points if this helped to help others with similar issues.
    Regards
    MuRam

Maybe you are looking for

  • What connection options do I have in transfer of data from my macbook pro 13" to my iMac

    What connection options do I have in transfer of data from my MacBook Pro 13" to my iMac?

  • Spry Horizontal Menu is Vertical

    I installed a Spry Horizontal Menu Bar on one of my clients web pages and everything was going fine. But then all of a sudden the horizontal menu switched to vertical and I can't figure out how to undo this. At this point even when I ask DW to insert

  • Offline Approval Process

    Hi Gurus, We have implemented SAP SRM 7.0. Our Offline Approval Process is working smoothly. We have a requirement wherein the client would like to know: How many SCs have been approved by Offline Approval Process. Is there a way to find this out? No

  • Event shows wrong content in preview

    When I run the cursor over the events in iPhoto the preview shows completely different photo's than the actual content (the photo's which are in the event folder when you open it). How can I solve this problem?

  • My servlet is not being called!

    Hi, I have a servlet( CurveConfigParams ) that sits in this directory on a UNIX box... /webapps/priceEngineReport/WEB-INF/classes I have a JSP page ( main.jsp ) that sits in this directory /webapps/priceEngineReport/jsp/curveSource I need to call the