Conditional Formatting on Google Sheets depending on cell in other sheet - google-sheets

So I have one sheet that's a timeline, with the first column being an ascending list of dates and the second being a description of the event that happens on that date.
Another sheet has a cell with a specific date.
I would like the cell on the first column of the first sheet whose date is the date on that second sheet's cell to be formatted. How do I do that?

If the second sheet has a date in cell A1, then the first column of the first sheet should have conditional formatting "Value is equal to... " =indirect("Sheet2!A1")
The use of indirect is necessary because otherwise conditional formatting rules cannot refer to other sheets.

Related

Google Sheets Find Cell containing date in other sheet

I'm looking to make a planner, I would like to find the cell in another sheet called 'Main' that matches my cell A2.
The date would be in row 2 of which some are not dates.
I'm just looking to do conditional formatting based on that cell but can't seem to find out how to get the cell
any help would be welcome...
If you want to highlight the cell in Row 2 of the Main sheet, then you can highlight row 2 in the Main sheet and apply conditional formatting in the Main sheet using this formula:
=A$1=INDIRECT("Sheet1!$A$2")
Please note that the above formula assumes that the sheet containing reference date in A2 is named "Sheet1."

How do I mirror cells based on one cell being today's date with several adjacent cells

I have made a dynamic calendar in google sheets that will highlight todays date and several cells using conditional formatting. I would like to create on a new sheet in the same workbook a "Today View" in which it searches the workbook for the highlighted cells that are denoting "today" and then mirror these cells on the Today View sheet.
Im trying VLOOKUP or MATCH, in combination with OFFSET, to attempt to locate todays date no matter the sheet, then display cells the X number of rows below the date, with no success. Im not sure how else to accomplish this
Edit: Here is a link to a sample spreadsheet. The first sheet is the "Today View" I would like, the second sheet is a sample of the calendar.
I would like the cells in the range A2:G8 to mirror the cells that are highlighted in green on the calendar sheet, regardless of which sheet is being sourced. The intended goal would be each day this range is updated with the cells that correspond to the new cells from the calendar, displaying the tasks that I have planned for that day without needing to go to the sheet with the specific date
<iframe src="https://docs.google.com/spreadsheets/d/e/2PACX-1vQJ8b8aDP-HgctIlthRkwfF7EO43Es9v8m68QztdkAyl_jBYj_ZGO_QFxALDvSzQ7ftEavx-wZXauCW/pubhtml?widget=true&headers=false" width="100%" height="500"></iframe>
see:
=ARRAYFORMULA(QUERY({INDIRECT("Sheet3!"&
ADDRESS(MAX(IF(REGEXMATCH(B4:D14&"", B1&""), ROW(B4:D14), 0))+1+N("< offset start"),
MAX(IF(REGEXMATCH(B4:D14&"", B1&""), COLUMN(B4:D14), 0)))&":"&
ADDRESS(MAX(IF(REGEXMATCH(B4:D14&"", B1&""), ROW(B4:D14), 0))+4+N("< offset end"),
MAX(IF(REGEXMATCH(B4:D14&"", B1&""), COLUMN(B4:D14), 0))))},
"where Col1 is not null"))
demo sheet

Get range from formula an a sheet and use it in a different formula that gets data from a different sheet in Google Sheets

I have two sheets Sheet Main and Sheet Unique
On sheet Main, I have a range of data with headers
On sheet Unique in cell A1 I have a drop-down of all the header names from sheet Main
In cell B1 of sheet Unique, I have the formula
=SUBSTITUTE(ADDRESS(A1,MATCH(A1,Main !A1:AA1,0),4),1,"")
Which gets the Column letter of the header on sheet Main from the dropdown on sheet Unique
Is cell A2 on sheet Unique I have the formula
=SORT(UNIQUE(TRANSPOSE(ARRAYFORMULA(TRIM(SPLIT(JOIN("|",Main!F2:F),"|"))))))
Which gets the unique list of elements from the column on sheet Main that was selected from the drop-down on sheet Unique.
In this case, F2:F is the range on sheet Main of the selected header from sheet Unique
I want to update the formula
=SORT(UNIQUE(TRANSPOSE(ARRAYFORMULA(TRIM(SPLIT(JOIN("|",Main!F2:F),"|"))))))
automatically every time I make a new selection from the Drop-down on the sheet Unique
Combing the two formulas I get and adding INDIRECT
=SORT(UNIQUE(TRANSPOSE(ARRAYFORMULA(TRIM(SPLIT(JOIN("|",Main!&INDIRECT(SUBSTITUTE(ADDRESS(Y1,MATCH(A1,Main!$A$1:$AA$1,0),4),1,""),"|"))))))))
I get the error formula parse error I can not get what I am doing wrong!
Thanks for any assistance
Try this in cell Unique!A2:
=unique(sort(indirect("Main!"&substitute(address(1,match(A1,Main!1:1,0),4),"1","")&"2:"&substitute(address(1,match(A1,Main!1:1,0),4),"1","")),1,1))

How to match the date in cell above, with a column of dates, and bring the value of cell left to the matched cell

I have dates arranged in a calendar format. Below every date row, there is a row to add notes. Now I have a separate task list in a column. I want to place those tasks automatically under the dates in the calendar. So basic logic I'm trying is if the date in the cell above matches with a date in the column specified, then copy the cell to the left of the matched value and bring it to the current cell.
Sheet link: https://docs.google.com/spreadsheets/d/1wq9D1XQHN2_j40-0PcugYBV2Mmy1b9ZfDVCPUArcbCc/edit?usp=sharing
This formula should be copied in cell E10 on "calendar View". Then copy the formula into each "Task" cell on Calendar View. The absolute cell references will ensure that the right values from "Timeline" are returned.
=iferror(index(Timeline!$B$3:$C$13,match(E9,Timeline!$C$3:$C$13,0),1),"")

google sheets: custom formatting basing on cell below

I have column "start of the period" with dates like
2014-01-01
2014-01-07
2014-02-01
2024-02-12
and so on; I want cell with start of the current period to be highlighted, so I tried custom formatting formula
=AND(TODAY() >= R[0]C[0]; TODAY() < R[1]C[0])
and it doesn't work. Is it even possible in new sheets without custom onEdit() script?
Yes it is possible. Use this in the custom formatting formula for the 1st cell
=and(today()>A1,today()<A2)
Google spreadsheets automatically changes the reference as you move down the row. So for the next row, the condition would become =and(today()>A2,today()<A3).
Interestingly, if you check the conditional formatting formula, it still displays the former formula, but works just fine. Check this sheet.

Resources