Hi,
I need help counting cells if blank. I have two columns E and J . For example if E5 and J5 are both blank I want that to count as 1.
Appreciate the help.
Gibs
Hi,
I need help counting cells if blank. I have two columns E and J . For example if E5 and J5 are both blank I want that to count as 1.
Appreciate the help.
Gibs
This should work
Please Login or Register to view this content.
If I understand you right, I think you need something like this
Please Login or Register to view this content.
Using a helper column, put this formula into the cellFor example if E5 and J5 are both blank I want that to count as 1.
=AND(LEN(E5)=0,LEN(J5)=0)
This will return TRUE or FALSE
Count the TRUE values.
Palmetto
Do you know . . . ?
You can leave feedback and add to the reputation of all who contributed a helpful response to your solution by clicking the star icon located at the left in one of their post in this thread.
Thanks for the reply. But this formula does not work correctly.
Column E total not blank = 2308
Column J total not blank = 1911
Your formula gives a total not blank = 2605
The total has to be below 1911. As the not blank fields will not match exactly. One or the other column could be blank, therefore giving a lesser value than the lowest I have.
Thanks,
Gibs
Hi,
Thanks for the fast reply. I tried your formula but it appears to only check row 5 ?
I need to check from row 2 to 5,000.
Anyway it returns the value 0 (zero). Cells E5 and J5 are not blank. It should at least return 1 I would think. But the formula does not work.
Thanks,
Gibs
The formula I gave you will return TRUE only if both cells are in fact blank, which includes no invisible space characters.I need help counting cells if blank. I have two columns E and J . For example if E5 and J5 are both blank I want that to count as 1.
Perhaps you should provide a more clear explanation of your requirements. Do both cells on the same row need to be blank or just any cells in the columns.
Your information is contradicting..one minute you say count blanks, the next minute you say count non-blanks... you have done that more than once in this thread... wallgreen's formula counts when both are blank... change the
=SUMPRODUCT(--(E2:E5000=""),--(J2:J5000="")) this counts blanks
=SUMPRODUCT(--(E2:E5000<>""),--(J2:J5000<>"")) this counts non-blanks
Where there is a will there are many ways.
If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner
Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.
The more i read this the more confused i am.
Both formula should work.
It's more of a question of the result being the result that you actually want (i.e. count blanks or count non-blanks).
Please watch your tone - people are here to help you at no cost to yourself - have the courtesy to be polite.Originally Posted by gibs
Regards your point that the formulas didn't work and your title and subsequent:
note that the above does the complete opposite to the requirements inferred by both thread title and original post - ie it counts rows in which neither cell is blank.
On that basis, FWIW, you could also use:
Please Login or Register to view this content.
Last edited by DonkeyOte; 02-26-2010 at 04:55 AM.
My Recommended Reading:
Volatility
Sumproduct & Arrays
Pivot Intro
Email from XL - VBA & Outlook VBA
Function Dictionary & Function Translations
Dynamic Named Ranges
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks