Hi Everyone,
the initial data is from a previous post to learn and train however, I'm stuck and would appreciate help.
Thank you so much for any guidance and assistance.
the initial data is from a previous post to learn and train however, I'm stuck and would appreciate help.
Thank you so much for any guidance and assistance.
SCAN to count Sections.xlsx | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | |||
2 | Section 1 | Section 2 | Section 3 | |||||||||||||||||||
3 | Column1 | Column2 | Column3 | Column4 | Column5 | Column6 | Column7 | Column8 | Section 1 | Column1 | 1 | |||||||||||
4 | Column2 | |||||||||||||||||||||
5 | Column3 | |||||||||||||||||||||
6 | Section 2 | Column4 | 2 | |||||||||||||||||||
7 | Column5 | |||||||||||||||||||||
8 | Column6 | |||||||||||||||||||||
9 | Section 3 | Column7 | 3 | |||||||||||||||||||
10 | Column8 | |||||||||||||||||||||
11 | ||||||||||||||||||||||
12 | ||||||||||||||||||||||
13 | ||||||||||||||||||||||
14 | ||||||||||||||||||||||
15 | Section | 1 | =LET( arr, INDEX(L3#,,1)<>"", IF(arr, SCAN(0, arr, LAMBDA(a,v, a+v)), ""), Vstack( Hstack("Section","Running"), Hstack(L3:L10,arr) ) ) | |||||||||||||||||||
16 | ||||||||||||||||||||||
17 | ||||||||||||||||||||||
18 | Section | 2 | ||||||||||||||||||||
19 | ||||||||||||||||||||||
20 | ||||||||||||||||||||||
21 | Section | 3 | ||||||||||||||||||||
22 | ||||||||||||||||||||||
23 | ||||||||||||||||||||||
24 | ||||||||||||||||||||||
25 | Challenge: | |||||||||||||||||||||
26 | S15 is my attempt to take O3 and add col L3:L10 but it is not working | |||||||||||||||||||||
27 | Please note that S15 starts with ' to keep current attempt so you need to remove to test, which gives an error | |||||||||||||||||||||
28 | correct formula S15 to resemble L33# | |||||||||||||||||||||
29 | delete emptry rows | |||||||||||||||||||||
30 | ||||||||||||||||||||||
31 | ||||||||||||||||||||||
32 | desired end result | |||||||||||||||||||||
33 | Section | 1 | ||||||||||||||||||||
34 | Section | 2 | ||||||||||||||||||||
35 | Section | 3 | ||||||||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
L3:M10 | L3 | =TRANSPOSE(T(INDEX(2:3, {1;2}, COLUMN(Tbl)))) |
O3:O10 | O3 | =LET(arr, INDEX(L3#,,1)<>"", IF(arr, SCAN(0, arr, LAMBDA(a,v, a+v)), "")) |
L15:M22 | L15 | =HSTACK(IF(ISERROR(LEFT(TAKE(L3#,,1),FIND(" ",TAKE(L3#,,1))-1)),"",LEFT(TAKE(L3#,,1),FIND(" ",TAKE(L3#,,1))-1)),O3#) |
L33:M35 | L33 | =FILTER(L15:M21,L15:L21<>"") |
Dynamic array formulas. |