Skip to main content
Best answer

Get Spreadsheet rows that are greater than or equal to a given value

  • January 4, 2024
  • 2 replies
  • 288 views

Forum|alt.badge.img

I have a Google Sheets sheet with a Date column which contains datetime values in UTC. I’d like to have my zap get rows from that sheet only if they have a date from the last seven days.

I’ve been trying to use Lookup Spreadsheet Rows, but it seems like Lookup Value only accepts a single value, not a calculation. What I’d like is to do a calculation (“>= current datetime in UTC - 7 days”) and only get rows that match that criterion.

I’ve seen recommendations to add another column to my spreadsheet that returns TRUE if the Date value is greater than or equal to the current time minus 7 days, but I’d like to avoid having more filler columns. Is it possible to do this with Zapier?

Best answer by Troy Tessalone

Hi @bookleaf 

Good question.

If using GSheets for that type of query you’d likely have to use an advanced approach with the GSheets API: https://developers.google.com/sheets/api/guides/concepts

 

You can try creating a custom action with the help of AI.

 

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

2 replies

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

Hi @bookleaf 

Good question.

If using GSheets for that type of query you’d likely have to use an advanced approach with the GSheets API: https://developers.google.com/sheets/api/guides/concepts

 

You can try creating a custom action with the help of AI.

 


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

@bookleaf 

A different approach would be to use Airtable instead of GSheets.

Airtable has Views which can have Filters to limit matching records.

Airtable has a Find Many Records (10 max) that supports a Search Formula.

 

Airtable also has the option for creating a custom action with the help of AI.