• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 559
  • Last Modified:

Build a short list based on criteria applied to long list

Experts, ok so  I have a partial list of products in Col A (result set).
There are many duplicate products in the result set (which is ok)

In Col B I have a master list of all products (no duplicates here).

In Col C I have a formula that counts how many times each of the products in the complete list appears in the result set.

Now I want to build a unduplicated short list of just those products from the master list that occur one or more times in Col A.

In SQL no problem, I would just select distinct Col A from Worksheet

Or I would Select Col B  from Worksheet where Col C > 0  

How do I achieve the same results using a formula in Excel (without any sql)?

Thanks in advance.
  • 2
  • 2
1 Solution
You can build your list with an array-entered formula like:
This formula will return an empty string (looks like a blank) once the list of unique values in both lists is exhausted.

To array-enter a formula:
1)  Select the cell
2)  Click in the formula bar
3)  Hold the Control and Shift keys down, then hit Enter
4)  Release all three keys
Excel should respond by adding curly braces { } surrounding your formula. If you don't see them, repeat steps 1 through 4

Note: although the range references may extend beyond your data, array formulas like this one will take a long time to calculate if you use entire columns.
If you have Excel 2010 or later, you can use the AGGREGATE function in a formula that doesn't need to be array-entered:
Naresh PatelTraderCommented:
what if ? if list Column A is master & Column B is common list  & want to find values in column C which is not in B but it is in A? list view?

Naresh PatelTraderCommented:
if you go ahead  better read this  - I had use this formula

Open in new window

but is not like list view. & this is not my question, some asked & I solved but he wants in list view & I cant .....so if you feel so pls provide me ....
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now