Find similar values and move cells in Google sheet - google-sheets

Basically, I have Google Search data for two different months in one Google Sheet. I'm trying to align similar terms with their data for both months.
Here's the Google Sheet -> https://docs.google.com/spreadsheets/d/17Xu5_37aLJW3yBCJ8SbquexNHShMwsApF-2BpBEhpcA/edit#gid=0
As you can see in the Sheet, we have data in Black and Blue color, Black represent July and Blue represent August.
In the sheet, you can see A8 and A9 search terms are also found in Blue (August) at G6 and G7.
How do I move the data so that both months search term aligns?

it's either first one or second one you seek:
=ARRAYFORMULA(IFERROR(VLOOKUP(A:A, G:L, {1,2,3,4,5,6}, 0)))
=ARRAYFORMULA(IFERROR(VLOOKUP(G:G, A:F, {1,2,3,4,5,6}, 0)))

Related

Conditional Formatting Row based on

I like to use Google Sheets to keep my list of stories that I'm working on organized
like in this photo here:
Each row is highlighted a certain color depending on the value of the cell in "B" Column. "Published" is green, "WIP" is orange, where for range A2:B2, =B2="Published"
But at the moment I have to create the conditional formatting formula (CF) for each row one by one. I have to make the CF for Row 2, then copy the CF to Row 3 and edit the formula to replace every B2 with a B3 so it works independently on the next row.
This seems far too tedious to do practically so I was wondering if there was a formula that would allow each row to be formatted individually with one formula? Something where the formula knows to look at B2 in Row 2 to apply the formatting, B3 in Row 3, and so on.
The current formula I'm using is [=B3="Published"] to change the formatting style to a green highlight. But if I do this on all of my cells, it will change all of rows based on the value of B2. Even though in B3 it might be "WIP" instead, which defeats the purpose of highlight. I was hoping it would function like [if: =BX="Published"/ then: apply conditional formatting to Row X]
I'm really sorry about the poor phrasing of this question, I have basically zero knowledge on Google Sheets and don't know how to phrase the question for Google or any other search engine
set your range to A2:F and use this set of formulae:
orange
=$B2="WIP"
blue
=$B2="Outline"
green
=$B2="Published"

Google Sheets - Concatenating Multiple lists across sheets

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.

How to check if a row has data and conditional format from there?

I'm trying to code a Google Sheet to check if a row has any data in it, and then use conditional formatting to color-code another cell in that row. How could I do this?
Screenshots are here. The idea is that the cells in column B will turn red if there is any data in the same row. So in this example, B2 would stay green, B3 would turn red (automatically, with no text input), and B4 and B5 would stay blank, because there is no data in that row.
This sheet is linked to a Google Form, so it needs to be able to update automatically.
(I'm a beginner to Google Sheets, so I'm not familiar with the necessary code at all.)
Edit: Here's a copy of my sheet.
try simple custom formula:
=A2<>""
spreadsheet demo

Conditional formatting based on cells matching a column of another sheet

I've got a spreadsheet made on Google Sheets that contains 11 sheets, and each sheet is a set of things that I'm considering buying.
Some sets contain the same individual pieces as something else.
For example item A might be on sheet A and sheet D.
I'd like to make some kind of formula to highlight all duplicates, so that when I was looking through the sheet I could see whether buying item A will help me complete more than just the set that I'm looking at. So I can look at a set and if it's mostly green I know there's more value in buying it as almost all of the contents will also go towards another set.
I know how to do it so that they glow if they match on the same sheet.
$A2=$B2
However I'm not sure how to do it across sheets, or how I'd include if statements. As the colour would have to change if it matches any cells in column A on any sheet. They're also not in the same order on different sheets so while item A might be in A3 on sheet A, it might be in A17 on sheet D.
I'm not sure how possible something like this is, but I'd appreciate any help.
Google Sheets does not allow direct references to cells in other sheets in conditional formatting formulas. But this can be circumvented with indirect:
= A2 = indirect("Sheet2!A2")
formats the current cell (A2) if it's the same as the contend of A2 on Sheet2.
But you want to check whether the content is duplicated anywhere in column A of another sheet. This can be done with match: select the column A2:A of the present sheet, and add conditional formatting with custom formula
=match(A2, indirect("Sheet2!A2:A"), 0) > 0
Here match returns either the position of found element (a positive number) or #N/A, and the formula evaluates to True in the former case only.
Although the formula says "A2", it can be applied at once to any range that has A2 as its upper left corner.

Conditional Formatting within Google Sheets

I am looking for some help on how to make my data easily changeable with colours depending on what is in a specific cell.
Here is a example sheet
Example Link
So basically I want to make it so when I put a Y in column C that it then turns A2, B2 and C2 to green, and so on for N, C and NN.
But it has to be specific too those two cells and not the whole row
This is possible. I cannot open your sheet, so unable to see what you exactly mean.
But I think you mean something like in my example.
See printscreen below. Edit:
Cannot post images untill 10 reputation points.
Also added the link to my example spreadsheet here.

Resources