[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
Solved

# countif and sumif

Posted on 2014-02-10
Medium Priority
361 Views
Hi Expert's excel 2007

I have in cell d2 weekly!d6:d50 and in cell h2 =countif(indirect(d2),"")

the count if formula give an answer of 16. When the correct answer is 29..
what's wrong. .
0
Question by:route217
• 2
• 2

LVL 8

Expert Comment

ID: 39846947
0

Author Comment

ID: 39846959
Sorry cannot upload file from my location.
0

LVL 8

Assisted Solution

Naresh Patel earned 1000 total points
ID: 39846982
try this
``````=count(indirect(d2),"")
``````

Thanks
0

LVL 34

Accepted Solution

Rob Henson earned 1000 total points
ID: 39847095
The formula as is works, it will count the number of blanks in the defined range.

Are you sure that all 29 that you are expecting it to count are actually blank. The cells could contain just a space which makes the cell appear to the human eye as blank but Excel sees it as not blank.

Apply an Autofilter to the column and use the dropdown to select Blanks. Those that appear to be blank should show even if they contain just a space; foible of Excel, it counts space as not blank in formulae but shows it in a blank filter.

If the cells contains just an apostrophe excel will see this as blank in both cases, formula and filter.

You can then highlight the visible cells and press delete key. This will delete the spaces and other non-visible characters.

Thanks
Rob H
0

Author Closing Comment

ID: 39847191
Thanks for feedback.
0

## Featured Post

Question has a verified solution.

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

How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
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 …
###### Suggested Courses
Course of the Month20 days, 14 hours left to enroll