Solved

formula to return the unique entry in filtered list or "All" if a combo exists

Posted on 2014-04-29
2
145 Views
Last Modified: 2014-04-29
I need a formula that returns from text in column B "All" if visible rows under "Team" in col B contain more than 1 unique text value, or returns "1" if all visible rows contain only "1" or returns "2" when all visible rows only contain "2" ... all this as a result of having AutoFiltered on "Team", col B.  A sample file is attached.
Berry
count-visible-TorF.xlsx
0
Comment
Question by:Berry Metzger
2 Comments
 
LVL 21

Accepted Solution

by:
Ejgil Hedegaard earned 500 total points
ID: 40030842
This can do it

=IF(SUBTOTAL(9,$B$5:$B$206)=COUNTIF($B$5:$B$206,1),1,IF(SUBTOTAL(9,$B$5:$B$206)=COUNTIF($B$5:$B$206,2)*2,2,"All"))

Open in new window


Some of the values in column B was text, and some numbers.
I have converted the text to numbers.
count-visible-TorF.xlsx
0
 

Author Closing Comment

by:Berry Metzger
ID: 40031068
Your formula is what I need.  Thanks for your effort.
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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
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.
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 demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.

910 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

21 Experts available now in Live!

Get 1:1 Help Now