简体   繁体   中英

apply indirect arrayformula to the entire column in gsheet

I get address of non-null cells from the formula below.

=arrayformula(if(A2:A="","",ArrayFormula(address(1,(mmult(isnumber(find("",A2:O99999))*1,sign(row(1:15))))))))

And I want values at the address I get from the formula. What should I add to the formula to get those values?

I want to insert the formula to "laststatus"

id laststatus ... statusA statusB statusC
A statusC ... done done done
B statusA ... done
C statusB ... done done
D statusC ... done done done

Thanks.

You can use this formula:

=ARRAYFORMULA(REGEXEXTRACT(TRANSPOSE(QUERY(TRANSPOSE("|"&IF(C2:E5="done",$C$1:$E$1, "")),,COLUMNS(C2:E5))),"([^|]*)[|\s]*$"))

Output:

输出

Reference:

use:

=INDEX(REGEXEXTRACT(FLATTEN(QUERY(TRANSPOSE("×"&
 IF(D2:F="done", D1:F1, )),,9^9)),"([^×]*)[×\s]*$"))

在此处输入图像描述

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