May 22 2018
11:53 AM
- last edited on
Jul 31 2018
08:13 AM
by
TechCommunityAP
May 22 2018
11:53 AM
- last edited on
Jul 31 2018
08:13 AM
by
TechCommunityAP
May 23 2018 01:34 AM
Hi Fali,
In your sample formula returns #NUM!, the reason is it can't find no one cost center in the table. In your 56 sheet cost center picked-up from sheet name is text "56", and in the table that is number 56.
You shall use in both cases or numbers, or texts.
May 23 2018 02:37 AM
May 28 2018 08:51 AM
Hi Fali,
As variant and if expand a bit your formula
- add number of records which match for each table like
=COUNTIFS(R_Costs[Cost Center],B1)
in C2 for R_Costs and in B2 for L_Costs
Array formula for invoices numbers will be
=IF(ROWS(A$3:A3)>$B$2, IF(ROWS(A$3:A3)>$B$2+$C$2,"", INDEX(R_Costs[Invoice Number],AGGREGATE(15,6,(ROW(R_Costs[Invoice Number])-ROW(R_Costs[#Headers]))/(R_Costs[[Cost Center]:[Cost Center]]=$B$1),ROWS(A$3:A3)-$B$2))), INDEX(L_Costs[Invoice Number],AGGREGATE(15,6,(ROW(L_Costs[Invoice Number])-ROW(L_Costs[#Headers]))/(L_Costs[[Cost Center]:[Cost Center]]=$B$1),ROWS(A$3:A3))))
similar for other columns.
Please see that attached.