I have a workbook with four sheets and want to make a dashboard. In the dashboard I have 4 data validation drop down lists (Part, Date, Shift, Part Number). I want when someone selects the value from the drop list to look for the data that relate to the selections. I currently have =FILTER('sheet1'!A5:FP,('sheet1'!C5:C=Dash!A6)*('sheet1'!A5:A=Dash!A4)*('sheet1'!H5:H=Dash!A8))"Sheet 1" is the name of the sheet I want the data pulled from, however because the first parameter of =FILTER is range it wont allow me to reference my data validation dropdown found in A2. Is there a way to have the filter function look at what is in A2 and give me the data from the selected sheet, and how? Thank You in advance!
I think you are looking at the indirect function in google sheets, please try:
=FILTER(
Indirect(A2&"!A1:FP"),
(Indirect(A2&"!C5:C")=Dash!A6)*(Indirect(A2&"!A5:A")=Dash!A4)*
(Indirect(A2&"!H5:H")=Dash!A8)
)
Related
I've come looking for help regarding this issue. I'm a teacher, and am trying to help my students get all their documents together for university applications. Google Sheets tell me that I'm not able to filter cells containing vertical merges, but I want to filter by the earliest application deadline (column G) so I know which student I have to chase up first, second, third, etc., without losing the rest of the data in the row.
Does anyone know a good way of doing this? I've created a sample of my spreadsheet: here.
Thanks in advance.
Try Insert > New sheet and this formula in cell A1 of the new sheet:
=query('2021'!A1:Z, "where G is not null order by G", 1)
The sorted list is for reference only. You will need to continue to do your editing in the 2021 sheet.
I would split the data between a couple of sheets.
In the first sheet you'd have important data that can be seen at a glance and filtered easily, like student names, universities and deadlines.
In the second sheet (which you can link by student name or id) you can put extra info like necessary documents, urls etc - something like this.
Alternatively keep all the info in one sheet but don't use split columns or rows - it isn't conducive for sorting, filtering and viewing data (and what's the point of data if you can't analyse it?)
I want to do a complex formula using google sheets:
I have a list of place that will be visited by different people.
Some places are not to be visited, marked with /
Some places need to be assigned, marked with ?
Wanted outcome:
A list of cells that changes every day automatic.
An overview of who is going where that day and what needs to be assigned.
So I need a formula that can select a row based on today() and then filter out Persons in that row. Then for each person, another formula that looks up the first row in the table and puts duplicates together.
Example:
Wanted outcome:
Link to excel file, but it needs to work in google sheets too: xlsx
My solution is not the most elegant but it does the job.
First I build a column with date and unique persons or ? in this column:
=unique(sort(transpose(index(A1:H10,match(today(),A1:A10,0)))))
Then I find Places corresponding to these persons (I use filter function for it and then I use textjoin to keep them in single cell).
The formula is copied down as filter function does not accept a range and arrayformula as a filtering criterium.
My solution is available here:
https://docs.google.com/spreadsheets/d/1GTy_UaFP8LbA8OLnEhT_R_twpDCIWCuvQfBAigqtbR0/copy
I need to compare two different sheets to find matching values between them.
In the first sheet, I have a list of order numbers and in the second one, I have a list that needs dispatching. Therefore, without scrolling through the sheet manually for the 1000+, I'd like to use a formula or conditional formatting in order to flag the values that are the same (or all of the different values) so I can simply copy and paste this into another sheet.
I have shared a link to a google sheet below if someone could help with this that would be very much appreciated.
Edit: The second sheet (on the google document) is the list of all orders and the first are the ones to be dispatched. I need to know which one's from the second sheet are missing from the first.
https://docs.google.com/spreadsheets/d/18vSBu9GzxK1UMCE2RrDyNSH6yi-FzTvuABsVw9r172Y/edit?usp=sharing
In second sheet in column B you could do:
=COUNTIF(Sheet1!A:A,A2)
IF the formula returns 0, it means that id number is not in your first sheet.
I've created a list of Foods in a Google Sheet.
On another sheet I reference A2:A100 to create a data validation list to select from.
I am trying to figure out how to auto-fill the equivalent columns on the other sheet depending on which food is selected but the value in the data validation list is simply text, so I cannot figure out how to get the row it is on to transfer the values onto the new sheet.
This is what I have right now:
This is what I am trying to get it to look like:
If I change any of the foods, I want columns B - H to automatically fill in with the correct values from the Foods sheet.
How can I do this?
You can use couple of methods
Using DGET
=IFERROR(ArrayFormula(DGET('Foods'!$A$1:$K$100,{"calories","sat","poly","mono","fiber","carbs","protein"},{"Food";$A2})))
OR
=IFERROR(ArrayFormula(DGET('Foods'!$A$1:$K$100,{$B$1,$C$1,$D$1,$E$1,$F$1,$G$1,$H$1},{"Food";$A2})))
Using VLOOKUP
=IFNA(ArrayFormula(VLOOKUP($A2,'Foods'!$A$1:$K$100,{5,6,7,8,9,10,11},FALSE)))
Place the formula on cell B1 and drag down.
Functions used:
DGET
ArrayFormula
IFERROR
VLOOKUP
IFNA
is there any way how can I allow inserting new data lines for the user (with whom I share sheet) but not changing formulas?
My case: I created formulas for example for dropdown list in lines, other formulas for cells, etc. Now I want to allow the user to insert data to these lines, but I want to prevent him to change these formulas (ideally he should not be able to see or copy these formulas or entire sheet).
I know I can protect sheets/cells but this entirely disables edit for the user.
Is there any way please to accomplish what I need?
you can have two sheets - one for him/her and one for you. in your sheet you will have all your formulas. then you just connect these two sheets with IMPORTRANGE formulas (for example columns A, B, C from his/her sheet into your A, B, C ...and then your D column with formulas imported into his/her sheet' D column)
another way would be to use ARRAYFORMULA variants for all your formulas which would be sitting in a safe zone on the first row.
You can protect only selected parts of the sheet.
Go to Data -> Protected sheets and ranges...
Click on Add a sheet or range in the sidebar.
Enter name of the range.
Select Sheet as the option.
Check Except certain cells.
Add all the ranges you want the user to be allowed to edit.
Hope this helps!