I'm using Google Sheets for a spreadsheet I'm working on.
Basically, I'm counting the number of times some different items (items are all listed in columns) live inside of different application windows (all my windows are listed in rows).
I'm just plopping a checkmark to say yes when an item lives in a window.
I want to tally this, and I'm using Countif like this: =countif(C4:C38,"✔")
However, if I find a new item, or window, everything has to move and I have to update the formula's column or row number.
Is there a way to make the Countif's range dynamic?
To count the checkmarks in column C, irrespective of how many rows are in the sheet:
=COUNTIF(C:C,"✔")
To count the checkmarks from the fourth row down in column C, and not be affected by row insertion/deletion:
=COUNTIF(INDIRECT("C4:C"),"✔")
To count the checkmarks from the fourth row in column C, down to the row above where the formula is placed:
=COUNTIF(INDIRECT("C4:C"&(ROW()-1)),"✔")
Related
I have table with recurring numbers (drom other table, or sheet)- for example [5,5,4,4,5,7] and I want to develop a drop down list in A1 to A6, but once a particular number is selected for a cell, I would like the drop down list for subsequent cells to only show the numbers that are left. If I select for example 4 from the list in A1, then the drop down box should show only [5,5,4,5,7] for A2, If I select the number 5 in A2, the drop down box in A3 would show [5,4,5,7]. If select the number 4 in A3, the drop down box shoudld show [5,5,7] in A4 and so on until the last cell only shows one number left.
I've tried and searched many yt channels, and only get the answer (and applied in my google sheets) for dropdown list that shows the numbers which are not selected, but each time I've tried to do this solution with recurring numbers it only shows me the numbers in list without duplication (in case above - it only shows [4,5,7])
Is it possible to create this kind of table or is there any elegant solution for this two problems??
I have a large spreadsheet that is the result of a query on another sheet. I'm trying to make a recurring (array?) formula that will repeat in every row.
The original formula is
=AND(Index(N2:N,1,1)="FALSE", Index(H2:H,1,1)="Regular", Index(O2:O,1,1)<44801)
This returns a True value if all 3 conditions are met. but only works on that row, so I need to copy it into each row (dragging the + marker on the cell down).
When data is added to the other sheet, the query returns more rows, I'd like not to have to do the copying of the formula to the new rows added
I tried to do this on the top row
=Arrayformula({"name of this column"; AND(Index(N2:N,1,1)="FALSE", Index(H2:H,1,1)="Regular", Index(O2:O,1,1)<44801)})
But I'm only getting a result in the row 2 and nothing in the following rows.
What am I doing wrong?
Try
=arrayformula((N2:N=FALSE)*(H2:H="Regular")*(O2:O<44801))
or
=arrayformula(if((N2:N=FALSE)*(H2:H="Regular")*(O2:O<44801),TRUE))
Right now I am tasked to compare similar data across 3 columns and its respective rows and then highlight them.
I was wondering whether if it is possible to format the spreadsheet so that the cells highlight on their own across their respective rows when similar data is entered into the cells.
I have attached an example in the link provided !
OK select the range you want to format then go to Format | Conditional format | Add new rule and choose the last option (Custom formula is...) under Format cells if...
Enter the following formula (adjusting range to how many rows and columns you have in your data)
=countifs($A$2:$A$18,$A2,$B$2:$B$18,$B2,$C$2:$C$18,$C2)>1
and choose the fill colour that you want.
The formula counts how many rows there are whose first three columns match the first three columns of the current row. If the result is greater than one, there is a duplicate and the current row should be formatted.
I have a google sheet that has 2 sheets, Sheet 1 with info in cells A and B.
I need to add a little formula in sheet 2, to check if any of the cells in sheet 1 column A (numbers) is bigger than the Numbers in column B cells, and then if so, say Yes else NO.
So IF in sheet1 any of the cells in Column A is bigger than in Column B, Then...."YES"
This checks on a row by row basis. If you want to know if ANY row in column A is bigger than in column B, that would be a bit different.
=if(Sheet1!A1>Sheet1!B1,"Yes","No")
I have a sheet that is the result of a query and can return an arbitrary number of result rows (the number of columns is fixed).
I am calculating the range that corresponds to the result set. This is working well. I use it to copy the result set into my sheet.
Now that I have the results copied to my sheet I want to add a column with a formula that works against the cells in the row. How to do this? The issue is that the number of rows is not fixed, how to have the formula apply to the rows that happen to be there.
Here is a sample sheet:
Result Set is the output of the query
Report is the sheet I made with a copy of the result set
Link to Sheet
Column C is what I am trying to populate, the number of rows for Columns A and B will update each time I open the sheet.
Another way:
=arrayformula(if(A13:A<>"",A13:A&"="&B13:B,""))