Hi All
I'm wondering if anyone knows how I can do a conditional 'sumif' type of formula in a group header. I have a set of data that contains nominal numbers from an accounting package and each nominal number has a debit and credit amount. The records are grouped together by a transaction action number, what I require is a 'sumif' type of formula that sums all the debit amounts if the nominal number equals a certain number. So data for each transaction might look like this:
Nominal No Debit Credit
92400 15.00 0.00
95000 25.00 0.00
92100 15.00 0.00
95000 15.00 0.00
96000 0.00 70.00
I want a formula to sum all the debit amounts if the nominal code equals 95000, so this should give me 40.00 in total. This needs to be in the group header.
I have tried a formula along the line of
if {Nominal Code} = "95000" then sum{{Debit_Field},{Transaction Number})
However, this does not work correctly. Only if the first record is 95000 does it work, and when it does it sums all of the debit amounts in the transaction, rather than just the 95000 records. If possible I would like to avoid entering an 'if' formula in the details section that looks "95000" and then shows the debit amount, as the report needs to be dumped into excel and this 'if' formula might confuse people.
Any help appreciated. I have also tried using running total formula, but this doesn't seem to give me the total of the transaction when a transaction carry overs to the next page.
I'm wondering if anyone knows how I can do a conditional 'sumif' type of formula in a group header. I have a set of data that contains nominal numbers from an accounting package and each nominal number has a debit and credit amount. The records are grouped together by a transaction action number, what I require is a 'sumif' type of formula that sums all the debit amounts if the nominal number equals a certain number. So data for each transaction might look like this:
Nominal No Debit Credit
92400 15.00 0.00
95000 25.00 0.00
92100 15.00 0.00
95000 15.00 0.00
96000 0.00 70.00
I want a formula to sum all the debit amounts if the nominal code equals 95000, so this should give me 40.00 in total. This needs to be in the group header.
I have tried a formula along the line of
if {Nominal Code} = "95000" then sum{{Debit_Field},{Transaction Number})
However, this does not work correctly. Only if the first record is 95000 does it work, and when it does it sums all of the debit amounts in the transaction, rather than just the 95000 records. If possible I would like to avoid entering an 'if' formula in the details section that looks "95000" and then shows the debit amount, as the report needs to be dumped into excel and this 'if' formula might confuse people.
Any help appreciated. I have also tried using running total formula, but this doesn't seem to give me the total of the transaction when a transaction carry overs to the next page.