简体   繁体   中英

Copy rows into another sheet only if the cells1 contains "x" and cell2 contains "y"

i need your help

I have a spreadsheet data with columns

Country, Tel, Priority, Days, name

I would like to have the rows only with Priority "high" and Days ≥ 0 copied as result on another sheet.

Any idea how can i do that?

2 Questions:

  1. Can i do this without VBA codes? i mean only with Vlookup, Query ect functions?

  2. If not how can i use the VBA code in spreadsheet as buttons in excel?

Thank you for your help!

Following is the Screenshot of sheet "Data Sheet":

在此处输入图片说明


Following is the Screenshot of sheet "Output":

在此处输入图片说明


I have the following formula in cell A2 of sheet "Output":

=filter('Data Sheet'!A:E,'Data Sheet'!C:C="high",'Data Sheet'!D:D>=0)

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