#1
|
|||
|
|||
Help with Subtotal(103, ) formula and blank cells
A B
1 0 =A1, which is blank 2 0 =A2, which is blank 3 0 =A3, which is blank 4 P P =A4 4 =subtotal(103, B1: B4) In the above, cells B1 to B4 are referenced to blank cells A1 to A4, respectively. However, instead of displaying 'blank' in B1 to B3, they display '0'. Because of that, the function 'Subtotal(103,B1:B4)', which counts B1 to B4, returns 4, instead of 1. I tried going to Options/Advanced and unchecked 'show a zero in cells that have zero value', which makes cell B1 to B3 blank, but the 'Subtotal(103,B1:B4)' still returns 4. I want that formula to return 1, not counting the blank cells. Is there a way to do that? |
#2
|
|||
|
|||
Hi
3 options: 1. Refer your formula to column A =SUBTOTAL(103,A1:A4) 2. That's only possible if cells in column A are either empty or contain text, then you can count twice and substract results of numbers form the total: =SUBTOTAL(103,B1:B4)-SUBTOTAL(102,B1:B4) 3. Modify your formulas in column B to =IF(A1="",#N/A,A1) (copying to the end of your list) Now you can use =AGGREGATE(3,3,B1:B4) to count. |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Formula to hide '0' from blank referenced cells | formuladummy | Excel | 3 | 05-08-2014 02:33 AM |
Join cells together separated by ; when some are blank | leemoreau | Excel | 3 | 11-03-2013 11:22 AM |
Selecting blank cells in criteria | apolloman | Excel | 6 | 08-24-2011 05:38 AM |
Each subtotal signature require only at last page for each subtotal. | aligahk06 | Excel | 0 | 05-07-2010 11:07 PM |
Using both drop down lists and blank cells for text | voltarei | Word | 0 | 03-18-2010 04:16 AM |