简体   繁体   中英

Return Row when criteria from two columns is correct

Google Sheets: I need to return a row based on searches in two columns (each column has repeating data). Column A has a list of dates with duplicate dates. Column B has a list of names with repeating data. I need to return the row when I get a match from the date and name. This row is returning to another sheet in the same sheets document.

Please try:

=query(Sheet1!A:C,"select * where A=date '2015-01-01' and B='A' ")

where the date of interest is taken as Jan 1, 2015 the name of interest A and the assumption made that in addition to ColumnsA:B data you also want the corresponding ColumnC values.

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