Retrieving previous row form a Google sheet

Hi,

I’m trying to set up a workflow in Make.com to process rows from a Google Sheet, but I need to skip the header row and retrieve the previous row’s data for each subsequent row. Here’s what I’m attempting to do:

  1. Use a Google Sheets - Search Rows module to find the previous row’s data.
  2. The sheet has a header row, so for the second row of data (row 3 in the sheet), I need to get row 2’s data, and so on.
  3. I’ve set up a variable ‘CurrentRowNumber’ to keep track of the current row being processed.
  4. I’m trying to use an if statement in the Search Rows module to handle this logic, but I’m encountering issues with the syntax and execution.
  5. I’ve also attempted to use a Router to separate the logic for the header row and subsequent rows, but I’m still facing challenges.

Can somebody provide a working solution to retrieve the previous row’s data for each row, while properly handling the header row and the second row of data (which should not have a ‘previous’ row to retrieve)?"

1 Like

Hi @Menno_van_der_Meulen

You can use get a range module to achieve this.

Best regards,

Msquare Automation
Gold Partner of Make
@Msquare_Automation