+ Reply to Thread
Results 1 to 3 of 3

[SOLVED] Sum Product Function- Blank Cells

  1. #1
    joshmd9909
    Guest

    [SOLVED] Sum Product Function- Blank Cells

    I am working with the sum production function & I can't figure out how to get
    the function to return a blank cell with no data is in the specified cell.

    Here is the function I'm using.

    SUMPRODUCT((A2:A450=A7)*(B1:BG1=B6)*(B2:BG450))

    Column A2- includes ID #'s, while row 1 includes dates. The data set
    (B2-B45) has some blank cells, & I want it to return a blank, & not a 0,
    however some cells have a 0, and I want the 0 to be returned.

    I feel I'm missing something really obvious. Any help would be greatly
    appreciated!

    Thanks,
    Josh

  2. #2
    JR
    Guest

    RE: Sum Product Function- Blank Cells

    If you want the formula to return a blank where it is returning a zero, try
    this...

    IF(SUMPRODUCT((A2:A450=A7)*(B1:BG1=B6)*(B2:BG450))=0,"
    ",SUMPRODUCT((A2:A450=A7)*(B1:BG1=B6)*(B2:BG450)))

    Basically, this says... if formula equal zero, then blank, otherwise formula.

    "joshmd9909" wrote:

    > I am working with the sum production function & I can't figure out how to get
    > the function to return a blank cell with no data is in the specified cell.
    >
    > Here is the function I'm using.
    >
    > SUMPRODUCT((A2:A450=A7)*(B1:BG1=B6)*(B2:BG450))
    >
    > Column A2- includes ID #'s, while row 1 includes dates. The data set
    > (B2-B45) has some blank cells, & I want it to return a blank, & not a 0,
    > however some cells have a 0, and I want the 0 to be returned.
    >
    > I feel I'm missing something really obvious. Any help would be greatly
    > appreciated!
    >
    > Thanks,
    > Josh


  3. #3
    joshmd9909
    Guest

    RE: Sum Product Function- Blank Cells

    JR,

    This will not return a value for cells that are blank which is great!!! But
    some cells have a value of 0 & I want the 0 returned. There are also some
    negative numbers. How could I got about doing this?

    Thanks very much for your help!!!

    Josh

    "JR" wrote:

    > If you want the formula to return a blank where it is returning a zero, try
    > this...
    >
    > IF(SUMPRODUCT((A2:A450=A7)*(B1:BG1=B6)*(B2:BG450))=0,"
    > ",SUMPRODUCT((A2:A450=A7)*(B1:BG1=B6)*(B2:BG450)))
    >
    > Basically, this says... if formula equal zero, then blank, otherwise formula.
    >
    > "joshmd9909" wrote:
    >
    > > I am working with the sum production function & I can't figure out how to get
    > > the function to return a blank cell with no data is in the specified cell.
    > >
    > > Here is the function I'm using.
    > >
    > > SUMPRODUCT((A2:A450=A7)*(B1:BG1=B6)*(B2:BG450))
    > >
    > > Column A2- includes ID #'s, while row 1 includes dates. The data set
    > > (B2-B45) has some blank cells, & I want it to return a blank, & not a 0,
    > > however some cells have a 0, and I want the 0 to be returned.
    > >
    > > I feel I'm missing something really obvious. Any help would be greatly
    > > appreciated!
    > >
    > > Thanks,
    > > Josh


+ 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