Copying data from cells in column A to C on Google sheets

Viewed 39
2 Answers

Use MAP to get each value, IFS to check if empty and return appropriate values:

=MAP(A2:A15,B2:B15,LAMBDA(a,b,IFS(a<>"",a,b<>"",b,true,"Nil")))

Advantage: You only need to enter the range once.

try:

=INDEX(IF(A2:A10="", IF(B2:B10="", "Nil", B2:B10), A2:A10))

enter image description here

advantage: it's simple

Related