Display several graphics from different sheets in one sheet - google-sheets

I have a google sheet here:
https://docs.google.com/spreadsheets/d/1cRIUX5lwJVkr_INcXj_rawndSzGlVHalliaIfEZXZzI/edit#gid=1511798751
In the Search sheet I have a scrolling menu where I can sort my refs by months...
When a month is selected it display a graphic from the data in grade column...
Is it possible to display all the graphics in one single sheet to compare then at the first sight? For now I have data only for January, February and March...
Also, is it possible to use the month name as a title for each graph ?
I think I need a function that find the expected sheet, the required month and the plage...
=Grades!C:C
but I am just stuck here...

to get array you can use one of these approaches:
={Grades!C1:C300}
=INDEX(Grades!C1:C300)
=QUERY(Grades!C1:C300)
=ARRAYFORMULA(Grades!C1:C300)

Related

Making a drop down populate sheet from a database

I have two sheets in my document. The first sheet’s columns are days (A-C) and the rows are specific attributes for each day (temperature, cloud cover, rain, etc).
On the second sheet, I have a data validation drop down selector, it’s contents sourced from the “Days” strip (A-C, so it displays A-C as options) in sheet one. When I select day C for example, I want all the attributes for that day to populate in cells down the page. It should update depending on which page is selected.
Much appreciated, thank you.
Image: https://ibb.co/DgvnLLc
Use MATCH to find the column index that corresponds to the dropdown value.
Use OFFSET to retrieve the corresponding column data.
=OFFSET(Sheet1!B3, 1, MATCH(A2,Sheet1!B3:D3,0)-1, 3)

Autoupdate Google Sheet range

I have a logger that sends data to a Google Sheet every 5 minutes (by adding a new row to it).
I would like the charts I associated with the sheet to update their range automatically. If possible, I would like to avoid scripts.
It seems to me you should be able to set the chart range to the appropriate columns. Such as A:A. Can you share what the Data range for your chart is. Shown here:
In the above example, let's say columns I thru AG were going to go on in perpetuity due to logging. I could put I:AG in the data range field but it will auto update to the last row in the sheet. If you want to work around using this, add a bunch of blank rows at the bottom of the sheet and you will rarely need to update the range (&add more rows.)

Provide a summary sheet based on data from other sheet in same workbook

I am creating a sheet where I am tracking the working hours of some employees in google sheets.
Each month I need to provide a summary per employee to sign. Until now I was doing it by hand, but there must be some better way to do it.
A test sheet can be found here, the first sheet is data, the second sheet is the summary I am looking for.
https://docs.google.com/spreadsheets/d/1LmJYMqJTEpjSKNY4qFXhLRaBbotj7lUEHauynzHISwg/edit?usp=sharing
Is there any way to use an array formula with some filters for Employee name and a date range to accomplish this?

google sheet data filter for last a few days

I have a google sheet to log what I do at work every day.
for example
no filter
I managed to figure out how to filter it by today.
highlight colon -> data -> filter -> date is today
for example:
only today
but I could not figure out how to filter it by the last x number of days
for example:
goal
I guess I will need to make a custom filter, but I have a really hard time figuring out how to make custom filters in google sheet.
Please help me. Thanks in advance.
I solved this in two ways. One with a filter view, and one with a formula you could also use. Both are in my example spreadsheet based on your provided data.
Filter View:
To view my example use the above link and go to the sheet "Filtered". Then apply "Filter recent days" which is a filter I created. I created this filter by filtering column A for the condition "Date is after". I then chose "exact date..." which allows formula input. The formula I used was =TODAY()-4 which simply filters the data for every instance of column A which is after 4 days ago.
Filter formula:
To accomplish this, I left the original data in columns A and B. Then in C5, I entered the formula =FILTER(A3:B,A3:A>TODAY()-4), which uses basically the same method as above. This will produce a separate output next to your original data with only the recent entries.
I also took this a step further by moving the formula down a cell, and then replacing the 4 in the formula with D2. Now you can change the number in D2 to change how many days it displays.

SUMIFS function across multiple sheets

For reference, please visit this Google Doc which is a simplified example of my problem, which is to determine total sales in Blue and Green markets each month.
Each month, I receive a new sales report from accounting for all of our markets and I add the sheet to the main workbook. My team is in charge of assigning "colors" to the markets and tracking this. As it's privileged information, we can't have accounting auto-tag these in the data they send over.
One solution would be, for each new monthly report that comes in, tag each city with the color. However, we have hundreds of markets and this isn't very practical to go through each time.
I assume that a SUMIFS function would work here, but am unsure how to set it up when there are values spread across multiple sheets.
You can use this function in B8 of February tab:
=SUM(IF(COUNTIFS($A$2:$A$5,Color!$A$2:$A$5,Color!$B$2:$B$5,'Sales February'!A8)>0,$B$2:$B$5,0))
COUNTIFS($A$2:$A$5,Color!$A$2:$A$5,Color!$B$2:$B$5,'Sales February'!A8)>0 gets an array of the countries that belong to the colour specified in A8 of the current tab (Would that be possible to put only Green and remove February Sales from that cell?).
If the country belongs to the particular colour, then return the array of corresponding values in column $B$2:$B$5.
Lastly, sum this array.
Note:
You need to array enter this formula in Excel (by holding Ctrl+Shift then hit Enter after typing in the formula).
In Google Spreadsheets, you array enter a formula by wrapping the formula around =ArrayFormula(), meaning you use:
=ArrayFormula(SUM(IF(COUNTIFS($A$2:$A$5,Color!$A$2:$A$5,Color!$B$2:$B$5,'Sales February'!A8)>0,$B$2:$B$5,0)))
In Excel you can use this "array formula"
=SUM(SUMIF(A$2:A$5,IF(Color!B$2:B$5=A8,Color!A$2:A$5),B$2:B$5))
confirmed with CTRL+SHIFT+ENTER
The same formula works in google docs if wrapped in arrayformula, i.e.
=arrayformula(SUM(SUMIF(A$2:A$5,IF(Color!B$2:B$5=A8,Color!A$2:A$5),B$2:B$5)))
or you can use FILTER as user3465711 suggests, i.e.
=SUM(filter(B$2:B$5,isnumber(match(A$2:A$5,IF(Color!B$2:B$5=A8,Color!A$2:A$5),0))))

Resources