Selecting a sub row cell in google sheet - google-sheets

While selecting one entire row we can use ={Sheet1!1:1}. I am interested in knowing how do we select a sub row starting from B1 and till the end. Is there any way to do so without using Apps Script?
Edit 1: THe solution provided by #Marios works but let me just add a modification to my problem. I want to use the columns for column validation as shown below:
Whatever was suggested in answer works in general but I wanted to use that criterion for data validation dropdown. Sorry for the confusion.

What about this:
={Sheet1!B1:1}
Update:

Related

Dynamic/Dependent Dropdown List Without Apps Scripts

I didn't want to use Apps Scripts at first because I was too lazy to learn it but now I find it Way more fun to try and wrok around the limitations of using formulas only.
PROBLEM:
So I'm trying to do is to make a Dynamic/Dependent Dropdown List without Using Apps Scripts.
SOLUTION:
Using INDEX To Change the C Column based on A2's Value, And make B2 Dropdown list from C:C
SOLUTION's PROBLEM:
So the plan is to make these Dynamic/Dependent Dropdown List in every Row, Thus needing a Column for every row.
SOLUTION's PROBLEM's SOLUTION:
Using TRANSPOSE we can make the list change from Vertical to Horizontal
THIS WORKS GRRRRRRREAT, this means that each row will have its own list on the same row AND if the list becomes longer, the TRANSPOSE function will add columns by it self as needed... but there's a small teeny tiny pet peeve with it.
SOLUTION's PROBLEM's SOLUTION's PET PEEVE:
So I want the sheet to look good, I don't want the data holder cells to show, so I can simply hide the columns... BUT if the list gets longer, it will add columns and they won't be hidden
SOLUTION's PROBLEM's SOLUTION's PET PEEVE's SOLUTION:
I found that if you group the columns, it gives you a little button at the top that if you click it then it will hide all the columns in the group, And if you includ the last column in your sheet in the group, then any new columns will be added to that group.
...... Okay last one I swear.
SOLUTION's PROBLEM's SOLUTION's PET PEEVE's SOLUTION's PET PEEVE:
It's true that it will group any new column will be added to the group, BUT it won't hide them.
If you just double click the -/+ Button then it will hide them... okay I lied about it being the last one.
SOLUTION's PROBLEM's SOLUTION's... Problem....... ah who cares
Having the columns grouped does make it easier to hide any new columns, but i'm not looking to make the manual easier, I want to fully automat it... also I hate the big bar that's always there when there's a grouped columns.
Unrelated Fun Fact: did you know that using the comment function returns a 0? I didn't...
so isblank in =isblank(J20 + N("This is a comment To say that J20 is indeed blank")) returns FALSE
TL;DR I'm looking for a way to auto hide any new columns created after column D for example OR use another cleaner way to make Dynamic/Dependent Dropdown List without Using Apps Scripts.

Formula to display values in one column that do NOT appear in another column

I want to know which values in column A do NOT appear anywhere in column B. Right now I have conditional formatting to highlight those cells, but I'd love to have a listing of the values in another column so that I don't have to manually go through and pull the values myself.
Sample sheet is here.
try:
=FILTER(A2:A, NOT(COUNTIFS(B2:B, A2:A)))
I'm pretty sure this should do it. I put it in your sheet.
Update, sorry I misread first time.
=FILTER(A2:A,ISERROR(MATCH(A2:A,$B:$B,FALSE)))

Google sheets, two-sheet dependent conditional formatting

My problem is probably trivial ... However, I was looking for similar problems and their solutions either do not work for me or I can not apply them.
I have 2 sheets - SheetA and SheetB. They are identical. I want to select every cell in SheetA that is no longer identical to Sheet B.
I was able to use (found here on Stack Overflow) such a function in conditional formatting:
= A1 <> INDIRECT ("SheetB! A" & ROW ())
It works if the range is column A. I know that I can apply this function to each column separately, but there is certainly a way that I can apply the same formula to the whole worksheet.
Will there be anyone who can show me the correct formula?
Edit: I tried to use above formula to every column... And my file become to work very slow... So whoever wants to do the same... think again.
After some tries I decided to move everything from SheetB to SheetA. I paste it a 1000 rows under data of Sheet A. Works fine without "indirect" function. No slow downs. It is not a perfect solution but it works.
But even after my problem is solved different way, I would like to know what is the correct formula for my problem... it might be useful for the future with smaller amount of data.
Solved ;)
You should be able to use the Address function to get the address of the current cell from its row and column:
=A1<>indirect("sheetB!"&address(row(),column()))
or for case-sensitive match:
=not(exact(A1,indirect("sheetB!"&address(row(),column()))))

google sheets - Arrayformula

I have created a form using google forms, and I want to automatically check the answers when a new submit is done.
When the user submit his/her question, a new line is added in a responses sheet. This is where I need to add some magic ;)
SO, in my responses sheet, I have the right answers in the second line...something like this
A B C
1
2 RightAnswer1, RightAnswer2, RightAnswer3....
Using the arrayformula function, I have added new colums (column D,E,F,G and so on) on every row checking against the correct answer on line 2.
The formula goes something like this;
=IF(ARRAYFORMULA(A3:A=A2),1,0)
And it works like a charm :)
BUT, then I want to add a column at the end of each row with the sum of all the right answers, lets say to column Z on every row...this is where I want to sum all the 1's (correct answers).
I have tried something like this;
=IF(ARRAYFORMULA(<any kind of check that is true>),sum(D3:Z3),0)
This will always return the sum of D3:Z3 on every line, and this is not what I want. I want to sum the columns on the line-number that was just added. So I have tried to alter this expression in several ways , having everything in the arrayformula expression, altering the sum expression to (D3:D) to hopefully get it to work on the current line, but without any luck.
I have search the web for answers, but found nothing to help me...
Do you have any suggestions?
One way:
=ArrayFormula(IF(LEN(D3:D),SUMIF(IF(COLUMN(D3:Z3),ROW(D3:D)),ROW(D3:D),D3:Z),))
Although it would be possible to "skip the middle man" and process the raw data alone; assuming the answers are in A2:Z2, and the data to sum is in A3:Z, then:
=ArrayFormula(IF(LEN(A3:A),COUNTIF(IF(A3:Z=A2:Z2,ROW(A3:A)),ROW(A3:A)),))

conditional formatting for newly added rows

Ok, I really have no business working in spreadsheets or any data entry program for that matter. So basically what I am saying is I have no idea how to use much of the formula and script/language features. So any help would be AWESOME!
Heres my issue...
I have two Columns, One contains Conditional formatting (Cell Color) for for 3 variables respectfully. The Other Column is a DropDrown with a list.
I'm hoping to avoid explaining to the person(s) here how to keep applying rules as new Rows are added to the end of the sheet.
Is there an a script someone could dig up for me that (I'm guessing onEdit) will automatically apply my Conditional Formatting and DropDowns the new Rows?
Thank you so much!
I'm not sure this would ever receive another answer so, for the moment considering only I need to to just compare b3-g3>color h3 b4-g4> color h41:
In New Google Sheets, apply your formula to H2:-
=arrayformula(if(G2:G=0,"",if(B2:B=G2:G,"Completed",IF(B2:B>G2:G,"Back Ordered",if(B2:B<G2:G,"Over Shipped")))))
and rules like these in Conditional formatting...:
and I think as new rows are added and data populated in A:G the formulae (both if and Conditional) extend automatically, with no fill where the cell in Column G is 0 or empty.

Resources