import - Google Sheets: How do I IMPORTRANGE only if a corresponding cell in the same row is populated? -
import - Google Sheets: How do I IMPORTRANGE only if a corresponding cell in the same row is populated? -
i have 2 google spreadsheets. 3 columns on sec spreadsheet beingness imported through importrange() formula. looks this:
spreadsheet 1
╔════════╦════════╦════════╦════════╗ ║ title1 ║ title2 ║ title3 ║ title4 ║ ╠════════╬════════╬════════╬════════╣ ║ input1 ║ input4 ║ input7 ║ ║ ║ input2 ║ input5 ║ input8 ║ ║ ║ input3 ║ input6 ║ input9 ║ ║ ╚════════╩════════╩════════╩════════╝
spreadsheet 2
╔════════╦════════╦════════╗ ║ title1 ║ title2 ║ title3 ║ ╠════════╬════════╬════════╣ ║ input1 ║ input4 ║ input7 ║ ║ input2 ║ input5 ║ input8 ║ ║ input3 ║ input6 ║ input9 ║ ╚════════╩════════╩════════╝
the thing is, want info imported if corresponding cell in title4 column populated. this:
if spreadsheet 1 looks this
╔════════╦════════╦════════╦═════════╗ ║ title1 ║ title2 ║ title3 ║ title4 ║ ╠════════╬════════╬════════╬═════════╣ ║ input1 ║ input4 ║ input7 ║ ║ ║ input2 ║ input5 ║ input8 ║ input11 ║ ║ input3 ║ input6 ║ input9 ║ ║ ╚════════╩════════╩════════╩═════════╝
then spreadsheet 2 should this
╔════════╦════════╦════════╗ ║ title1 ║ title2 ║ title3 ║ ╠════════╬════════╬════════╣ ║ input2 ║ input5 ║ input8 ║ ╚════════╩════════╩════════╝
i figured out.
i used argument:
=if("sheet title 1!f1:f1000"<>"", importrange("spreadsheet key","sheet title 1!e1:e1000"), "")
so contents of column e in first sheet copied sec sheet if cell in same row in column f not empty.
import google-spreadsheet
Comments
Post a Comment