Multiple Rows with Same Values - Isolate to one

rtully72

New Member
Joined
Jan 24, 2018
Messages
1
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]
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
When you say When column CLAIM_NUM and CLAIM_BAL match, what are they matching ... the top row?

If what you're saying is that for the first instance of CLAIM_NUM=A, CLAIM_BAL=B and DENIAL_TYPE=Technical Denial, you want to copy the claim balance into the adjusted claim balance column and have zero for all other rows, the easiest way to do that is to add a helper column
=CLAIM_NUM&CLAIM_BAL&DENIAL_TYPE (sorry, I'm not sure which column has which letter in the table above)
that just strings them together. Let's call that column M
Then in your adjusted claim balance column (call it row 3), you need
=IF(COUNTIF(M$2:M3,M3)=1,L2,0)

(Just checking, is it possible for CLAIM_NUM and CLAIM_BAL not to both match at the same time? Could you ever have a possibility of different balances attached to the same claim number? If so, are you happy for them to be treated as different rows?)
 
Upvote 0

Forum statistics

Threads
1,223,231
Messages
6,170,884
Members
452,364
Latest member
springate

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top