Search values in Google Sheet and return the cell next to it

Hi all, I have searched this forum but I think my issue is too specific to find here so I am posting it.

I have raw data in a spreadsheet with headers. In & after column F, my headers are “Lesson Name” and “Completed Date”, and these repeat until column Z.

In row two, I have my data. For column F, the lesson name is “Welcome!”, column G is empty, column H is “Course Overview”, column I is empty, etc. I basically need a way to search the sheet for “Course Overview” and return either the column that is in, ie “H2” or the column next to it, ie, “I2”. How can I do this?? I have tried using the “Search Rows” but this only lets me search 1 specific column at a time. I have not had any luck using Queries either, but my knowledge of queries is limited. Any help you can provide would be amazing.

Welcome to the Make community!

If you’re using the Search Rows module, the result will contain all columns from the same row, which will also include columns H and I.

Output

Screenshot_2024-07-18_150755

If you need further assistance, please provide the following:

Link to spreadsheet

Please provide the public share link to the Google Sheet, or a screenshot of what you are referring to.

1. Screenshots of module fields and filters

Please share screenshots of relevant module fields and filters in question? It would really help other community members to see what you’re looking at.

You can upload images here using the Upload icon in the text editor:

2. Scenario blueprint

Please export the scenario blueprint file to allow others to view the mappings and settings. At the bottom of the scenario editor, you can click on the three dots to find the Export Blueprint menu item.

(Note: Exporting your scenario will not include private information or keys to your connections)

Uploading it here will look like this:

blueprint.json (12.3 KB)

3. And most importantly, Input/Output bundles

Please provide the input and output bundles of the trigger/iterator/aggregator modules by running the scenario (or get from the scenario History tab), then click the white speech bubble on the top-right of each module and select “Download input/output bundles”.

A.

Save each bundle contents in your text editor as a bundle.txt file, and upload it here into this discussion thread.

Uploading them here will look like this:

module-1-output-bundle.txt (12.3 KB)

B.

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles in this manner:

  • Either add three backticks ``` before and after the code, like this:

    ```
    input/output bundle content goes here
    ```

  • Or use the format code button in the editor:

Providing the input/output bundles will allow others to replicate what is going on in the scenario even if they do not use the external service.

Following these steps will allow others to assist you here. Thanks!

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!

1 Like

Hello, thank you for your reply. It is at this point that I need to filter through those results for another phrase and grab either the cell that its in, or the cell next to it on the right.

For example, I use the Search Rows for my user, Michael Scott. It returns the following:

I then need to search for “Course Overview”, which is in column L, and insert data (a timestamp) into the cell next to it in column M. This is where I am getting stuck as I don’t know how to perform a deeper search or filter properly to do this. Thank you for your help!!

Here is a screenshot of how my sheet is formatted. I am aiming to have a new student appear here on row 3, then search through that pre-populated course data on their row for which Lesson (or module) they completed and update the column next to it with a timestamp.

Assuming the Lesson Name values in columns F, H, J, L, N, P, R will have different values depending on course,

Since you know the Lesson Names are in those columns, you can do something like this:

In Column G field:

{{ if(1.F = "Course Overview"; now; emptystring) }}

In Column I field:

{{ if(1.H = "Course Overview"; now; emptystring) }}

etc.

samliewrequest private consultation

Join the Make Fans Discord server to chat with other makers!