I have a document with two sheets.
One sheet has two fields:
Type of Fruit
Color of Fruit
Example:
Apple Red
Apple Yellow
Apple Blue
Grape Red
Grape Green
The other sheet is getting data from the former one and looks like this:
Apple
Grape
And after apple i want a dropdown menu with all the colors.
So i need to get all colors in the first sheet for the fruit in the cell before the dropdown menu.
Tried using VLOOKUP but having issuses, can anyone guide me in the right direction?
Thanks all
Solution:
You cannot create a dropdown list in Data Validation directly from a formula, but you can create a helper column to list your filter result and use that as the input range:
Helper Column:
=INDEX(FILTER(Sheet1!A1:B5,Sheet1!A1:A5=A1),0,2)
And then use that column as input:
Related
BACKGROUND: I am editing a google forms response sheet. I would like new rows to be red, until they are assigned a status. I have already used the data validation tool to create a list of statuses, and assign color to the entire row using conditional formatting.
I decided the easiest way to do this is to use the timestamp column (L).
something like: IF L=NOTBLANK then COLOR=RED
I've seen another post in which the user asked how to negate the "isblank" function in google sheets. The solution to his question was
=not(isblank(A1))
I tried to use this + my own conditional formatting to color an entire row red, if the L cell in that row was not blank.
My formula looks like this
=$A2=not(isblank(l2))
HOWEVER, this turns everything but the first row red.
What would be the correct syntax? Here's a pic of my current results
I would like new rows to be red, until they are assigned a status.
Please use the following
=isblank($L2)
I tried to use ... to color an entire row red, if the L cell in that row was not blank.
Please use the following
=not(isblank($L2))
I have a FILTER sheet with a list of all the fruits I want to color code. In my Basket sheet there is a column Fruit. Whenever the Item in the Basket appears in the FILTER list, I want to change the color to yellow. Is that possible?
Example sheet >
You can create a condional formatting rule with
Custom formula is
=countif(indirect("FILTER!A$1:A$10"), A1)>0
You need to use indirect() to be able to refer to a different within a conditional formatting statement.
I am interested in taking the values from 1 list in a sheet and concatenating it with the values from another list in a different sheet in Google Sheets. For example, if my lists are:
Sheet A
Apple
Orange
Sheet B
Quarter
Half
Whole
I would want to generate on Sheet C this...
Apple Quarter
Apple Half
Apple Whole
Orange Quarter
Orange Half
Orange Whole
Is this possible? I tried doing this with ARRAYFORMULA, but I just end up outputting something like this: Apple QuarterHalfWhole
Here you go:
=ARRAYFORMULA(FLATTEN(A1:A2 & " " & TRANSPOSE(B1:B3)))
A1:A2 and B1:B3 indeed could be from a different sheet (tab or document (IMPORTRANGE will be used for that case))
FLATTEN is undocumented function in Google Sheets, which will make a 2D-range into a column. I learned about it recently from #MattKing here on SO.
I have a sheet where we choose what people will be assigned to each job. The job assignment will be on "Sheet" (in my sample spreadsheet). I would like the list of people on the "Pick List" sheet to be highlighted a different colour for every time they are assigned in "Sheet" more than once. I would like one assignment to be green, 2 assignments to be yellow, and 3 or more assignments to be red. I have attached the sample spreadsheet where I have tried a few solutions that are not working. Any help is greatly appreciated.
Sample Spreadsheet
The easiest way to do this is with conditional formatting.
On Sheet, select A1.
Right click and select conditional formatting.
You will need three rules. They will all be custom formulas (find under format cells if).
First enter =countif(A:A,A:A)=1 in custom formula is. Apply to range should be A1:A. Set formatting style to Green. Click Done.
then click add another rule. Custom formula will be =countif(A:A,A:A)=2. Apply to same range. Formatting style to Yellow.
Add another rule =countif(A:A,A:A)>=3 for Red.
You really don't need Pick List unless you just want to validate against it. If you do want to validate, you can
right click A1.
choose Data Validation and enter your Pick List range 'Pick List'!A1:A.
Drag A1 Down in Sheet.
I am making a todo list using Google Spreadsheet. I have three categories for each task. iOS, Android and both are all under the platform column. How can I assign fill colors for each of the categories under platform so that a given color will highlight a row once I enter the platform type?
You can do conditional formatting and for the field that says "Apply to range" you only put the reference to the rows:
'2:1000'