Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
irina_dragalasa pe Simpatie.ro
Femeie
24 ani
Bucuresti
cauta Barbat
26 - 65 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [EXCEL] LAMBDA Function to Add Running Total with Optional Parameters Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
TRaP
Moderator

Inregistrat: acum 8 ani
Postari: 955
No time to describe this at the moment, but here goes:

=LAMBDA(range;[initial_value];[spill_range];[has_headers];[col_num];
      LET(
         cols; COLUMNS(range);
         initial; IF(ISOMITTED(initial_value);0;initial_value);
      IF(AND(ISOMITTED(spill_range); ISOMITTED(has_headers);ISOMITTED(col_num);cols=1);
         SCAN(initial; range; LAMBDA(A;B; A+B));
         SCAN(initial; INDEX(range; SEQUENCE(ROWS(range)-1)+1; 2); LAMBDA(acc;x; acc + x))
         )
      )
)


- initial_value - is the value to start the running total with; by default it's 0, but you can choose a different value, an initial stock for example


pus acum 2 zile
   
Pagini: 1  

Mergi la