Solved

SUMPRODUCT test for blank cells

Posted on 2011-02-28
2
281 Views
Last Modified: 2012-08-14
I've got a spreadsheet in which I need to count the number of names in C12:C309 where column E is not blank and column F does not have "DUP" in it.  I've created a sumproduct formula below:

=SUMPRODUCT(C12:C309<>"")*(E12:E309<>"")*(F12:F309<>"DUP")

This formula should work perfectly in theory, and in fact does do what I want on a "normal" spreadsheet with static values in columns C, E and F.  But in my "real" spreadsheet, the values in Columns C, E and F are pulling from another linked spreadsheet and only "appear" blank or empty through the use of an IF statement (=IF<linkfield>="","",<linkfield>). In other words, all rows 12 to 309 have an IF statement in them.

So somehow I need to have the SUMPRODUCT fn NOT count the row if the calculated value of each field is blank.  Makes sense?
0
Comment
Question by:witzph1
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 81

Accepted Solution

by:
zorvek (Kevin Jones) earned 500 total points
ID: 34999344
Missing some parens:

=SUMPRODUCT((C12:C309<>"")*(E12:E309<>"")*(F12:F309<>"DUP"))

Kevin
0
 

Author Comment

by:witzph1
ID: 34999388
Holy cow.  Pretty sad that I didn't catch that.  But thanks for you help.  That was an easy 500 points.  I guess it's 1 point for the parenthesis and 499 for knowing that it was the parenthesis.  
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
The viewer will learn how to use a discrete random variable to simulate the return on an investment over a period of years, create a Monte Carlo simulation using the discrete random variable, and create a graph to represent the possible returns over…
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question