Counting Strings from Google Sheet

Hey Guys,

I am currently having issues trying to count the amount of times a string is mentioned in an array of data.

I have a spreadsheet, and I am using a ‘Search Rows’ node to pull all rows that have the ‘Status’ column set to ‘Available’.

This then provides me an array with 5 rows of data. 3 of these rows are for a ‘Standard’ booking, and 2 of them are for a ‘VIP booking’.

What I need to figure out is how to then take this, and save how many 'Standard’s were collected as available, and how many 'VIP’s were collected as available as two separate variables to send back to a voiceflow workflow.

Most topics I found said to use an array aggregator to make this into an array, which is then somehow manipulated, but I can only find formulas that are able to count integers, not the amount of times either string (Standard or VIP) are retrieved.

Would anyone know how to finish this off?



1 Like

Welcome to the Make community!

An array aggregator is correct. You just need to expand the “Advanced Settings” and insert the variable for column D into the “Group by” field as well.

e.g.:

Then, you can get the length of each type.

To do this, you can use the built-in function length

{{ length(array) }}

Screenshot_2025-03-18_200320

For more information, the function’s documentation can be found in the Help Centre. You should also complete the tutorials in the Make Academy.

Hope this helps! Let me know if there are any further questions or issues.

@samliew

P.S.: Investing some effort into the Make Academy will save you lots of time and frustration using Make.

Hey!

Thanks for that, got me through to my next step which is webhook response. These aren’t saving as separate variables? I need to return both “Standard” and “VIP” separately. What have I done wrong?



Not sure if I’m missing something really simple or not, sorry if it is haha

1 Like

Hey,

I still can’t figure this one out days later if anyone has any ideas…

Would really appreciate

1 Like

You have not yet provided sufficient information to demonstrate the problem that would allow us to reproduce the scenario and any issue(s).

If you need further assistance, please provide the following:

1. Relevant Screenshots

Could you please share screenshots of your full scenario? Also include screenshots of any error messages, module settings (fields), relevant filter settings (conditions), and module output bundles. We need to see what you’re working with to give you the best advice.

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

We would appreciate it if you could upload screenshots here instead of linking to them outside of the forum. This allows us to zoom in on the image when clicked, and prevent tracking cookies from third-party websites.

2. Scenario Blueprint

Please export the scenario blueprint. Providing your scenario blueprint file will allow others to quickly recreate and see how you have set up the mappings in each module, and also allows us take screenshots or provide module exports of any solutions we have for you in return - this would greatly benefit you in implementing our suggestions as you can simply paste module exports back into your scenario editor!

To export your scenario blueprint, click the three dots at the bottom of the editor then choose ‘Export Blueprint’.

You can upload the file here by clicking on this button:

3. Output Bundles of Modules

Please provide the output bundles of each of the relevant modules by running the scenario (you can also get this without re-running your scenario from the History tab).

Click on the white speech bubbles on the top-right of each module and select “Download input/output bundles”.

A. Upload as a Text File

Save each bundle contents in a plain text editor (without formatting) as a bundle.txt file.

You can upload the file here by clicking on this button:

B. Insert as Formatted Code Block

If you are unable to upload files on this forum, alternatively you can paste the formatted bundles.
These are the two ways to format text so that it won’t be modified by the forum:

  • Method 1: Type code block manually

    Add three backticks ``` before and after the content/bundle, like this:

    ```
    content goes here
    ```

  • Method 2. Highlight and click the format button in the editor

Providing the input/output bundles will allow others to replicate what is going on in the scenario, especially if there are complex data structures (nested arrays and collections) or if external services are involved.

Sharing these details will make it easier for others to assist you.