Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
joshmd9909
 
Posts: n/a
Default 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   Report Post  
JR
 
Posts: n/a
Default

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:BG45 0)))

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   Report Post  
joshmd9909
 
Posts: n/a
Default

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:BG45 0)))

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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to delete blank cells across multiple columns? SamFunMail Excel Worksheet Functions 2 September 1st 05 07:05 AM
Condensing a list/range with blank cells to a new list/range without blanks KR Excel Worksheet Functions 4 July 5th 05 04:23 PM
write a function to determine if cells have names andrewm Excel Worksheet Functions 5 June 9th 05 07:28 PM
Non Blank - Blank Cells???? Reggie Excel Discussion (Misc queries) 3 January 12th 05 12:04 AM
Skipping Blank Or Null Cells In a Lookup Function Bill Johnson Excel Worksheet Functions 8 December 24th 04 01:06 AM


All times are GMT +1. The time now is 09:10 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"