Check out example codes for "google sheets filter rows above current cell". It will help you in understanding the concepts better.

Code Example 1

-- Google Sheets: Filter rows above current cell
  indirect("R2C3:R" & row()-1 & "C3", false),
  indirect("R2C3:R" & row()-1 & "C3", false) = "Search Word"
-- Note: Use must use R1C1 notation, not the A1 notation

Learn ReactJs, React Native from