Google Sheets conditional formatting to highlight row if date is today - google-sheets

Struggling with this one.
I have a sheet with columns A to GC with dates in random places. I need conditional formatting to highlight an entire row if the date in that row is today.
I've got this formula =match(today(),$A1:$GC1) which works on a test sheet (a blank google sheet with a date in a random place) but when applying this to the sheet I need it at, it doesn't work. Just highlights everything for some reason.
Copy of the Google sheet: Sample Sheet

It seems like the existing values in your sheet are messing with the conditional formatting. Try using COUNTIF instead:
=COUNTIF($A1:$GC1, TODAY())
Reference:
COUNTIF

Related

Using arrayformula in Google Sheets

I'm trying to use arrayformula to expand the formula below but it's not working. When I copy-paste manually the formula into each cell it works.
=arrayformula(INDEX($1:$100,ROW(B2:B),match(YEAR(M$1:$1),$1:$1,0)))
What I want to achieve is to convert yearly salaries into monthly salaries based on years.
The spreadsheet can be viewed here:
https://docs.google.com/spreadsheets/d/1veiYh1CMIfFPwBGQk4OwKmCLa7q08TugReVfAXtpIgI/edit#gid=1363287956
Thanks!
Solution:
Since you are looking for a specific column, you can use HLOOKUP as a substitute for INDEX and MATCH:
=ARRAYFORMULA(HLOOKUP(YEAR(M1:AT1),A1:H11,ROW(B2:B11))/12)
This should yield the same result as the previous formula:

I am trying to use vlookup as a conditional formatting formula

I have a Google sheet that has a roster of people. I want the sheet to automatically color code people on the roster tab that are also present on a second tab that lists people who have dietary restrictions. I thought that conditional formatting would be the way to go, but I can't get the formula to work. I also can seem to get the conditional formatting formula to be relative based on the row. This is the formula that I have so far. A5 is the first cell that contains the person's ID number. The ID numbers are listed in column A on the "Dietary Restrictions" sheet.
=NOT(ISNA(VLOOKUP(A5,'Ghost Students'!A:H,1,FALSE)))
You want to highlight values from A5:A in one sheet (let's call it Roster) if they are present in column A from another sheet (Dietary restrictions).
Since conditional formatting formulas cannot reference other sheets, you have to use INDIRECT in order to reference that.
You can then use MATCH to check if the value is present.
Your formula could be like this:
=MATCH($A5,INDIRECT("'Dietary restrictions'!A2:A"),0)
Output:
Sheet Roster:
Sheet Dietary restrictions:
How about making vlookup formula grabbing data about dietary conditions from another sheet, and then putting conditional formatting.
You can hide information about dietary conditions if you want and apply conditional formatting based on hidden column:
Just tried. Conditional formatting works with hidden columns too.

Google Sheets Conditional Formatting data input validation

I am currently trying to make a google sheets where Column A is a Date and Column B,C,D,E Are relevant info according to that date. I am wondering how it is possible to highlight cells B-E in the same row if two criteria are met:
If column A of that row is not blank.
If any cell in B-E is blank to highlight them red.
Basically it is a way for showing there should be data there if there is a data (A date) in column A. I can do this for a single row, but I cant find a way to apply this to all of the sheet until the EOF.
Thanks,
Example of single row:
Use custom formula for CF:
=SUMPRODUCT(($A2<>"")*($B2:$E2=""))
apply formatting to B2:E
References
SUMPRODUCT
Google Sheets conditional formatting

Google Sheets Formula cannot get the date from another cell

I want to get the price of bitcoin on exact date.
The dates are written in Column A and they are updated regularly from a Google form
This is an example of the working formula, but the date in it is written manually (2017-01-31):
=ARRAYFORMULA(IF(ISBLANK($B$2:$B),"",CRYPTOFINANCE("BTC/USD", "price",2017-01-31)))
But when I try to get the dates from Column A, mentioned with $C$2:$C - Google sheets do not understand it
=ARRAYFORMULA(IF(ISBLANK($B$2:$B),"",CRYPTOFINANCE("BTC/USD", "price",$C$2:$C)))
Click here to check The spreadsheet
Thank you in advance!
"Doctor, it hurts when I do this."
In the example spreadsheet you are converting the dates into text for the column C, using the explicit TEXT() function. Then you are wondering why they no longer work as dates?
Stop converting to text.

Array Formulas for non-numerical data?

I am working with Google sheets and looking to make a formula that will auto-apply to new rows that are added. All the existing answers I have found show how an array formula can do this with mathematical operations, I cannot figure out how to make this work with my formula, which goes in row E:
=RIGHT(D1:D,LEN(D1:D)-44)
If there is no way to auto-insert this into a new row in Google Sheets itself, is there a Google Script I could use to detect new rows and put this formula in the proper column?
Don't know about "row E:" but enter your formula with Ctrl+Shift+Enter before just Enter.

Resources