This question already has answers here:
Find the first empty cell in the same column/row
(3 answers)
Closed 5 years ago.
I'm trying to get the first cell that is empty in a column but I don't have an idea how to accomplish that.
For example, I have this column
How can i get for example in A:7 that the first empty cell is 5 (i only get the number)
I tryied this, but is giving me a error
In A7 enter the array formula:
=MIN(IF(A1:A6="",ROW(A1:A6)))
Array formulas must be entered with Ctrl + Shift + Enter rather than just the Enter key.
EDIT#1:
Here is the Google Sheet equivalent:
Related
This question already has answers here:
How can I create a conditional that puts a value in one cell if there is certain value in another cell in Google Sheets
(1 answer)
Frustrating Formula - Help Needed with Google Sheets formula/method
(2 answers)
Closed 4 months ago.
imagine I have a column with a list of brand, how can I search for different brand name and replace their name with anoter label automatically?
If it was only 1 condition, I could do
IF(REGEXMATCH(LOWER(B27), "nike"), "Sport Shop", B27)
but what if I have 2 or more conditions-label to apply?
Here is an example:
Ideas?
Thanks
This question already has answers here:
Query is ignoring string (non numeric) value
(2 answers)
Closed 5 months ago.
I have a simple Query that groups my data by months that was working fine before, but now that I've introduced a formula into my date column, it's not working anymore. (I'm guessing it's because the majority data in the column is now formulas instead of actual dates).
=Query(C5:L,"SELECT SUM(I) pivot MONTH(C)+1",1)
Is there a way for me to still get my intended Query data without removing my formulas in the date column? (Query formula is in M2)
Thank you in advance!
Link to sheet: https://docs.google.com/spreadsheets/d/1EpvLMboKJ0KeR7tTqBarF1AnAg3jelhKTkyBhwKNlK4/edit#gid=1335125620
Your formulas in Col C seem to be causing the issue since they're adding a blank space when there is no corresponding value in Col D:
=IF(D45=""," ",TIMESTAMP())
Instead, try:
=IF(D45="",,TIMESTAMP())
This question already has answers here:
Query is ignoring string (non numeric) value
(2 answers)
Closed 5 months ago.
Here is a copy of my sheet https://docs.google.com/spreadsheets/d/1b7ofD9f02yKiIvGYfCBi_GdhkRtgTAoY2NpftJmZaDQ/edit?usp=sharing
So my query is on the front tab 'Overall' in D1
=query(Data!A1:G,"SELECT * WHERE 1=1 "&IF(A2="All Raids",""," AND A contains "&A2&" ") &IF(B2="All Classes",""," AND LOWER(B) = LOWER('"&B2&"') "),1)
On the datasheet, I have people listen in raids 1,2 and 3.. and it works fine. However, if I were to change a value to something like BWL1 or BWL2, it will not display.
I got this code from a youtube tutorial, so I don't understand it 100%, but basically the "a2=all raids","" part is just to remove any filters, then the remaining is filtered by my drop-down menus, &A2& and &B2&.
Any ideas?
I've tried using A CONTAINS "&A2" instead of A = "&A2&", I just cant figure out a workaround to where any value (numberical+lettered) listed in my Datasheet column A works.
Thank you in advance for your time, I hope this makes sense :)
That's a known issue with query() function: query() has trouble with mixed datatypes (numeric and text in column A). To avoid this you can convert column A to text. See if this formula works
=query({ArrayFormula(to_text(Data!A1:A)), Data!B1:G},"SELECT * WHERE 1=1 "&IF(A2="All Raids","", " AND Col1 contains '"&A2&"'") &IF(B2="All Classes",""," AND LOWER(Col2) = LOWER('"&B2&"') "),1)
Note that, because of the use of 'contains' when '1' is selected in A2, it will also show rows containing BWL1. If you don't want that, change 'contains' to '='.
This question already has an answer here:
Google Sheet SUMIF not summing range
(1 answer)
Closed 3 years ago.
I am making a sheet to oversee funds
I am trying to make something like this in Google Sheets
D(n) = D(n-1) + B(n) - C(n) for the entire row of D
and so on for the entire row
I also would prefer if the remaining fund didn't show up unless a value for received or spent has been input
You can use SUMIF to get running totals of columns B and C, and subtract one from the other:
=ArrayFormula(if((B3:B="")*(C3:C=""),"",sumif(row(A3:A),"<="&row(A3:A),B3:B)-sumif(row(A3:A),"<="&row(A3:A),C3:C)+D2))
try:
=ARRAYFORMULA(IF((B3:B)+(C3:C),
MMULT(TRANSPOSE((ROW(B3:B)<=TRANSPOSE(ROW(B3:B)))*B3:B), SIGN(B3:B))+D2-
MMULT(TRANSPOSE((ROW(C3:C)<=TRANSPOSE(ROW(C3:C)))*C3:C), SIGN(C3:C)), IFERROR(1/0)))
This question already has answers here:
How to maintain absolute cell address even when deleting ranges?
(2 answers)
Closed 5 months ago.
I want to use the sparkline formula on a fix range("G:P").
Everyday i add another column next to column F into my sheet. So Column "G" becomes "I" and so on. The problem is that the formula does update the range aswell.
=SPARKLINE($G54:BM54)
to
=SPARKLINE($I54:BM54)
Is there a way to prevent that?
You can use INDEX or INDIRECT:
=SPARKLINE(INDEX(54:54;7):BM54;{"charttype"\"column";"negcolor"\"red";"color"\"green";"axis"\WAHR})
or
=SPARKLINE(INDIRECT("$G54:BM54");{"charttype"\"column";"negcolor"\"red";"color"\"green";"axis"\WAHR})