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
197 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
This code takes an Excel list of URL’s and adds a header titled “URL List”. It then searches through all URL’s in column “A”, looking for duplicates. When a duplicate is found, it is moved to the top of the list. The duplicate URL’s are then highlig…
The viewer will learn how to simulate a series of sales calls dependent on a single skill level and learn how to simulate a series of sales calls dependent on two skill levels. Simulating Independent Sales Calls: Enter .75 into cell C2 – “skill leve…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

861 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

25 Experts available now in Live!

Get 1:1 Help Now