It is as simple as using the following sequence formula
Or you even could have something like this:
You could even use the SEQUENCE function for dates
date '"&TEXT(TODAY(), "yyyy-mm-dd")&"'"
The last " should be placed in a proper place in order to have a text value as the second argument of QUERY.
'TODAY()' doesn't returns Today's date, it returns a string with the word TODAY followed by parenthesis.
This formula, Dragged down in column B:
=ARRAYFORMULA(IF(A2="",,QUERY(QUERY(IMPORTRANGE(A2,"Sheet1!B2:F10"), "select * where Col1 is not null" )&"|",,9^99)))
And then this formula just one time in cell H2:
Should allow you to build the aggregated dataset you're looking for.
The easiest way to generate an array of sequential number in Google Sheets is the =Sequence function.
Syntax : SEQUENCE(rows, columns, start, step)
SEQUENCE function on Google's Help Center
There's a way without dragging a cell with Arrayformula :
=ArrayFormula(ROW(INDIRECT("A1:A"&A2))) Where A2 is the n value
There are multiple ways to do this : Query, Filter but I think SUMIF will suits the most :
=trim(REGEXREPLACE(CONCATENATE(QUERY(A1:B10;"SELECT sum(B) where A = '"&C1&"'"));"sum";))
A | B | C
It looks like you are looking for a single formula solution but they could be hard to understand and maintain, specially if you aren't familiar on how the Google Sheets related features works.
Dates. Google Sheets handles dates as serialized numbers, where a day is one unit.
Because of the above feature we could create a list of dates by ...
If I remember my highschool days, your expression reads :
Sum of the n from 1 to 30.
I.E. 1000*1.07^1 + 1000*1.07^2 + 1000*1.07^3 + ...
Here's a way to do it :
Result is 101 073.04
You have the basic concept right just piece it together step by step. This does the job:
You split the string at whitespaces, this is safe because URLs don't contain white space so you're definitely not breaking them up. This ...
You can also use this single robust formula in cell B2:
REGEXREPLACE(TRANSPOSE(SPLIT(TRANSPOSE(ArrayFormula(join("♣︎", A2:A))),"♣︎")),"(?:.?(@[A-Z][a-z]\b))|(.*)","$1"&" ")," ")
An even simpler formula can be used if you don't have any empty rows in ...
(following OP's comment)
To exclude empty cells (which are counted as zeros altering the result) we adjust the formula by adding the FILTER function.
You can use this simple formula:
How can I make a COUNTIF(or similar) that counts the amount of people join within a time period?
You do not really need any regex function. You can use the different versions of the following formula instead.
To find all values within the second month (February)
To just find the Y ...
(following OP's comment)
Your formula works a treat but I failed to say that the column of numbers will contain empty cells - is it possible to tweak your formula so that it ignores empty cells?
The content of the second to last row with value in range D:D is provided by the above formula.
(following OP's edited question)
Please use the following in cell D2:
Please use the following formula:
(of course you can adjust the ranges to your liking)
If on the other hand need to show the results as in your example, use this one:...
You can do that using the following arrayformula in cell E2:
How the formula works:
First of all you need to make sure you place it in the correct row. That is if your range starts at the second row (like E2-E) row you place it in the second row. As you notice in the given formula the column is A. That is to show you ...
In your Google thread you mention:
Would really like to be able to convert this in one formula/step.
I would love if it if could handle the whole column down.
In this case, you can use the following formula