Create dropdown list from data tab (conditional) - google-sheets

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)

Related

How to insert data into a query from another tab in Google Sheets

I have a tab with raw data which is automatically populated and refreshed, therefore the row position that some names appear may vary daily, but the full row is aligned according to the name. I need to be able to add additional columns that match with that raw data.
For example, i have created another tab (Data) where I query the data from RAW and order according to the birthday date, therefore columns A, B, C, D and E are dynamically loaded and also change positions according to the new data populated in the RAW tab, but in the DATA tab i need to insert 2 additional tabs (F and G), in which a checkbox is checked wether to send an email to that user, but when the raw data loads new data, they change position and since the columns F and G are static they go out of order and the checkbox is attributed to another user, what would be the approach to fix this? Any ideas to select a checkbox and to be attributed to a user even if the row changes order, the checkbox or the value needs to follow the user
Thanks in Advance
Link to the sheet

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:

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

Using Unique and Highest Entry in Column

I created a check-in/check-out system for equipment using a form. I'd like to pull data from the Entries tab to the Database tab. Id like the Database tab to contain ALL unique values in column C based on the highest value in Column A.
Here is the formula I'm using that is not working:
=ARRAYFORMULA(IFerror(VLookup(Unique(sort(Entries!C2:C)),Sort({Entries!C2:C,Entries!A2:G},4,1,2,0),{2,3,4,5,6,7,8},0),))
Here is a link to the sheet. The Results tab is my desired results.
https://docs.google.com/spreadsheets/d/1ChaLBNtDJwTl73nMaCkKqh7DT-TuVLt8wm7Yj0KQLMM/edit?usp=sharing
The easy way to do these is with SORTN:
=sortn(sort(Entries!A2:G,1,0),999,2,3,1)
so first sort descending on Entry ID so that the latest ID's come first, then sort ascending on Equipment specifying 'remove duplicates' so that only the first (latest) ID is kept for each Equipment value. '999' should be increased if there are more than 1000 rows in your sheet.
Your formula also works, except that the dates come out as numbers and have to be formatted separately

Dependent Drop down on Google Form

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.

Resources