Skip to main content
Answer

How do I copy formulas with relative references in Google Sheets when adding new rows?

  • May 4, 2024
  • 3 replies
  • 163 views

Forum|alt.badge.img

I have a google sheet that my zap is entering a row into when it runs.  The last column of the spreadsheet is doing a vlookup from another tab in the same spreadsheet to return a Yes or a No response in that column.  The last column is I and the formula looks like this for something that would be in Row 3 of the spreadsheet, looking up something from column A into worksheet named WAIVERS.

=if(isblank(A3),"",if(isna(vlookup(A3,WAIVERS!A:A,1,FALSE)),"No","Yes"))

If I were to prefill that formula it would be overwritten by the zap.  I could have the zap fill that formula in as part of the run if I could have it use a relative reference.  So when it gets to row 4 it would need to be A4, not A3.  Is there a way to pass that information to the zap?  If I could look up the next blank row I could fill that in, but I don’t see a way to do that.

Best answer by Troy Tessalone

Hi @Mountainears 

Help article to reference:

 

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.

3 replies

Troy Tessalone
Zapier Orchestrator & Solution Partner
Forum|alt.badge.img+14
  • Zapier Orchestrator & Solution Partner
  • Answer
  • May 4, 2024

Hi @Mountainears 

Help article to reference:

 


Forum|alt.badge.img
  • Author
  • Beginner
  • May 4, 2024

Once again @Troy Tessalone , you are the king of the solutions :-) 

I updated the formula to what is below and it’s working great.  Thanks.

 

=if(isblank(indirect("A" & row())),"",if(isna(vlookup(indirect("A" & row()),WAIVERS!A:A,1,FALSE)),"No","Yes"))


ken.a
Forum|alt.badge.img+6
  • Zapier Staff
  • May 6, 2024

That’s awesome @Mountainears! A huge thanks to Troy for pointing you in the right direction!

If you have any other questions, please don’t hesitate to reach out to the Community. We’re always happy to help! 🤗