Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2014-04-29
2
Medium Priority
?
155 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 23

Accepted Solution

by:
Ejgil Hedegaard earned 2000 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article describes how you can use Custom Document Properties to store settings and other information in your workbook so that they will be available the next time you open the workbook.
If you need to forecast numbers -- typically for finance -- the Windows and Mac versions of Excel 2016 have a basket of tools to get the job done.
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 Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

877 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