Xlambda
Well-known Member
- Joined
- Mar 8, 2021
- Messages
- 860
- Office Version
- 365
- Platform
- Windows
ACLMSPLIT splits chosen column of an array, by a chosen delimiter, embedding the result with the rest of the array. Calls ATEXTSPLIT , APPEND2H
Other function in minisheet ARANDOM
Other function in minisheet ARANDOM
Excel Formula:
=LAMBDA(a,c,d,
LET(l,COLUMNS(a),s,SEQUENCE(,l),
x,INDEX(a,,c),y,ATEXTSPLIT(x,d,),z,FILTER(a,s<c),v,FILTER(a,s>c),
IFERROR(APPEND2H(APPEND2H(z,y,),v,),"check data")
)
)
LAMBDA 7.0.xlsx | |||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | P | Q | R | S | T | U | V | W | X | Y | Z | AA | |||
1 | sample | =ACLMSPLIT(A2:E27,2,"_") | =ACLMSPLIT(G2#,3," ") | ||||||||||||||||||||||||||
2 | 01-01-21 | ID-16_Rey Bradly Shelton Ryburn | Gigi | 6 | MidWest | 01-01-21 | ID-16 | Rey Bradly Shelton Ryburn | Gigi | 6 | MidWest | 01-01-21 | ID-16 | Rey | Bradly | Shelton | Ryburn | Gigi | 6 | MidWest | |||||||||
3 | 01-09-20 | ID-12_Alfred Jamel Poulsen Mattei | Sunset | 3 | MidWest | 01-09-20 | ID-12 | Alfred Jamel Poulsen Mattei | Sunset | 3 | MidWest | 01-09-20 | ID-12 | Alfred | Jamel | Poulsen | Mattei | Sunset | 3 | MidWest | |||||||||
4 | 01-04-20 | ID-5_Mel Jere Scheidler | Sunset | 3 | MidWest | 01-04-20 | ID-5 | Mel Jere Scheidler | Sunset | 3 | MidWest | 01-04-20 | ID-5 | Mel | Jere | Scheidler | Sunset | 3 | MidWest | ||||||||||
5 | 01-02-20 | ID-14_Houston Grinnell Levison | Majestic | 6 | South | 01-02-20 | ID-14 | Houston Grinnell Levison | Majestic | 6 | South | 01-02-20 | ID-14 | Houston | Grinnell | Levison | Majestic | 6 | South | ||||||||||
6 | 01-11-20 | ID-12_Alfred Jamel Poulsen Mattei | Yanaki | 12 | East | 01-11-20 | ID-12 | Alfred Jamel Poulsen Mattei | Yanaki | 12 | East | 01-11-20 | ID-12 | Alfred | Jamel | Poulsen | Mattei | Yanaki | 12 | East | |||||||||
7 | 01-04-20 | ID-9_Ricky Jamel Buskirk | Gigi | 12 | East | 01-04-20 | ID-9 | Ricky Jamel Buskirk | Gigi | 12 | East | 01-04-20 | ID-9 | Ricky | Jamel | Buskirk | Gigi | 12 | East | ||||||||||
8 | 01-01-20 | ID-9_Ricky Jamel Buskirk | Yanaki | 3 | MidWest | 01-01-20 | ID-9 | Ricky Jamel Buskirk | Yanaki | 3 | MidWest | 01-01-20 | ID-9 | Ricky | Jamel | Buskirk | Yanaki | 3 | MidWest | ||||||||||
9 | 01-01-21 | ID-4_Freddie Jere Otten Levison | Quad | 3 | Mexico | 01-01-21 | ID-4 | Freddie Jere Otten Levison | Quad | 3 | Mexico | 01-01-21 | ID-4 | Freddie | Jere | Otten | Levison | Quad | 3 | Mexico | |||||||||
10 | 01-11-20 | ID-7_Houston Arnoldo Ybarbo | Majestic | 12 | MidWest | 01-11-20 | ID-7 | Houston Arnoldo Ybarbo | Majestic | 12 | MidWest | 01-11-20 | ID-7 | Houston | Arnoldo | Ybarbo | Majestic | 12 | MidWest | ||||||||||
11 | 01-09-20 | ID-11_Theodore Grinnell Speth | Yanaki | 12 | East | 01-09-20 | ID-11 | Theodore Grinnell Speth | Yanaki | 12 | East | 01-09-20 | ID-11 | Theodore | Grinnell | Speth | Yanaki | 12 | East | ||||||||||
12 | 01-12-20 | ID-12_Alfred Jamel Poulsen Mattei | Yanaki | 18 | Canada | 01-12-20 | ID-12 | Alfred Jamel Poulsen Mattei | Yanaki | 18 | Canada | 01-12-20 | ID-12 | Alfred | Jamel | Poulsen | Mattei | Yanaki | 18 | Canada | |||||||||
13 | 01-05-20 | ID-4_Freddie Jere Otten Levison | Majestic | 3 | East | 01-05-20 | ID-4 | Freddie Jere Otten Levison | Majestic | 3 | East | 01-05-20 | ID-4 | Freddie | Jere | Otten | Levison | Majestic | 3 | East | |||||||||
14 | 01-07-20 | ID-5_Mel Jere Scheidler | Crested | 6 | Canada | 01-07-20 | ID-5 | Mel Jere Scheidler | Crested | 6 | Canada | 01-07-20 | ID-5 | Mel | Jere | Scheidler | Crested | 6 | Canada | ||||||||||
15 | 01-04-21 | ID-12_Alfred Jamel Poulsen Mattei | Quad | 12 | South | 01-04-21 | ID-12 | Alfred Jamel Poulsen Mattei | Quad | 12 | South | 01-04-21 | ID-12 | Alfred | Jamel | Poulsen | Mattei | Quad | 12 | South | |||||||||
16 | 01-12-20 | ID-9_Ricky Jamel Buskirk | Crested | 3 | West | 01-12-20 | ID-9 | Ricky Jamel Buskirk | Crested | 3 | West | 01-12-20 | ID-9 | Ricky | Jamel | Buskirk | Crested | 3 | West | ||||||||||
17 | 01-02-20 | ID-17_Rudolf Bradly Garth | Sunset | 3 | NorthWest | 01-02-20 | ID-17 | Rudolf Bradly Garth | Sunset | 3 | NorthWest | 01-02-20 | ID-17 | Rudolf | Bradly | Garth | Sunset | 3 | NorthWest | ||||||||||
18 | 01-02-20 | ID-19_Houston Myron Enderle | Majestic | 18 | East | 01-02-20 | ID-19 | Houston Myron Enderle | Majestic | 18 | East | 01-02-20 | ID-19 | Houston | Myron | Enderle | Majestic | 18 | East | ||||||||||
19 | 01-12-20 | ID-4_Freddie Jere Otten Levison | Sunset | 3 | NorthWest | 01-12-20 | ID-4 | Freddie Jere Otten Levison | Sunset | 3 | NorthWest | 01-12-20 | ID-4 | Freddie | Jere | Otten | Levison | Sunset | 3 | NorthWest | |||||||||
20 | 01-04-20 | ID-18_Eduardo Jarrod Dawkins Fogle | Quad | 18 | Canada | 01-04-20 | ID-18 | Eduardo Jarrod Dawkins Fogle | Quad | 18 | Canada | 01-04-20 | ID-18 | Eduardo | Jarrod | Dawkins | Fogle | Quad | 18 | Canada | |||||||||
21 | 01-01-21 | ID-15_Vance Harry Garth Levison | Yanaki | 18 | South | 01-01-21 | ID-15 | Vance Harry Garth Levison | Yanaki | 18 | South | 01-01-21 | ID-15 | Vance | Harry | Garth | Levison | Yanaki | 18 | South | |||||||||
22 | 01-02-20 | ID-19_Houston Myron Enderle | Gigi | 3 | South | 01-02-20 | ID-19 | Houston Myron Enderle | Gigi | 3 | South | 01-02-20 | ID-19 | Houston | Myron | Enderle | Gigi | 3 | South | ||||||||||
23 | 01-04-21 | ID-11_Theodore Grinnell Speth | Gigi | 12 | MidWest | 01-04-21 | ID-11 | Theodore Grinnell Speth | Gigi | 12 | MidWest | 01-04-21 | ID-11 | Theodore | Grinnell | Speth | Gigi | 12 | MidWest | ||||||||||
24 | 01-02-20 | ID-4_Freddie Jere Otten Levison | Sunset | 6 | MidWest | 01-02-20 | ID-4 | Freddie Jere Otten Levison | Sunset | 6 | MidWest | 01-02-20 | ID-4 | Freddie | Jere | Otten | Levison | Sunset | 6 | MidWest | |||||||||
25 | 01-08-20 | ID-18_Eduardo Jarrod Dawkins Fogle | Sunset | 6 | South | 01-08-20 | ID-18 | Eduardo Jarrod Dawkins Fogle | Sunset | 6 | South | 01-08-20 | ID-18 | Eduardo | Jarrod | Dawkins | Fogle | Sunset | 6 | South | |||||||||
26 | 01-02-20 | ID-6_Jesus Pasquariello Ryburn | Yanaki | 18 | Mexico | 01-02-20 | ID-6 | Jesus Pasquariello Ryburn | Yanaki | 18 | Mexico | 01-02-20 | ID-6 | Jesus | Pasquariello | Ryburn | Yanaki | 18 | Mexico | ||||||||||
27 | 01-02-20 | ID-1_Theodore Kriger Ryburn | Majestic | 12 | NorthWest | 01-02-20 | ID-1 | Theodore Kriger Ryburn | Majestic | 12 | NorthWest | 01-02-20 | ID-1 | Theodore | Kriger | Ryburn | Majestic | 12 | NorthWest | ||||||||||
28 | |||||||||||||||||||||||||||||
29 | Very useful when we need to create random array of products that have | other function on minisheet | |||||||||||||||||||||||||||
30 | for example, unit prices, because can not be shuffled, they should remain consistent | ARANDOM | |||||||||||||||||||||||||||
31 | or, like in the above array, the ID nr associated with names, should remain unique | Since left array recalculates, we copy it as values, and, adding the headers, we obtain a nice useful random array | |||||||||||||||||||||||||||
32 | Date | ID-nr_Name | Prod.,Unt Price | Pack. | Region | Date | ID-nr | Name | Prod. | Unt.Price | Pack. | Region | Unt.Sold | Total | |||||||||||||||
33 | sample | =ACLMSPLIT(ACLMSPLIT(ARANDOM(A34:E59,20),2,"_"),4,",") | =RANDARRAY(ROWS(G34#),,2,10,1) | Date | ID-nr | Name | Prod. | Unt.Price | Pack. | Region | Unt.Sold | Total | |||||||||||||||||
34 | 01-01-21 | ID-1_Theodore Kriger Ryburn | Quad,20.5 | 3 | West | 01-02-20 | ID-11 | Theodore Grinnell Speth | Yanaki | 10.2 | 12 | South | 6 | 734.4 | 01-02-20 | ID-4 | Freddie Jere Otten Levison | Quad | 20.5 | 3 | MidWest | 9 | 553.5 | ||||||
35 | 01-09-20 | ID-2_Antione Myron Scheidler Fogle | Majestic,17.3 | 6 | South | 01-04-21 | ID-19 | Houston Myron Enderle | Quad | 20.5 | 6 | NorthWest | 10 | 1230 | 01-02-20 | ID-19 | Houston Myron Enderle | Sunset | 14.8 | 18 | West | 9 | 2397.6 | ||||||
36 | 01-04-20 | ID-3_Antione Grinnell | Yanaki,10.2 | 12 | MidWest | 01-04-20 | ID-19 | Houston Myron Enderle | Quad | 20.5 | 6 | West | 7 | 861 | 01-05-20 | ID-14 | Houston Grinnell Levison | Quad | 20.5 | 12 | NorthWest | 7 | 1722 | ||||||
37 | 01-02-20 | ID-4_Freddie Jere Otten Levison | Crested,9.85 | 18 | Canada | 01-01-21 | ID-6 | Jesus Pasquariello Ryburn | Gigi | 18.7 | 6 | Canada | 10 | 1122 | 01-02-20 | ID-20 | Mel Jamel Valtierra Hoge | Quad | 20.5 | 6 | West | 3 | 369 | ||||||
38 | 01-11-20 | ID-5_Mel Jere Scheidler | Sunset,14.8 | Mexico | 01-05-20 | ID-17 | Rudolf Bradly Garth | Yanaki | 10.2 | 3 | South | 4 | 122.4 | 01-08-20 | ID-1 | Theodore Kriger Ryburn | Yanaki | 10.2 | 18 | NorthWest | 3 | 550.8 | |||||||
39 | 01-04-20 | ID-6_Jesus Pasquariello Ryburn | Gigi,18.7 | NorthWest | 01-07-20 | ID-2 | Antione Myron Scheidler Fogle | Majestic | 17.3 | 12 | Canada | 7 | 1453.2 | 01-11-20 | ID-8 | Rey Myron Mcglothlin Mattei | Majestic | 17.3 | 12 | NorthWest | 4 | 830.4 | |||||||
40 | 01-01-20 | ID-7_Houston Arnoldo Ybarbo | East | 01-11-20 | ID-6 | Jesus Pasquariello Ryburn | Crested | 9.85 | 18 | MidWest | 7 | 1241.1 | 01-02-20 | ID-19 | Houston Myron Enderle | Sunset | 14.8 | 3 | NorthWest | 10 | 444 | ||||||||
41 | 01-01-21 | ID-8_Rey Myron Mcglothlin Mattei | 01-02-20 | ID-10 | Mel Bradly Buskirk | Gigi | 18.7 | 6 | Mexico | 8 | 897.6 | 01-01-21 | ID-5 | Mel Jere Scheidler | Yanaki | 10.2 | 3 | East | 2 | 61.2 | |||||||||
42 | 01-11-20 | ID-9_Ricky Jamel Buskirk | 01-12-20 | ID-8 | Rey Myron Mcglothlin Mattei | Sunset | 14.8 | 6 | Canada | 4 | 355.2 | 01-04-21 | ID-1 | Theodore Kriger Ryburn | Crested | 9.85 | 6 | Mexico | 6 | 354.6 | |||||||||
43 | 01-09-20 | ID-10_Mel Bradly Buskirk | 01-01-20 | ID-3 | Antione Grinnell | Majestic | 17.3 | 12 | Canada | 8 | 1660.8 | 01-04-20 | ID-12 | Alfred Jamel Poulsen Mattei | Yanaki | 10.2 | 18 | MidWest | 3 | 550.8 | |||||||||
44 | 01-12-20 | ID-11_Theodore Grinnell Speth | 01-01-21 | ID-1 | Theodore Kriger Ryburn | Sunset | 14.8 | 6 | Mexico | 2 | 177.6 | 01-02-20 | ID-14 | Houston Grinnell Levison | Gigi | 18.7 | 18 | MidWest | 7 | 2356.2 | |||||||||
45 | 01-05-20 | ID-12_Alfred Jamel Poulsen Mattei | 01-02-20 | ID-20 | Mel Jamel Valtierra Hoge | Yanaki | 10.2 | 12 | MidWest | 2 | 244.8 | 01-02-20 | ID-1 | Theodore Kriger Ryburn | Quad | 20.5 | 12 | MidWest | 10 | 2460 | |||||||||
46 | 01-07-20 | ID-13_Rey Jamel Dawkins Fogle | 01-02-20 | ID-16 | Rey Bradly Shelton Ryburn | Sunset | 14.8 | 3 | Mexico | 4 | 177.6 | 01-04-21 | ID-12 | Alfred Jamel Poulsen Mattei | Gigi | 18.7 | 6 | Canada | 6 | 673.2 | |||||||||
47 | 01-04-21 | ID-14_Houston Grinnell Levison | 01-02-20 | ID-11 | Theodore Grinnell Speth | Gigi | 18.7 | 18 | Canada | 6 | 2019.6 | 01-02-20 | ID-11 | Theodore Grinnell Speth | Sunset | 14.8 | 12 | South | 3 | 532.8 | |||||||||
48 | 01-12-20 | ID-15_Vance Harry Garth Levison | 01-04-21 | ID-6 | Jesus Pasquariello Ryburn | Crested | 9.85 | 6 | Mexico | 2 | 118.2 | 01-02-20 | ID-15 | Vance Harry Garth Levison | Majestic | 17.3 | 6 | Mexico | 3 | 311.4 | |||||||||
49 | 01-02-20 | ID-16_Rey Bradly Shelton Ryburn | 01-09-20 | ID-14 | Houston Grinnell Levison | Sunset | 14.8 | 18 | West | 7 | 1864.8 | 01-01-21 | ID-2 | Antione Myron Scheidler Fogle | Quad | 20.5 | 18 | MidWest | 4 | 1476 | |||||||||
50 | 01-02-20 | ID-17_Rudolf Bradly Garth | 01-02-20 | ID-14 | Houston Grinnell Levison | Yanaki | 10.2 | 6 | Mexico | 6 | 367.2 | 01-12-20 | ID-4 | Freddie Jere Otten Levison | Gigi | 18.7 | 6 | MidWest | 3 | 336.6 | |||||||||
51 | 01-12-20 | ID-18_Eduardo Jarrod Dawkins Fogle | 01-02-20 | ID-5 | Mel Jere Scheidler | Majestic | 17.3 | 18 | NorthWest | 9 | 2802.6 | 01-02-20 | ID-12 | Alfred Jamel Poulsen Mattei | Quad | 20.5 | 3 | MidWest | 8 | 492 | |||||||||
52 | 01-04-20 | ID-19_Houston Myron Enderle | 01-04-20 | ID-6 | Jesus Pasquariello Ryburn | Yanaki | 10.2 | 3 | Mexico | 8 | 244.8 | 01-02-20 | ID-9 | Ricky Jamel Buskirk | Yanaki | 10.2 | 3 | Canada | 7 | 214.2 | |||||||||
53 | 01-01-21 | ID-20_Mel Jamel Valtierra Hoge | 01-04-20 | ID-16 | Rey Bradly Shelton Ryburn | Sunset | 14.8 | 6 | West | 3 | 266.4 | 01-04-20 | ID-4 | Freddie Jere Otten Levison | Quad | 20.5 | 6 | MidWest | 10 | 1230 | |||||||||
54 | 01-02-20 | ↑ | ↑ | ↑ | ↑ | =K34:K53*L34:L53*N34:N53 | |||||||||||||||||||||||
55 | 01-04-21 | ID nr consistent with Name | Prduct consistent with Unit Price | ||||||||||||||||||||||||||
56 | 01-02-20 | (ex:ID-1 always associated with Theodore…) | (ex:Quad price always 20.5) | ||||||||||||||||||||||||||
57 | 01-08-20 | ||||||||||||||||||||||||||||
58 | 01-02-20 | ||||||||||||||||||||||||||||
59 | 01-02-20 | ||||||||||||||||||||||||||||
60 | |||||||||||||||||||||||||||||
ACLMSPLIT post |
Cell Formulas | ||
---|---|---|
Range | Formula | |
G1,N33,G33,N1 | G1 | =FORMULATEXT(G2) |
G2:L27 | G2 | =ACLMSPLIT(A2:E27,2,"_") |
N2:V27 | N2 | =ACLMSPLIT(G2#,3," ") |
G34:M53 | G34 | =ACLMSPLIT(ACLMSPLIT(ARANDOM(A34:E59,20),2,"_"),4,",") |
N34:N53 | N34 | =RANDARRAY(ROWS(G34#),,2,10,1) |
O34:O53 | O34 | =K34:K53*L34:L53*N34:N53 |
O54 | O54 | =FORMULATEXT(O34) |
Dynamic array formulas. |
Upvote
0