1
=ArrayFormula({"Test"; query(value(CTA!C2:C)*0.8)})

How would I exclude the rest of the 0's in empty cells?

enter image description here

player0
  • 124,011
  • 12
  • 67
  • 124
cpaone
  • 145
  • 9

2 Answers2

2

try:

=ARRAYFORMULA({"Test"; IFERROR(1/(1/(VALUE(CTA!C2:C)*0.8)))})

or:

=ARRAYFORMULA({"Test"; QUERY(VALUE(CTA!C2:C)*0.8; "where Col1 <> 0"; )})
player0
  • 124,011
  • 12
  • 67
  • 124
1

Use INDEX+COUNTA to constrain the input:

=ARRAYFORMULA({Test;CTA!C2:INDEX(CTA!C:C,COUNTA(CTA!C:C))*0.8})
TheMaster
  • 45,448
  • 6
  • 62
  • 85