Hi,
in a recent post, I asked for help re arrays formulas and searching for matching strings and then apply categories. @Eric W was kind enough to jump on this and provide a solution, that works, which I'm grateful for.
However, as Eric is not on M365 his solution does not use ie byRow and other newer array formulas. So I thought, easy enough to adjust his solution....
And this is, where I'm stuck. I can't seem to get that working.
* I managed to get the search function working to search keyword columns from the mapping table to transaction in the transaction table and if found, return the category from the mapping table
* I also managed to get sumifs working to aggregate results
* I know that byRow can use the above function but I don't get this solved, so I must be making a mistake somewhere
Any help would be great.
Thanks very much
in a recent post, I asked for help re arrays formulas and searching for matching strings and then apply categories. @Eric W was kind enough to jump on this and provide a solution, that works, which I'm grateful for.
However, as Eric is not on M365 his solution does not use ie byRow and other newer array formulas. So I thought, easy enough to adjust his solution....
And this is, where I'm stuck. I can't seem to get that working.
* I managed to get the search function working to search keyword columns from the mapping table to transaction in the transaction table and if found, return the category from the mapping table
* I also managed to get sumifs working to aggregate results
* I know that byRow can use the above function but I don't get this solved, so I must be making a mistake somewhere
test.xlsx | |||||||||
---|---|---|---|---|---|---|---|---|---|
Z | AA | AB | AC | AD | AE | AF | |||
6 | Transaction Table | Mapping Table | |||||||
7 | |||||||||
8 | Transaction | Amount | Keyword | Category | |||||
9 | Coles Transaction | 15 | Coles | Coles & Woolworth | |||||
10 | Woolworth Transaction | 15 | Woolworth | Coles & Woolworth | |||||
11 | Harris Farm | 15 | Harris | Harris Farm | |||||
12 | Nespresso Transaction | 15 | Nespresso | Nespresso | |||||
13 | Nestle Transaction | 15 | Nestle | Nespresso | |||||
14 | Petstock | 15 | Pet | Pet Food | |||||
15 | Kmart Transaction | 15 | Kmart | Kmart, Target, Amazon | |||||
16 | Target Transaction | 15 | Target | Kmart, Target, Amazon | |||||
17 | Amazon Transaction | 15 | Amazon | Kmart, Target, Amazon | |||||
18 | Nespresso Transaction | 15 | Stanley | Kmart, Target, Amazon | |||||
19 | |||||||||
20 | |||||||||
21 | |||||||||
22 | |||||||||
23 | |||||||||
24 | |||||||||
25 | |||||||||
26 | |||||||||
27 | Search | byRow | |||||||
28 | Coles & Woolworth | #CALC! | |||||||
29 | Coles & Woolworth | ||||||||
30 | Harris Farm | ||||||||
31 | Nespresso | ||||||||
32 | Nespresso | ||||||||
33 | Pet Food | ||||||||
34 | Kmart, Target, Amazon | ||||||||
35 | Kmart, Target, Amazon | ||||||||
36 | Kmart, Target, Amazon | ||||||||
37 | |||||||||
38 | |||||||||
39 | |||||||||
40 | Sumifs | ||||||||
41 | 15 | ||||||||
42 | 15 | ||||||||
43 | 15 | ||||||||
44 | 30 | ||||||||
45 | 15 | ||||||||
46 | 15 | ||||||||
47 | 15 | ||||||||
48 | 15 | ||||||||
49 | 15 | ||||||||
50 | 0 | ||||||||
Expenses |
Cell Formulas | ||
---|---|---|
Range | Formula | |
Z28:Z37 | Z28 | =IF(ISNUMBER(SEARCH(AE9:AE18,"*"&Z9:Z18&"*")),AF9:AF18,"") |
AC28 | AC28 | =BYROW(AA9:AA18, LAMBDA(row, SUMIFS(row,Z9:Z18,"*"&AE9:AE18&"*"))) |
Z41:Z50 | Z41 | =SUMIFS(AA9:AA18,Z9:Z18,"*"&AE9:AE18&"*") |
Dynamic array formulas. |
Any help would be great.
Thanks very much