How can I lock the checkbox in column A if columns B and C are blank?
I do not see a way to add custom formulas in data validation if there is a checkbox in the column.
https://docs.google.com/spreadsheets/d/1iMYG_7JRh3SIsusbetmG6TkJhKPrqTe_pvizteOkpPs/edit?usp=sharing
If you are willing to insert an additional column to the left of the checkboxes (such that your checkboxes are in column B and the 'condition' columns are in C & D), then you can enter the following in A2 and drag it down for as many checkboxes as needed:
=if(and(isblank(C2),isblank(D2)),{"",false},"")
Hide the column afterwards. What is happening here is that when the IF evaluates to TRUE (= both condition cells blank), it attempts to extend an array literal one cell to the right (i.e. over the top of the checkbox) with a FALSE in the checkbox. This isn't allowed (as a FALSE is already present) so generates a #REF error in A2, but has the side effect of locking the checkbox to further input (as the IF can't be TRUE if the condition cells are both blank). Type something into the condition cells and the IF then evaluates to FALSE, which does not extend an array over the checkbox (which then means it can be checked and unchecked as required).
Related
I have a Sheet like this [minimal] example. The "Data" tab is a running list of points different groups have scored. This is constantly updating. The "Results" tabs gets a list of all the unique group names from the Data tab and add them as a row in Column A. So, if an entry for "Group5" is entered on the Data tab, a row with that name will appear on the Results tab. Similar for the columns on the results tab. Each unique action on the Data tab becomes a column on the results tab.
I would like to add a "Total" column to the last column on the Results tab. The problem is, if a new "action" category appeared on the data tab, it would take up the last column and the Total column would need to shift over one. Is there a way to get the "Total" column to float so that it is always on the end without conflicting with the query formula?
In B1 cell put below formula-
={TRANSPOSE(UNIQUE(QUERY(Data!C2:C, "SELECT C where C is not null",0))),"Total"}
In B2 cell put below formula then drag down and right as needed.
=IF(OR($A2="",B$1=""),"",IF(B$1="Total",SUMIFS(Data!$D$2:$D,Data!$B$2:$B,$A2),
SUMIFS(Data!$D$2:$D,Data!$C$2:$C,B$1,Data!$B$2:$B,$A2)))
Is there any built-in function to check if there's multiple TRUE condition ? Like
OR() but can detect if there's more than 1 TRUE. For example :
i use this conditional formatting (custom formula) in cell A3:
=OR(not(isblank(B3)), not(isblank(C3)) , not(isblank(D3)), not(isblank(E3)) )
so background color of A3 will become RED if any of those cells (B3,c3,d3,e3) is not blank. But i want it to become RED only if 2 or more cells is not blank. This is to give me warning if there's duplication . I only want 1 cells to be not blank. iF there 2 or more, i want the A3 to be RED so i know there's duplication.
yes you can do:
=(B15=A15)+(C15=A15)+(D15=A15)>1
I'm working on a spreadsheet in Google Sheets for multiple people, and indicate in a column who the person the information on that row pertains to. I want to format cells on that column, only when they're not empty, based on what person is selected in another cell.
I can create functions to format things based on another cell's entry, but I don't know how to compound that with a function for not being empty. Sorry if this is super basic, I just can't figure it out.
Yep. This is a super simple thing to do.
1) Highlight the column where the person's name appears.
2) From the main menu, select Format, Conditional formatting.
3) In the sidebar click add a new rule. what you want to do is create one rule for each name that appears (or could appear) in that column.
4) Under "Format cells if, select "Text is exactly"
5) Type the name in the cell where it says Value or Formula
6) Choose a background colour to suit.
7) Click Done.
8) Repeat steps 3 to 7 for each person; but change the background colour in each case.
Here's an example.
I want to apply the colours in a list to an array of cells. The list contains the items that are made available in a data validation drop-down for each cell. This example should show what I mean. I have manually set the backgrounds of the cells to match the key but I want to do this automatically, so that when a cell is assigned from a drop-down it gets the colour from the key table.
Can this be done with conditional formatting (bearing in mind that the key list will get new members/colours)?
No. But the whole range (table and dropdown cells) can be formatted with CF formula rules (one per colour).
I have two seemingly identical TcxGrids bound to two different tables. On one grid, when the column header is dragged and dropped to the group panel, a large X appears above the column being dragged, when it is dropped the column is immediately hidden. On the other grid a big circle with a line through it shows and it cannot be dropped on to the group panel. The Options.Grouping for both columns is false. Why the difference in the two behaviors ? I cannot see a property setting difference but I'm sure there must be one somewhere that causes this behavior. What property is it ?
John
Inspect the properties of the column which won't group in the Object Inspector. Probably, you'll find that its DisableGrouping property is set to True. If it is, set it to False. If that doesn't work, a) I'll take this answer down and b) edit your q to add the contents of your DFM.
There are two places in DX grid that control the ability to group columns. First is at the grid level and it takes precedent over the columns' individual Options.Grouping settings. Second is at the column level. Look at .OptionCustomize.ColumnGrouping. It may be set to False.