ARRAYFORMULA Function

Relevant answer

Bart Smith 1 year ago

Use FLOOR

So if your time offset in hours is in cell A2, your dates are in B2:B, your times are in C2:C

For the new date:

=ARRAYFORMULA(FLOOR(B2:B+C2:C+(A2/24),1))

For the new time:

=ARRAYFORMULA(C2:C+(A2/24))

Or wrap them all together into one:

=ARRAYFORMULA({FLOOR(B2:B+C2:C+(A2/24),1),C2:C+(A2/24)})

https://docs.google.com/spreadsheets/d/1uYwshdis29Te5D-afHPzMKSZB1X4Y50qqZdERIRex7M/edit?usp=sharing

1 Like

Relevant answer

Daphne Melo 1 year ago

Na célula G2, coloca a seguinte fórmula:

=ARRAYFORMULA(SE(D2:D="";"";PROCV(D2:D;{{0;SEQUENCE(9;1;19;5)}'Página1'!$B$3:$C$12};SE(F2:F='Página1'!$B$2;2;3);1)))

obs: Substitui o nome 'Página1' para o nome da aba onde está sua tabela 1 - a que recebe as idades. Ou se as tabelas tiverem na mesma aba, apenas remova o 'Página1' da fórmula.

1 Like

Relevant answer

Rudyard Gomez 1 year ago

Just try this if it works for you.

=IF(ISNUMBER(MATCH(A3,{"Winter","Spring","Summer"},0)),A3,IF(ISNUMBER(MATCH(A2,{"Winter","Spring","Summer"},0)),MAX($B$2:B2)+1,IFERROR(VLOOKUP(A3,A$2:B2,2,FALSE),MAX($B$2:B2)+1)))

0 Likes

Relevant answer

Billy Boerner 1 year ago

Sorry I am having trouble posting. The formula you posted didn't work. It's still only pulling the first Office Expenses. For some reason it's not summing the second one Travel Expenses. Any more formulas you may have? Thank you for your help!

0 Likes

Relevant answer

Will Taylor 1 year ago

try: function myFunction() { var ss = SpreadsheetApp.getActiveSpreadsheet().getActiveSheet(); ss.getRange("B1").setFormula("=ARRAYFORMULA(IF(A1="","",IFERROR(IFERROR(REGEXREPLACE(A1,"(\d+)/(\d+)/(\d{2,4})","$2/$1/$3")*1,A1)*1,A1)))"); var lr = ss.getLastRow(); var filldownRange = ss.getRange(1, 2, lr); ss.getRange("B1").copyTo(filldownRange); }

0 Likes

Relevant answer

Marc Bergiste 1 year ago

Hi, check this out, using QUERY and RANK (which is actualy not necessary, as the names wlll always be ranked in order 1 to 9). =QUERY(B4:C14,"SELECT B, SUM(C) WHERE C IS NOT NULL GROUP BY B ORDER BY SUM(C) DESC",0).

https://docs.google.com/spreadsheets/d/1NYBfHD2nJGi7PMkaNhlp04S6sBgTtMF-INOoXCQ0xoc/copy?usp=sharing

Hope this helps !

1 Like

Hot network questions