Adding a second criterium to a filtered table in Excel - Stack Overflow

Using a helpful thread (Excel Filter Function - choose certain columns as output) to successfully creat

Using a helpful thread (Excel Filter Function - choose certain columns as output) to successfully create a filtered table using selected columns I now need to add a second criterium to the filtered table.

I went for this option as it suited my needs most:

=FILTER(CHOOSE({1,2},B1:B7,D1:D7),$K$1:$K$7=$K$1) 

I used a drop down field to determine "include" (so not a fixed value as per the above example). I now need to not just check the drop down but also exclude all lines which have a certain value in them ("C"). The column in question is both in the original array and in the filtered output table.

Background: The drop down selects the month I want to look at and I need to exclude all actions which are completed (i.e. have the letter "C" in that column).

Using a helpful thread (Excel Filter Function - choose certain columns as output) to successfully create a filtered table using selected columns I now need to add a second criterium to the filtered table.

I went for this option as it suited my needs most:

=FILTER(CHOOSE({1,2},B1:B7,D1:D7),$K$1:$K$7=$K$1) 

I used a drop down field to determine "include" (so not a fixed value as per the above example). I now need to not just check the drop down but also exclude all lines which have a certain value in them ("C"). The column in question is both in the original array and in the filtered output table.

Background: The drop down selects the month I want to look at and I need to exclude all actions which are completed (i.e. have the letter "C" in that column).

Share Improve this question edited Mar 24 at 14:50 Mayukh Bhattacharya 27.8k9 gold badges29 silver badges42 bronze badges asked Mar 24 at 14:41 DaniDani 234 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 3

As per the instruction on Microsoft's Webstie on the use of FILTER() you simply multiply the two booleans together:

=FILTER(CHOOSE({1,2},B1:B7,D1:D7),($K$1:$K$7=$K$1)*($C$1:$C$7 = "whatyouwant"))

Also, with HSTACK() we no longer need the CHOOSE():

=FILTER(HSTACK(B1:B7,D1:D7),($K$1:$K$7=$K$1)*($C$1:$C$7 = "whatyouwant"))

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744246282a4564947.html

相关推荐

  • Adding a second criterium to a filtered table in Excel - Stack Overflow

    Using a helpful thread (Excel Filter Function - choose certain columns as output) to successfully creat

    8天前
    10

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信