Looking to solve the following: When column CLAIM_NUM and CLAIM_BAL match BUT in Column DENIAL_TYPE, the row equals "Technical Denial", input CLAIM_BALANCE into the Adjusted Claim Balance column BUT only one time, all other cells should remain zero. This will give me an accurate claim balance amount rather than summing it multiple times.
Up to this point, I have been able to get the Adjusted Claim Balance by using =IF(COUNTIF($I$2:$I2, $I2)>1, 0, L2) BUT it inputs into the row with the undesired DENIAL_TYPE. Hopefully this makes sense! I am lost and I am sure it is something simple.
[TABLE="class: grid, width: 1298"]
<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Duplicate/Unique Indicator[/TD]
[TD]CLAIM_NUM[/TD]
[TD]CLAIM_BALANCE[/TD]
[TD]CLAIM_BALANCE_DUE[/TD]
[TD]TOTAL_CLAIM_CHG_AMT[/TD]
[TD]Adjusted Claim Balance[/TD]
[TD]DENIAL_AMOUNT[/TD]
[TD]DENIAL_TYPE[/TD]
[/TR]
[TR]
[TD]Unique[/TD]
[TD="align: right"]18001748[/TD]
[TD="align: right"]232[/TD]
[TD="align: right"]232[/TD]
[TD="align: right"]-232[/TD]
[TD="align: right"]232[/TD]
[TD="align: right"]-232[/TD]
[TD]Technical Denial[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001748[/TD]
[TD="align: right"]232[/TD]
[TD="align: right"]232[/TD]
[TD="align: right"]-232[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD]Patient Liability[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]0[/TD]
[TD]Patient Liability[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD]Patient Liability[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-232[/TD]
[TD]Technical Denial[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-232[/TD]
[TD]Technical Denial[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD]Patient Liability[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-232[/TD]
[TD]Technical Denial[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD]Patient Liability[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-232[/TD]
[TD]Technical Denial[/TD]
[/TR]
</tbody>[/TABLE]
Up to this point, I have been able to get the Adjusted Claim Balance by using =IF(COUNTIF($I$2:$I2, $I2)>1, 0, L2) BUT it inputs into the row with the undesired DENIAL_TYPE. Hopefully this makes sense! I am lost and I am sure it is something simple.
[TABLE="class: grid, width: 1298"]
<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>[TR]
[TD]Duplicate/Unique Indicator[/TD]
[TD]CLAIM_NUM[/TD]
[TD]CLAIM_BALANCE[/TD]
[TD]CLAIM_BALANCE_DUE[/TD]
[TD]TOTAL_CLAIM_CHG_AMT[/TD]
[TD]Adjusted Claim Balance[/TD]
[TD]DENIAL_AMOUNT[/TD]
[TD]DENIAL_TYPE[/TD]
[/TR]
[TR]
[TD]Unique[/TD]
[TD="align: right"]18001748[/TD]
[TD="align: right"]232[/TD]
[TD="align: right"]232[/TD]
[TD="align: right"]-232[/TD]
[TD="align: right"]232[/TD]
[TD="align: right"]-232[/TD]
[TD]Technical Denial[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001748[/TD]
[TD="align: right"]232[/TD]
[TD="align: right"]232[/TD]
[TD="align: right"]-232[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD]Patient Liability[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]0[/TD]
[TD]Patient Liability[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD]Patient Liability[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-232[/TD]
[TD]Technical Denial[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-232[/TD]
[TD]Technical Denial[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD]Patient Liability[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-232[/TD]
[TD]Technical Denial[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]0[/TD]
[TD]Patient Liability[/TD]
[/TR]
[TR]
[TD]Duplicate row[/TD]
[TD="align: right"]18001749[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]928[/TD]
[TD="align: right"]-928[/TD]
[TD="align: right"]0[/TD]
[TD="align: right"]-232[/TD]
[TD]Technical Denial[/TD]
[/TR]
</tbody>[/TABLE]