SUMIFS with Trim
On a sheet called Report I have a column of account codes going down
the page. There are no spaces in these codes, they are alpha numeric.
On this Report sheet I have a SUMIFS formula that says
SUMIFS(Transactions!$E:$E,Transactions!$H:$H,$F20, Transactions!$Q:
$Q,Report!R$8)
On a sheet called Transaction is a list of transactions, along with
account code for each line (transaction) in column H. The account
codes in H have trailing spaces.
Using the account code on the Report sheet, I am trying to find
corresponding transactions posted to that account number in the sheet
called Transactions - but teh trailing spaces are causing problems.
To eliminate the effect of the trailing spaces I would like to enter
=SUMIFS(Transactions!$E:$E,Trim(Transactions!$H:$H ),$F20,Transactions!
$Q:$Q,Report!R$8)
but this reports an error. Does this need to be an array?.
Is there another way to do this?
|