I'm trying to make every cell in range A2:G21 green if its value is lower than A24. I thought It would be quite easy but I just can't figure it out.
Thanks in advance!
Select from A2 to G21 and apply a Custom formula is of
=A2<$A$24
Related
I am trying to use the =sum() function in google sheets, and so far, that's all I have typed into the targeted cell. For example, I want D3 to be the sum of C2 and D2. I know how to type that. =sum(C2,D2). But I want cells D3 thru D30 to have the same equation, relative to their adjacent cells. Something like this =sum(cell to the left, cell above). Let me know if you need more elaboration, or if you have the answer, great!
Solution
Paste this formula in the first cell next to your numbers or take a look at the Example Sheet
=IF(C2="",,IF(ISNUMBER(D1),C2+D1,0))
Explanation
We check the above cell ISNUMBER if so we calculate C2+D1 if not we put 0
IF(C2="",, to calculate onlt when the range C2:C is not Empty.
If you are looking for a single formula you can also try
=INDEX(IF(ISNUMBER(C2:C), SUMIF(ROW(C2:C),"<="&ROW(C2:C),C2:C),))
Can you please help me writing correct formula that "highlight a cell in Sheet2 when the same value already available in the Sheet1(of another workbook) cell with a "DONE" value in adjacent column"
I have tried and come up with the following formula to put in Conditional Formatting custom formula box.
=COUNTIFS(IMPORTRANGE("1dZmyi6HqjAQ4ddfaGS4afdYCCYsYXVu8Fa8JZoEbYYvWRnRrvw","⚗️ ALL PROJECTS!A3:R")D:D,D4,R:R,"DONE")
Unfortunately, its not working.
AFAIK this can't be done in a single conditional formatting. You'd be better of importing the data in a separate tab and then using the traditional conditional formatting to achieve your goal.
I have a spreadsheet with a custom formula that changes the colour of different cells based on the value in the dates column. I also frequently have to change the formula based on different times of the month.
I would like the formula to point to a cell eg A1 so that whenever I change the contents of A1, the custom formula itself will change.
Currently the custom conditional formatting formula is =E2>=TODAY() -21
I alternate between this and =AND(E2>DATE(2019,3,23),E2<DATE(2019,4,20))
I've tried to use =INDIRECT(A1) as the formula, with A1 cell content =E2>=TODAY() -21 but this doesn't work. I would really appreciate any tips on how to get this working.
custom formula:
=IF((($A$1="=E2>=TODAY()-21")*(E2>=TODAY()-21))+
(($A$1="=AND(E2>DATE(2019,3,23),E2<DATE(2019,4,20))")*((E2>DATE(2019,3,23))*(E2<DATE(2019,4,20)))),1)
demo spreadsheet
I have a sheet where I would like to turn a row a color based on the value of two cells. I already have conditional formatting based on one cell of the cells I want to use for the two cell formatting.
I am using =AND($J:$J="Cancel",$L:$L="Yes") for the two cell formatting but it doesnt seem to work. Not sure if the first one =$J:$J="Cancel" is negating the formatting of the other or if if my formula is just bad.
Any advice would be appreciated.
if the trick is that you want the whole row to be colored that way, then all you need to modify is the "range" to apply it too, so you enter something like the start column and then just give it a row number as the second half of the range, without the column argument: A1:10001
That exact formula you listed =AND($J:$J="Cancel",$L:$L="Yes") worked for me when using the "custom formula" option:
I can make this work:
I have two cells A1 and B1, and if B1 = A1 I would like the cell to turn green.
However, I cannot seem to figure out how to make it generic enough when I copy the formatting for the rest of the column (b2:b100) that it works. Currently it well check the current cell vs A1 all the way down the column.
Im sure this is possible, but google's help documents weren't helpful to me.
Looks like this got it to work
Custom formula is:
=(B1=A1)*(B1<>"")
background color: Green
range ... B:B