Hello,
I have a 3 column data table with cost centers [CC], transaction codes [TC], and dollar amounts [AMT] and I am trying to calculate the difference between debits [TC = 081] and credits [TC = 010] for each cost center. I put the cost centers in column F and used the formula below.
I used the formula =IF(Table[CC]=f2, index(table[amt],match["081", table[tc],0)) - index(table[amt], match("010", table[tc],0)), "error")
It works for cell f2, cc = 10, but does not work for cc 20,30,40 or 50. Any ideas?
Thanks,
KG
I have a 3 column data table with cost centers [CC], transaction codes [TC], and dollar amounts [AMT] and I am trying to calculate the difference between debits [TC = 081] and credits [TC = 010] for each cost center. I put the cost centers in column F and used the formula below.
I used the formula =IF(Table[CC]=f2, index(table[amt],match["081", table[tc],0)) - index(table[amt], match("010", table[tc],0)), "error")
It works for cell f2, cc = 10, but does not work for cc 20,30,40 or 50. Any ideas?
Thanks,
KG