# Google Sheets Code

**URL:** <https://community.make.com/t/google-sheets-code/88429>\
**Category:** Questions\
**Tags:** google-sheets, functions\
**Created:** [July 30, 2025, 5:10pm UTC](https://community.make.com/t/google-sheets-code/88429 "2025-07-30T17:10:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![StarAutomations](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@StarAutomations](https://community.make.com/u/StarAutomations)\
**Post date:** [July 30, 2025, 5:10pm UTC](https://community.make.com/t/google-sheets-code/88429/1 "2025-07-30T17:10:36Z")

</div>

So in my Google sheet I have a column that says “Last Updated” and in the rows under it, it has the formatted date (yyyy-dd-mm). I want to search for rows that only contains dates that are within the last 7 days, how do I do that?

---

<div class="post-metadata">

**Author:** ![Umer\_Jamil](https://avatars.discourse-cdn.com/v4/letter/u/76d3ee/32.png) [@Umer\_Jamil](https://community.make.com/u/Umer_Jamil)\
**Post date:** [July 30, 2025, 8:13pm UTC](https://community.make.com/t/google-sheets-code/88429/3 "2025-07-30T20:13:09Z")

</div>

In search rows module of google sheets, apply following filter.

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/c/1cda474bb0ce9aaac9ecdfc86081e71e3c0f61e6.png)

---

<div class="post-metadata">

**Author:** ![Rebecca\_Katz](https://avatars.discourse-cdn.com/v4/letter/r/f04885/32.png) [@Rebecca\_Katz](https://community.make.com/u/Rebecca_Katz)\
**Post date:** [July 30, 2025, 8:53pm UTC](https://community.make.com/t/google-sheets-code/88429/4 "2025-07-30T20:53:40Z")

</div>

I think this would work for you:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/3/6/36c2c5b20a873218edba54803f077720c1c42f98.png)

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)\
**Post date:** [July 31, 2025, 7:00am UTC](https://community.make.com/t/google-sheets-code/88429/5 "2025-07-31T07:00:17Z")

</div>

Hi @StarAutomations

The filter @Rebecca_Katz specified would work only if its a Date column.

**Best regards,**  
**Msquare Automation**  
_Platinum Partner of Make_  
@Msquare_Automation

---

<div class="post-metadata">

**Author:** ![Msquare\_Automation](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/msquare_automation/32/6634_2.png) [@Msquare\_Automation](https://community.make.com/u/Msquare_Automation)\
**Post date:** [July 31, 2025, 7:18am UTC](https://community.make.com/t/google-sheets-code/88429/6 "2025-07-31T07:18:20Z")

</div>

Hi @Umer_Jamil  
If the values are returned as text then you will have to search rows without any filter and then add a filter outside the module as follow:

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/make/original/3X/1/c/1c9f5cfe63f5e83121472e0d57eb77d1c1ca7a52.png)  
**Best regards,**  
**Msquare Automation**  
_Platinum Partner of Make_  
@Msquare_Automation

---

<div class="post-metadata">

**Author:** ![Make\_Bot](https://dub1.discourse-cdn.com/flex013/user_avatar/community.make.com/make_bot/32/14661_2.png) [@Make\_Bot](https://community.make.com/u/Make_Bot)\
**Post date:** [October 29, 2025, 8:27am UTC](https://community.make.com/t/google-sheets-code/88429/7 "2025-10-29T08:27:10Z")

</div>

This topic was automatically closed because it's resolved or inactive. Please, start a new topic.


