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
203 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

Question has a verified solution.

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

Freeze panes is an option within all variants of Excel to enable parts of a sheet to remain stationary when the cursor is in another part of the sheet. This is a very useful feature which is overlooked or under used.
You need to know the location of the Office templates folder, so that when you create new templates, they are saved to that location, and thus are available for selection when creating new documents.  The steps to find the Templates folder path are …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

696 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