Select Nth rows for Chart Data Range - google-sheets

I'm trying to generate a chart in Google Sheets that will show data for specific days in a week (a chart for Monday, Tuesday, etc.) I have sequential dates running in a single column down the rows and I am able to chart the other data associated with these dates from the other columns, however, I can't seem to select the data for every Nth row, only for all rows.
The only solution I could come up with is manually adding a new Series for every instance, but this isn't a viable solution.
To simplify, I have a chart showing trends throughout the entirety of my dataset, but I'd like to have charts for days of the week as well (SUN - SAT). Is there a way to do this inside of Google Sheets, or is there an external tool that will be necessary?

Its very possible.
It would be easier if you could share a sample sheet with some data.
This is the basic idea, say your Dates are in A and your data is in B. This formula:
=FILTER(A2:B,WEEKDAY(A2:A)=1) would show ONLY sunday data, =FILTER(A2:B,WEEKDAY(A2:A)=2) would show ONLY monday data,
etc.

From what I understand, you want the charts to grab data continuously as you add data to the sheet.
I think it's time to introduce you to Google Charts API.
There are two approaches I can foresee of the top of my head:
Use an Apps Script to build your chart with the Charts service and the Spreadsheets Service and embed it into the spreadsheet.
OR
Deploy the script as a a Web App and build a charts dashboard using the Charts API
Either way you can harness all the power of Apps script.
Further reading:
How to use Google Charts
Query Language Reference

Related

Creating a Histogram from Multiple Choice Grid Data in Google Forms

I have a data from Google Forms that came from a multiple choice grid. I need to recreate the histogram that was created in the Google Forms in Google Data Studio.
Here is the data. How can I recreate it in Google Data Studio? It has turned out to be surprisingly challenging.
Data
The solution is to unpivot the columns B, C, D (which are your questions) . I did it Power Query using Excel (Office 365) because unpivoting columns in Google Sheets is a huge pain, and not done by default. The new expanded column will help you get the desired histogram.

With zapier & Google Sheets: How do I trigger a new line in the entire spreadsheet?

I'm a bit puzzled. I can't set Zapier to trigger when a new line is added to any sheet on a Google spreadsheet. They force you to choose a specific sheet. Any way around it?
Cheers!
You will need to create a different "Zap" event for each sheet. To my knowledge, there is no way around that.
However, the fact that you think Zapier should be able to have a single Zap be triggered by multiple sheets implies a couple or things:
1.) You're not yet sure what a "Zap" is.
2.) Your data in each separate sheet is very similar. And this causes me to wonder if your overall spreadsheet setup is less than ideal. Many people wind up setting up separate sheets for data collection, whereas in most cases, data collection should only be done in one sheet setup as a standard database, while other sheets show the data in different arrangements (i.e., reports).
You haven't given much detail or provided a link to the spreadsheet. But perhaps this will prompt you to dive into understanding Zapier a bit better and reconsidering the layout of your spreadsheet(s).

Google Sheets 50 million cell count work around

Is there a way to get around the 50 million cell count rule? Can this be done by using 2 separate workbooks?
We have a lead tracking system that we have built in a Google Sheets workbook and with the way our leads get updated we have already hit the 50mil record count in Google Sheets over the past 3 months. Deleting the data is not an option as we have to analyze weekly monthly quarterly and yearly stats.
I am pretty sure IMPORTRANGE would still hit the 50mil cell count limit.
Is there a way around this limit?
Update:
So a way to combat the cell limit is to totally delete all columns and rows that you do not use and are empty. Trimming the sheets down to just what you have filled in rows and columns.
Apparently if the cell has no data in it it still counts against your cell count despite it being empty.
This is not a solution per say but it is a way to make sure empty cells are not counting against your cell count.
Answer:
There is no way around this. According to the Google File Size documentation[1], the limits on a Spreadsheet are:
​Up to 5 million cells or 18,278 columns (column ZZZ) for spreadsheets that are created in or converted to Google Sheets.
Things I Tested:
Starting in 2019 it became possible to edit Office files natively in G Suite[2] so I thought I'd give it a test. According to the specifications and limits page for Microsoft Office Excel[3]:
Total number of rows and columns on a worksheet: 1,048,576 rows by 16,384 columns
Which totals 17,179,869,184 cells.
As Spreadsheets that are created on Google Drive have the Google Drive limit, I created an Excel workbook on my local machine, with the maximum number of possible cells and uploaded it to Drive to see if it could be edited natively. Unfortunately, while the file uploaded successfully, attempting to open the file resulted in the following page:
More Information, Workarounds & Similar Services:
Honestly if you need more than 5 million cells in a Spreadsheet (or even 50 million!) then you're not using the right tool for the job. With this much data, you're likely better off using a database or a cloud data warehouse such as Google BigQuery[4] or Cloud SQL[5]
That being said, if Google Sheets/Spreadsheet workbooks really is the only way forward for you, the only thing I can recommend you doing is creating multiple Sheets files, separated into a more appropriate timeframe - each Sheet containing data for just a month. This will take a bit more time to set up (though you can use Apps Script for data migration between the Sheets), but in the long run will mean you will be able to use your data more effectively, and any data processing you need to do will complete within the Apps Script Quotas[6].
References:
Google Drive Help - Files you can store in Google Drive
G Suite Updates - "Office editing makes it easier to work with Office files in Docs, Sheets and Slides."
Excel specifications and limits
Google BigQuery
Google Cloud SQL
Google Apps Script - Quotas for Google Services

Hide formulas from non editors

The goal is to hide the formulas in the cells in order to show only the data to the users in the very same spreadsheet.
Why? Currently I'm showing some information to the teams, but the formulas contain info that these teams shouldn't be able to know.
To minimize the problem I'm importing most of the data using formulas such IMPORTRANGE or QUERY but even those methods show the URL of the original spreadsheet.
Use a Script to copy isn't a viable solution due the amount of data and frequency some those sheets receive updates.

Charting amount of dated events in columns/bars

I want to create bar charts similar to web server logs. I have events in my database which all took place at a certain moment, I would like to grab all these events and then chart how many occurred each day, week, month, whatever on a bar (column) graph.
For example I want to chart how many visitors I had in a month in 31 columns, each representing one day.
Is there a charting application whereby I can grab all the visits for the month and give these dates to the library, and it will divide them into time periods of my choosing (e.g. view by day)?
If not then what is the simplest way of creating the data? 31 DB queries? One DB query and then checking the dates and divide the events up into 31 lists?
I'm using Groovy and Grails.
You may query your database to get Map which maps number of events to a certain date. Use criteria builder to make a query that returns grouped by date.
I would just add Google Analytics to my website and use their interface.
To develop the software for handling these queries is a big question that I can't answer here. It's a product in itself.

Resources