MHodgin1016
New Member
- Joined
- Aug 9, 2017
- Messages
- 7
I have imported data into Excel (same workbook, different sheets) from two text files as follows:
Auth_Dump
<colgroup><col style="width: 30px;"><col style="width: 116px;"><col style="width: 176px;"><col style="width: 149px;"><col style="width: 117px;"><col style="width: 110px;"><col style="width: 122px;"><col style="width: 129px;"><col style="width: 182px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]2[/TD]
[TD="align: right"]1111[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]1/1/2017[/TD]
[TD="align: right"]12/31/2017[/TD]
[TD="align: right"]6580[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]3[/TD]
[TD="align: right"]1111[/TD]
[TD="align: right"]8964[/TD]
[TD="align: right"]1/1/2017[/TD]
[TD="align: right"]12/31/2017[/TD]
[TD="align: right"]1200[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]4[/TD]
[TD="align: right"]2222[/TD]
[TD="align: right"]5678[/TD]
[TD="align: right"]3/1/2017[/TD]
[TD="align: right"]2/28/2018[/TD]
[TD="align: right"]7460[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]5[/TD]
[TD="align: right"]3333[/TD]
[TD="align: right"]9101[/TD]
[TD="align: right"]4/1/2017[/TD]
[TD="align: right"]3/31/2018[/TD]
[TD="align: right"]8420[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]6[/TD]
[TD="align: right"]3333[/TD]
[TD="align: right"]6791[/TD]
[TD="align: right"]4/1/2017[/TD]
[TD="align: right"]3/31/2018[/TD]
[TD="align: right"]5241[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]7[/TD]
[TD="align: right"]4444[/TD]
[TD="align: right"]1121[/TD]
[TD="align: right"]5/1/2017[/TD]
[TD="align: right"]4/30/2018[/TD]
[TD="align: right"]800[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]8[/TD]
[TD="align: right"]5555[/TD]
[TD="align: right"]3141[/TD]
[TD="align: right"]6/1/2017[/TD]
[TD="align: right"]5/31/2018[/TD]
[TD="align: right"]4456[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]9[/TD]
[TD="align: right"]5555[/TD]
[TD="align: right"]7316[/TD]
[TD="align: right"]6/20/2017[/TD]
[TD="align: right"]2/28/2018[/TD]
[TD="align: right"]6325[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]10[/TD]
[TD="align: right"]6666[/TD]
[TD="align: right"]5161[/TD]
[TD="align: right"]5/1/2017[/TD]
[TD="align: right"]4/30/2018[/TD]
[TD="align: right"]3712[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]11[/TD]
[TD="align: right"]7777[/TD]
[TD="align: right"]7181[/TD]
[TD="align: right"]4/24/2017[/TD]
[TD="align: right"]3/31/2018[/TD]
[TD="align: right"]500[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Claim_Dump
<colgroup><col style="width: 30px;"><col style="width: 116px;"><col style="width: 149px;"><col style="width: 172px;"><col style="width: 92px;"><col style="width: 130px;"><col style="width: 176px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]2[/TD]
[TD="align: right"]1111[/TD]
[TD="align: right"]3/18/2017[/TD]
[TD="align: right"]26[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]3[/TD]
[TD="align: right"]3333[/TD]
[TD="align: right"]5/25/2017[/TD]
[TD="align: right"]18[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]4[/TD]
[TD="align: right"]5555[/TD]
[TD="align: right"]6/26/2017[/TD]
[TD="align: right"]25[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]5[/TD]
[TD="align: right"]1111[/TD]
[TD="align: right"]5/25/2017[/TD]
[TD="align: right"]34[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]6[/TD]
[TD="align: right"]1111[/TD]
[TD="align: right"]2/16/2017[/TD]
[TD="align: right"]75[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]7[/TD]
[TD="align: right"]4444[/TD]
[TD="align: right"]5/6/2017[/TD]
[TD="align: right"]20[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]8[/TD]
[TD="align: right"]6666[/TD]
[TD="align: right"]5/18/2017[/TD]
[TD="align: right"]16[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]9[/TD]
[TD="align: right"]2222[/TD]
[TD="align: right"]3/4/2017[/TD]
[TD="align: right"]16[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]10[/TD]
[TD="align: right"]7777[/TD]
[TD="align: right"]5/15/2017[/TD]
[TD="align: right"]125[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]11[/TD]
[TD="align: right"]6666[/TD]
[TD="align: right"]5/26/2017[/TD]
[TD="align: right"]14[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]12[/TD]
[TD="align: right"]5555[/TD]
[TD="align: right"]6/2/2017[/TD]
[TD="align: right"]63[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]13[/TD]
[TD="align: right"]5555[/TD]
[TD="align: right"]6/23/2017[/TD]
[TD="align: right"]58[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]14[/TD]
[TD="align: right"]2222[/TD]
[TD="align: right"]4/14/2017[/TD]
[TD="align: right"]91[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]15[/TD]
[TD="align: right"]3333[/TD]
[TD="align: right"]4/14/2017[/TD]
[TD="align: right"]64[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]16[/TD]
[TD="align: right"]3333[/TD]
[TD="align: right"]4/15/2017[/TD]
[TD="align: right"]13[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
I need a formula in the Claim_Dump table that populates the correct authorization ID from the Auth_Dump table. A client may have multiple authorizations for the same service, but the dates should not overlap. Then I need a formula in the Auth_Dump table that sums the approved claims for that authorization ID.
I've been playing around with IF and INDEX MATCH MATCH, but so far no luck. Any ideas?
Auth_Dump
A | B | C | D | E | F | G | H | |
Patient_ID | Authorization_ID | Service_code | Start_date | End_date | Auth_units | Units_used | Units_Remaining | |
H2013 | ||||||||
S5150 | ||||||||
H2013 | ||||||||
H2013 | ||||||||
S5125 | ||||||||
S5150 | ||||||||
H2013 | ||||||||
S5150 | ||||||||
S5125 | ||||||||
H2013 |
<colgroup><col style="width: 30px;"><col style="width: 116px;"><col style="width: 176px;"><col style="width: 149px;"><col style="width: 117px;"><col style="width: 110px;"><col style="width: 122px;"><col style="width: 129px;"><col style="width: 182px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]2[/TD]
[TD="align: right"]1111[/TD]
[TD="align: right"]1234[/TD]
[TD="align: right"]1/1/2017[/TD]
[TD="align: right"]12/31/2017[/TD]
[TD="align: right"]6580[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]3[/TD]
[TD="align: right"]1111[/TD]
[TD="align: right"]8964[/TD]
[TD="align: right"]1/1/2017[/TD]
[TD="align: right"]12/31/2017[/TD]
[TD="align: right"]1200[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]4[/TD]
[TD="align: right"]2222[/TD]
[TD="align: right"]5678[/TD]
[TD="align: right"]3/1/2017[/TD]
[TD="align: right"]2/28/2018[/TD]
[TD="align: right"]7460[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]5[/TD]
[TD="align: right"]3333[/TD]
[TD="align: right"]9101[/TD]
[TD="align: right"]4/1/2017[/TD]
[TD="align: right"]3/31/2018[/TD]
[TD="align: right"]8420[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]6[/TD]
[TD="align: right"]3333[/TD]
[TD="align: right"]6791[/TD]
[TD="align: right"]4/1/2017[/TD]
[TD="align: right"]3/31/2018[/TD]
[TD="align: right"]5241[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]7[/TD]
[TD="align: right"]4444[/TD]
[TD="align: right"]1121[/TD]
[TD="align: right"]5/1/2017[/TD]
[TD="align: right"]4/30/2018[/TD]
[TD="align: right"]800[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]8[/TD]
[TD="align: right"]5555[/TD]
[TD="align: right"]3141[/TD]
[TD="align: right"]6/1/2017[/TD]
[TD="align: right"]5/31/2018[/TD]
[TD="align: right"]4456[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]9[/TD]
[TD="align: right"]5555[/TD]
[TD="align: right"]7316[/TD]
[TD="align: right"]6/20/2017[/TD]
[TD="align: right"]2/28/2018[/TD]
[TD="align: right"]6325[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]10[/TD]
[TD="align: right"]6666[/TD]
[TD="align: right"]5161[/TD]
[TD="align: right"]5/1/2017[/TD]
[TD="align: right"]4/30/2018[/TD]
[TD="align: right"]3712[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]11[/TD]
[TD="align: right"]7777[/TD]
[TD="align: right"]7181[/TD]
[TD="align: right"]4/24/2017[/TD]
[TD="align: right"]3/31/2018[/TD]
[TD="align: right"]500[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
Claim_Dump
A | B | C | D | E | F | |
Patient_ID | Service_code | Date_of_service | Status | Units_billed | Authorization_ID | |
H2013 | Approved | |||||
S5125 | Approved | |||||
H2013 | Approved | |||||
H2013 | Approved | |||||
S5150 | Approved | |||||
S5150 | Approved | |||||
S5125 | Approved | |||||
H2013 | Approved | |||||
H2013 | Denied | |||||
S5125 | Approved | |||||
H2013 | Approved | |||||
S5150 | Approved | |||||
H2013 | Approved | |||||
H2013 | Approved | |||||
S5125 | Denied |
<colgroup><col style="width: 30px;"><col style="width: 116px;"><col style="width: 149px;"><col style="width: 172px;"><col style="width: 92px;"><col style="width: 130px;"><col style="width: 176px;"></colgroup><tbody>
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]1[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]2[/TD]
[TD="align: right"]1111[/TD]
[TD="align: right"]3/18/2017[/TD]
[TD="align: right"]26[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]3[/TD]
[TD="align: right"]3333[/TD]
[TD="align: right"]5/25/2017[/TD]
[TD="align: right"]18[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]4[/TD]
[TD="align: right"]5555[/TD]
[TD="align: right"]6/26/2017[/TD]
[TD="align: right"]25[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]5[/TD]
[TD="align: right"]1111[/TD]
[TD="align: right"]5/25/2017[/TD]
[TD="align: right"]34[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]6[/TD]
[TD="align: right"]1111[/TD]
[TD="align: right"]2/16/2017[/TD]
[TD="align: right"]75[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]7[/TD]
[TD="align: right"]4444[/TD]
[TD="align: right"]5/6/2017[/TD]
[TD="align: right"]20[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]8[/TD]
[TD="align: right"]6666[/TD]
[TD="align: right"]5/18/2017[/TD]
[TD="align: right"]16[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]9[/TD]
[TD="align: right"]2222[/TD]
[TD="align: right"]3/4/2017[/TD]
[TD="align: right"]16[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]10[/TD]
[TD="align: right"]7777[/TD]
[TD="align: right"]5/15/2017[/TD]
[TD="align: right"]125[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]11[/TD]
[TD="align: right"]6666[/TD]
[TD="align: right"]5/26/2017[/TD]
[TD="align: right"]14[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]12[/TD]
[TD="align: right"]5555[/TD]
[TD="align: right"]6/2/2017[/TD]
[TD="align: right"]63[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]13[/TD]
[TD="align: right"]5555[/TD]
[TD="align: right"]6/23/2017[/TD]
[TD="align: right"]58[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]14[/TD]
[TD="align: right"]2222[/TD]
[TD="align: right"]4/14/2017[/TD]
[TD="align: right"]91[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]15[/TD]
[TD="align: right"]3333[/TD]
[TD="align: right"]4/14/2017[/TD]
[TD="align: right"]64[/TD]
[TD="bgcolor: [URL=https://www.mrexcel.com/forum/usertag.php?do=list&action=hash&hash=CACACA]#CACACA[/URL] , align: center"]16[/TD]
[TD="align: right"]3333[/TD]
[TD="align: right"]4/15/2017[/TD]
[TD="align: right"]13[/TD]
</tbody>
Excel tables to the web >> Excel Jeanie HTML 4
I need a formula in the Claim_Dump table that populates the correct authorization ID from the Auth_Dump table. A client may have multiple authorizations for the same service, but the dates should not overlap. Then I need a formula in the Auth_Dump table that sums the approved claims for that authorization ID.
I've been playing around with IF and INDEX MATCH MATCH, but so far no luck. Any ideas?