Hi guys,
I'm learning array functions and while making my way through things I'm stuck in understanding something so wondering if someone could shed some light on this:
* in k34 formula I was able to nominate the array by naming J49# array and then limit it to only columns > 13 (col n, o,p,q,r,s)
* in J34 formula I wanted to do the same but can't get it to work. Instead, I refer to each col I pick from J49# via index formula (index.....col 5,6,7,8,9,10). As you can see Lamdba then has lots of variables
My questions are:
1. In k34 the column I pick are selected by column(j49#)>13. 13 refers to spreadsheet column M, not to a specific column of the array. How can this be done better?
2. K34 is much shorter than J34 so how can I apply the "shorter way" (limiting which col to add) from k34 to map function in j34. I can use isnumber as invoice col and col3 are numbers but not invoice amounts
Thanks for any assistance and direction.
Cheers H
I'm learning array functions and while making my way through things I'm stuck in understanding something so wondering if someone could shed some light on this:
* in k34 formula I was able to nominate the array by naming J49# array and then limit it to only columns > 13 (col n, o,p,q,r,s)
* in J34 formula I wanted to do the same but can't get it to work. Instead, I refer to each col I pick from J49# via index formula (index.....col 5,6,7,8,9,10). As you can see Lamdba then has lots of variables
My questions are:
1. In k34 the column I pick are selected by column(j49#)>13. 13 refers to spreadsheet column M, not to a specific column of the array. How can this be done better?
2. K34 is much shorter than J34 so how can I apply the "shorter way" (limiting which col to add) from k34 to map function in j34. I can use isnumber as invoice col and col3 are numbers but not invoice amounts
Thanks for any assistance and direction.
Cheers H
Let Function - Split Col and Group by Sum row^Mcol.xlsx | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
J | K | L | M | N | O | P | Q | R | S | |||
33 | long | short | ||||||||||
34 | Sum | Sum | ||||||||||
35 | 792.05 | 792.05 | ||||||||||
36 | 1,303.95 | 1,303.95 | ||||||||||
37 | 667.50 | 667.50 | ||||||||||
38 | 1,411.79 | 1,411.79 | ||||||||||
39 | 2,122.28 | 2,122.28 | ||||||||||
40 | 667.50 | 667.50 | ||||||||||
41 | 1,561.44 | 1,561.44 | ||||||||||
42 | 1,861.79 | 1,861.79 | ||||||||||
43 | 1,411.79 | 1,411.79 | ||||||||||
44 | 1,996.58 | 1,996.58 | ||||||||||
45 | ||||||||||||
46 | ||||||||||||
47 | ||||||||||||
48 | ||||||||||||
49 | Product | Invoice | Col3 | Col4 | Col5 | Col6 | Col7 | Col8 | Col9 | Col10 | ||
50 | Product A | 1234 | 3216540000 | Country Origin: UK | 5.85 | 39.00 | 0.00 | 18.68 | 0.00 | 728.52 | ||
51 | Product B | 5678 | 6541230000 | Country Origin: JP | 9.15 | 61.00 | 0.00 | 19.90 | 0.00 | 1,213.90 | ||
52 | Product C | 4321 | 9632541000 | Country Origin: UK | 12 | 100.00 | 0.00 | 5.50 | 0.00 | 550.00 | ||
53 | Product D | 8765 | 2365987000 | Country Origin: US | 9.9 | 100.00 | 0.00 | 12.89 | 0.00 | 1,289.00 | ||
54 | Product B | 5678 | 6541230000 | Country Origin: JP | 12.38 | 100.00 | 0.00 | 19.90 | 0.00 | 1,990.00 | ||
55 | Product C | 4321 | 9632541000 | Country Origin: US | 12 | 100.00 | 0.00 | 5.50 | 0.00 | 550.00 | ||
56 | Product A | 1234 | 3216540000 | Country Origin: UK | 7.72 | 78.00 | 0.00 | 18.68 | 0.00 | 1,457.04 | ||
57 | Product A | 1234 | 3216540000 | Country Origin: UK | 12.91 | 93.00 | 0.00 | 18.68 | 0.00 | 1,737.20 | ||
58 | Product D | 8765 | 2365987000 | Country Origin: US | 9.9 | 100.00 | 0.00 | 12.89 | 0.00 | 1,289.00 | ||
59 | Product A | 1234 | 3216540000 | Country Origin: UK | 9.9 | 100.00 | 0.00 | 18.68 | 0.00 | 1,868.00 | ||
Test |
Cell Formulas | ||
---|---|---|
Range | Formula | |
J34:J44 | J34 | =VSTACK("Sum",DROP(MAP(INDEX(J49#,,5),INDEX(J49#,,6),INDEX(J49#,,7),INDEX(J49#,,8),INDEX(J49#,,9),INDEX(J49#,,10),LAMBDA(a,b,c,d,e,f,a+b+c+d+e+f)),1)) |
K34:K44 | K34 | =VSTACK("Sum",DROP(BYROW(FILTER(J49#,COLUMN(J49#)>13,),LAMBDA(row,SUM(row))),1)) |
J49:S59 | J49 | =J2# |
Dynamic array formulas. |
Named Ranges | ||
---|---|---|
Name | Refers To | Cells |
_FilterDatabase | =Test!$J$2:$S$12 | J49 |