+ Reply to Thread
Results 1 to 5 of 5

Multiple cells and ignore empty cell

  1. #1
    Registered User
    Join Date
    01-01-2008
    Posts
    2

    Multiple cells and ignore empty cell

    Hi,

    is there a way to make a formula that multiplies 3 cells and ignores if one of the cells is empty?

    Here is a short example of the problem:

    =sum(a1*b1*c1) works, but if b1 is empty it returns 0, and that is how it should work, but I need to have it so that if one of those cells is empty, it ignores it and multiplies those only that have a value?

    Thanks,

    -F

  2. #2
    Registered User
    Join Date
    01-01-2008
    Posts
    16

    try sumif

    Maybe the SUMIF function will work for you.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678
    This array formula (confirmed with Ctrl+Shift+Enter instead of Enter) returns 0 if all cells are blank, otherwise the product treating blanks as 1:

    =PRODUCT(IF(A1:A3<>0, A1:A3))

    Or, if you want all blanks to return 1, then this array formula:

    =PRODUCT( (A1:A3 = 0) + A1:A3)

  4. #4
    Forum Expert
    Join Date
    12-24-2007
    Location
    Alsace - France
    MS-Off Ver
    MS 365 Office Suite
    Posts
    5,066

    Multiple cells and ignore empty cell

    Try something like that:
    =IF(A1=0,1,A1)*IF(B1=0,1,B1)*IF(C1=0,1,C1)

  5. #5
    Registered User
    Join Date
    01-01-2008
    Posts
    2
    Thanks all for your help. Solved the problem with PCI's suggestion.


    -F

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1