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.


Duplicate/Unique IndicatorCLAIM_NUMCLAIM_BALANCECLAIM_BALANCE_DUETOTAL_CLAIM_CHG_AMTAdjusted Claim BalanceDENIAL_AMOUNTDENIAL_TYPE
Unique18001748232232-232232-232Technical Denial
Duplicate row18001748232232-23200Patient Liability
Duplicate row18001749928928-9289280Patient Liability
Duplicate row18001749928928-92800Patient Liability
Duplicate row18001749928928-9280-232Technical Denial
Duplicate row18001749928928-9280-232Technical Denial
Duplicate row18001749928928-92800Patient Liability
Duplicate row18001749928928-9280-232Technical Denial
Duplicate row18001749928928-92800Patient Liability
Duplicate row18001749928928-9280-232Technical Denial

<colgroup><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
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,215,427
Messages
6,124,831
Members
449,190
Latest member
rscraig11

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