0

I have this function that reference a specific cell

  =filter( 
  { 
    Data!E2:E, 
    "https://docs.google.com/spreadsheets/d/id/edit#gid=123&range=E" 
    & 
    row(Data!E2:E) 
  }, 
  Data!C2:C = "fragment"
)

or

=filter( 
  { 
    Data!E2:E, 
    HYPERLINK("https://docs.google.com/spreadsheets/d/id/edit#gid=123&range=E"edit#gid=123&range=A" 
    & 
    row(Data!E2A2:E$A), Data!A2:$A) 
  }, 
  DataRoutes!C2:C$C = "fragment" 
)

I wonder how would you change that to reference the whole row or multiple cells?

3

1 Answer 1

1

To refer to a whole row, use a reference like 42:42. Here's a formula to get those references as URLs:

=filter( 
  { 
    Data!E2:E, 
    "https://docs.google.com/spreadsheets/d/id/edit#gid=123&range=" 
    & 
    row(Data!E2:E) & ":" & row(Data!E2:E) 
  }, 
  Data!C2:C = "fragment"
)

To get nicer links, use hyperlink(), like this:

=filter( 
  hyperlink( 
    "https://docs.google.com/spreadsheets/d/id/edit#gid=123&range=" 
    & 
    row(Data!A2:A) & ":" & row(Data!A2:A), 
    Data!A2:A 
  ), 
  Data!C2:C = "fragment"
)
1
  • sorry originally I placed a wrong formula, just updated Commented Oct 12, 2022 at 6:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.