Solved

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

Posted on 2014-04-29
2
149 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
[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 22

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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Introduction This Article briefly covers methods of calculating the NPV and IRR variants in Excel as well as the limitations in calculating and interpreting IRR results. Paraphrasing Richard Shockley, author of my favourite finance reference tex…
How to get Spreadsheet Compare 2016 working with the 64 bit version of Office 2016
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.

734 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