SpeedThink
MIS
I am working on a Excel Spreadsheet structured as follows:
Invc No Chgs Code RejCd Invc w/Rej Sum_Invc
'2815 $35 CH
'2815 $35 CH
'2815 $35 CH
'2817 PY DED
'2817 PY
'2819 $500 CH
'2819 PY DUP
Specifically, I would like to populate the two columns on the right. Column titled "Invc w/Rej" should contain "1" or the Invc No. on each row for the Invc if there is a Rejection Code in the column titled "RejCd." The last column titled "Sum_Invc w/Rej" should only contain the sum of the charges for those invoices that have rejection codes, i.e. there is something in the column titled RejCd.
I have been unsuccessful in trying to resolve this. Initially, I tried the following array function to no avail: =MIN(if(InvcNo=A5,RejCd,10000))
Any suggestions?
'2815 $35 CH
'2815 $35 CH
'2817 PY DED
'2817 PY
'2819 $500 CH
'2819 PY DUP
Specifically, I would like to populate the two columns on the right. Column titled "Invc w/Rej" should contain "1" or the Invc No. on each row for the Invc if there is a Rejection Code in the column titled "RejCd." The last column titled "Sum_Invc w/Rej" should only contain the sum of the charges for those invoices that have rejection codes, i.e. there is something in the column titled RejCd.
I have been unsuccessful in trying to resolve this. Initially, I tried the following array function to no avail: =MIN(if(InvcNo=A5,RejCd,10000))
Any suggestions?