Headcount unique across 3 named ranges

1. Headcount unique across 3 named ranges

Hi,

Any help appreciated to edit the formula in AI7 highlighted in yellow so that the 3 named ranges (bfast, Lunch, Evening) provides the total unique text.

Basically this formula works well for 1 named range but I would like this to expand to all 3 areas as shown

More detailed information on the sample file.

Many thanks
Garry

2. Re: Headcount unique across 3 named ranges

Thinking outside the box(es) a little:

=SUMPRODUCT((G6:AE8<>"")/COUNTIF(G6:AE8,G6:AE8&""))-IF(N7=W7,1,2)

3. Re: Headcount unique across 3 named ranges

One way, using this array formula:

=SUM(IFERROR(1/(COUNTIF(bfast,bfast)+COUNTIF(Lunch,bfast)+COUNTIF(Evening,bfast)),0))
+SUM(IFERROR(1/(COUNTIF(Lunch,Lunch)+COUNTIF(bfast,Lunch)+COUNTIF(Evening,Lunch)),0))
+SUM(IFERROR(1/(COUNTIF(Evening,Evening)+COUNTIF(bfast,Evening)+COUNTIF(Lunch,Evening)),0))

Array Formulae are a little different from ordinary formulae in that they MUST be confirmed in the FIRST CELL ONLY by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. After that, the array can be dragged down as normal, to cover the desired range.

You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.

Don't type the curly brackets yourself - it won't work...

4. Re: Headcount unique across 3 named ranges

Hi,

Many thanks, and works well, great response and advice, love this forum.

Regards
Garry

5. Re: Headcount unique across 3 named ranges

Which did you choose, as a matter of interest?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1