Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 07-30-2014, 01:59 PM
zhl203 zhl203 is offline Help with Subtotal(103, ) formula and blank cells Windows 7 64bit Help with Subtotal(103, ) formula and blank cells Office 2010 64bit
Novice
Help with Subtotal(103, ) formula and blank cells
 
Join Date: Jan 2014
Location: U.S.A.
Posts: 1
zhl203 is on a distinguished road
Default 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?
Reply With Quote
  #2  
Old 07-30-2014, 03:40 PM
whatsup whatsup is offline Help with Subtotal(103, ) formula and blank cells Windows 7 64bit Help with Subtotal(103, ) formula and blank cells Office 2010 32bit
Competent Performer
 
Join Date: May 2014
Posts: 137
whatsup will become famous soon enough
Default

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.
Reply With Quote
Reply



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
Help with Subtotal(103, ) formula and blank cells 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

Other Forums: Access Forums

All times are GMT -7. The time now is 08:55 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft