Dependent Drop down on Google Form - google-sheets

Good day Ma'am/Sir, So I have a Google form from google drive, and a google sheets that contain the records for the dependent drop down.
I have 3 dropdown fields that dependent to each other, these are
-PROVINCE
-TOWN/CITY
-BARANGAY/DISTRICT
How this will work, If I select one record on "PROVINCE", the drop down list of "TOWN/CITY" will automatically populated depend on the selected item on the "PROVINCE". After that the drop down list of "BARANGAY/DISTRICT" will automatically populated depend on the selected item on the "TOWN/CITY" under "PROVINCE".
This are the screen shots of my for and library of address here in Philippines.
Form for encoding the profile of user, with dependent drop down.
1st Sample list of provinces and town/city in google drive

This is possible with Array. Make one separate sheet to store all values. The category, sub-category 1 and sub category 2 will be in one column.

Related

How to show employees who were absent (did not clock in) in Google Sheets with Google Form data?

I made a Google Form for employees to use to clock in and out each day. The data is going to a Google Sheet, which is turned into a pivot table and all is well except for how to view which employees did not clock in on a specific day. Ideally, I want a list of absent employees per day/employees who did not clock in/out on a certain day.
The Google Form has employees select their name from a drop down menu and select clock in or clock out. The data goes to a Google Sheet, which I have made a data processed tab from, to make a pivot table from. The list of absent employees does not need to be within pivot table, it can be a seperate tab. If it is possible to have absent employees listed somehow in the pivot table, that's great. Not a big deal if not.
Right now, I am manually going in and selecting employees who clocked in/out on a particular date, adding that to its own column, and comparing that column with the master employee list. Is there an automated way to do this? I am familiar with comparing two columns, but can't figure out how to sort employees based on the date they clocked in/out into one column to then compare it to another one (unless I manually create column at end of work day). Thank you!!
https://drive.google.com/file/d/1v5ssyIaW0fUdIBTKTr6FNZIzV1WNilqN/view?usp=sharing This is the raw data from Google From
https://drive.google.com/file/d/1axWe_nPSTvIPM2RvIz7AQZE_NSJmIEdQ/view?usp=sharing This is processed data which fills pivot table
https://drive.google.com/file/d/13rBxzJ5RtnYc-vo3RzocMrSwtMy9kbaB/view?usp=sharing This is pivot table

How do I populate an empty array, with a specific table in another sheet, based on dropdown menu?

How can I populate an array, with a specific financials table from another sheet, depending on the chosen company in the dropdown list?
SO... populate the blue-area in DASHBOARD!, with the blue-area in FINANCIALS!, because it matches the company in the dropdown menu on DASHBOARD!.
Or is there an easier way to do this. In essence... I want the chosen company's key financials to be shown, when it is chosen in the dropdown menu...
Thank you so much in advance!
GOOGLE SHEETS LINK
You can try the ‘QUERY’ function.
In the “FINANCIALS” sheet - Column A , I added the name of the company (you can hide this column if you prefer). This way we can make a query and return only rows that match with that specific company.
In the “DASHBOARD” sheet, cell D15, I added the following:
=QUERY(FINANCIALS!A6:H42,"select C,D,E,F,G,H where A='"&B10&"'",0)
And after formatting the rows with Number/Percent, this is the result which matches with the information in the "FINANCIALS" sheet:

Create dropdown list from data tab (conditional)

Not sure how to phrase this correctly, but I can't get my head around the next thing;
I have a Google Sheet with two tabs. One tab showing the data based on the selected parameters (ID and Category) and one tab with all of the data.
The data consists out of one ID and up to 4 categories with each category having 3 unique values. When selecting an item ID in the first tab, it should generate a dropdown list with all of the Category names of the item with the same ID from the data tab. It should only pull the categories which are not empty. Once an ID and one of the categories is selected in the first tab, it should pull the 3 unique values of that specific Category and display it in the first tab.
Tab 1
The dropdown list in the first cell is simply the range of all the values in the 'B' column of the data tab. Once an ID has been selected in Tab 1, it should automatically generate a dropdown list including all Category Values (if not empty). In the example below it should create a dropdown list with the values "Example 1 and Example 2". If there would be a value below Category 3 it should create a dropdown list with 3.
Once the ID and the Category has been selected, it should pull the corresponding First, Second and Third value from the selected category.
Data tab
There are several ways to achieve this behavior, but I would suggest using the =FILTER function (you can read more about it here).
I have set up my mock Data tab as follows, but of course this method can be easily adapted:
You can see that I am listing all the ID-Category combinations and their corresponding value (I presume there are several Categories per ID).
Now to the main tab:
For the ID column a simple Data Validation can be done. You can select all the IDs in the Data tab, the duplicates will automatically be thrown out. This can easily be achieved by:
=Sheet2!$A$2:$A$7
For the Category validation in the second column, an extra step is needed because natively populating drop-down lists (to dynamically adapt the Category drop-down to the current selected ID) is not [yet] supported. However, it can still be achieved will the following trick:
Where the formula used in the helper for validation is the following:
=TRANSPOSE(FILTER(Sheet2!B$2:B$7,Sheet2!A$2:A$7=A2))
and in the catergory data validation we have the following range:
=G2:2
For the different values, we can again make use of the FILTER formula. You can paste this into the C2 cell and extend it to as may columns and rows as required:
=FILTER(Sheet2!C$2:C$7,Sheet2!$B$2:$B$7=$B2,Sheet2!$A$2:$A$7=$A2)

Apply dynamic hyperlink to the values in a dynamic dropdown in excel

I have two worksheets in a Google spreadsheet.
Sheet-A: Treat this like an “order booking” page. Consists of 10 empty line items, where the user can select an item from a dynamically generated dropdown list. The values in the dynamic list come from Sheet-B’s 1st column range
Sheet-B: Treat this like a “menu details” page. It consists of Menu item name, description, ingredients, etc
What I want to do is:
When users try to place an order, they select a menu item from the dropdown in Sheet A.
If they want to know more about an item, they should click on the hyperlink on top of the dropdown value and be navigated to the respective menu item description in Sheet B.
To summarize, the dynamic values coming in the dropdown list should hold a hyperlink within itself which points to where the value is coming from.
This is straightforward, use the HYPERLINK() function and either the CONCATENATE() function or use the concatenate operator "&". Here is an example from one of my projects:
=HYPERLINK(CONCATENATE("https://tracker.telenetwork.com/admin/reports/SCReport/report_emp.asp?emp=",$B$4,"&nt=",$A$4,"&sd=",A7,"&ed=",B7,"&dur=99999&per=15&client=",C4),"Call Recordings")
I built an example for another person asking a similar type question, between that example and the formula above you should be able to figure out how to implement for your specific situation. Feel free to make a copy of this sheet:
https://docs.google.com/spreadsheets/d/1qbLOjTdzISICTKyUp_jK6gZbQCt-OwtDYYy3HNJygeE/edit#gid=795322028

When using QUERY, how can I make it so that data moves together when using filter?

I am creating a tool for a video game I play.
Link to the example spreadsheet (Please make a copy to edit so that this copy stays intact for additional helpers).
Sheet 1 is “Choose Owned”. It contains a list of all of the champions available in the game and includes their attributes.
Column A contains checkboxes. Checking a checkbox indicates that the user owns that champion, and brings it to Sheet 2.
Sheet 2 is called “Owned”. It contains a list of the champions checked off in “Choose Owned” (aka the champions the user owns). “Owned” includes the champion attributes too, as first seen in “Choose Owned”.
Beyond those same attributes, “Owned” contains 8 additional columns.
These columns are from Columns G:N and are labeled ‘Level’, ‘Rank’,
‘Ascension Lvl’, and ‘Team Label(s)’ (‘Team Label(s)’ takes up
columns J:N). This data is all unique information and requires the
user to input the information themselves depending on their
champions.
Because there are so many champions, I want the user to be able to use the Filter function in “Owned” so they can easily locate the champion they need or sort the table however they wish.
However, because I use the QUERY function to get the data from “Choose Owned”, the Filter function tends to break. The most obvious error comes when you try to sort A-Z or Z-A; this simply cannot be done. I was fine with this, and have even included a note at the top telling the user to avoid sorting alphabetically.
Everything else works correctly until the user tries to add a new champion from “Choose Owned”. When the champion is added to “Owned”, the additional, unique data in columns G:N go out of order because they don’t move with their original champions.
Example:
I choose my champions. These champions are copied to “Owned”.
I pick their relative data in columns G:N.
A few days later, I obtain new champions and check them off in “Choose Owned” so they are added to “Owned”. However, when I do this, the champions stay in the same order as they are in “Choose Owned”, and columns G:N do not move with their champions so now, that information is with the wrong champion.
I want the additional data (G:N) to move with their champions when the table is edited due to champions being added. Or, in other words, I want those columns to stay linked to the first columns.
If there is a different way to achieve all of this like if I have to use a function other than QUERY, that is fine!
Please share any solutions you may have. I would prefer to not use a script but will consider the idea if it works.
this is a common issue within Google Sheets and it's solvable in 2 ways:
either by introducing a common value (unique ID) and then linking the manual input to query and aligning it by ID
or easier approach in your case - using timestamp/linear ID so every new entry would be added to the bottom and then the query would be sorted based on this order.

Resources