简体   繁体   中英

Excel VLookup and List

I am trying to list all of the unique occurrences of one cell on a table and then list them.

TABLE 1

PLACES      WEEK
| Place 1 | Week 2 |
| Place 1 | Week 2 |
| Place 1 | Week 2 |
| Place 1 | Week 3 |
| Place 2 | Week 2 | 
| Place 2 | Week 3 |
| Place 3 | Week 2 |
| Place 4 | Week 3 |
| Place 4 | Week 3 |
| Place 4 | Week 3 |

So on another sheet I want a list of all Places that are in week 2 but I only want one occurrence of each. The result being from this that I would get.

| Place 1 |
| Place 2 |
| Place 3 |

but not place 4 on my list.

Is this possible with a formula.

Thanks,

If you ok with spaces this is the first thing to come to mind

=IF(AND(Sheet1!B1= 2,$A$1:A1 <>Sheet1!A1),Sheet1!A1, "")

When you enter it, enter as array (Ctrl + Shift + Enter), make sure you get "{}" Surrounding the formula then drag down. And make sure to start in the second row of the column.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM