Solved

Formula to return "1" or "2" (not "All") modified to allow a second column filter to be set

Posted on 2014-04-29
2
195 Views
Last Modified: 2014-04-30
An accepted solution to the formula (cell AC2) to return "1", "2", or "All" using filtered col B works as intended.  

However, adding a filter to col A causes the formula to revert to "All" even though only "1" is unfiltered ("2" is hidden).  

Can a fix be applied to the formula in AC2 to return "1" when col A has a filter set to show only "1" and specific rows have been selected in col A?   File attached.count-visible-TorF.xlsx
0
Comment
Question by:Berry Metzger
2 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 500 total points
ID: 40031439
Assuming you're not concerned with blanks, try this:

=IF(AND(SUBTOTAL(104,$B$5:$B$206)=1,SUBTOTAL(105,$B$5:$B$206)=1),1,IF(AND(SUBTOTAL(104,$B$5:$B$206)=2,SUBTOTAL(105,$B$5:$B$206)=2),2,"All"))

Regards,
Rory
0
 

Author Closing Comment

by:Berry Metzger
ID: 40031760
Perfect Rory!
Thank you, you've been a great help to me. And it works filtering out Blanks as well. Your formula solution completes the development of this project.  
Berry
0

Featured Post

Highfive Gives IT Their Time Back

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now