Hi All,
I am new to this forum and looking for some assistance for creating a macro for a process that takes me about a day to complete. Any help would be greatly appreciated. And Thank you in advance!
Below is the table:
[TABLE="width: 500"]
<TBODY>[TR]
[TD]ProviderName
[/TD]
[TD]TotalCharge
[/TD]
[TD]DateOfService
[/TD]
[TD]Pairing
[/TD]
[/TR]
[TR]
[TD]John Smith
[/TD]
[TD]120.00
[/TD]
[TD]1/1/11
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Michael Dean
[/TD]
[TD]130.00
[/TD]
[TD]2/1/11
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John Smith
[/TD]
[TD]60.00
[/TD]
[TD]1/1/11
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Michael Dean
[/TD]
[TD]50.00
[/TD]
[TD]2/1/11
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John Smith
[/TD]
[TD]45
[/TD]
[TD]1/1/11
[/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
What I currently do manually is look at the ProviderName and look for the names that matches, then I look at the DateOfService and look for the dates that matches. When those two criteria are met, I would add matching numbers to the column call Pairing. What I want the macro to do is automatically add the matching numbers for me in the Pairing Column. Below is the result.
[TABLE="width: 500"]
<TBODY>[TR]
[TD]ProviderName
[/TD]
[TD]TotalCharge
[/TD]
[TD]DateOfService
[/TD]
[TD]Pairing
[/TD]
[/TR]
[TR]
[TD]John Smith
[/TD]
[TD]120.00
[/TD]
[TD]1/1/11
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]Michael Dean
[/TD]
[TD]130.00
[/TD]
[TD]2/1/11
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]John Smith
[/TD]
[TD]60.00
[/TD]
[TD]1/1/11
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]Michael Dean
[/TD]
[TD]50.00
[/TD]
[TD]2/1/11
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]John Smith
[/TD]
[TD]45
[/TD]
[TD]1/1/11
[/TD]
[TD]1
[/TD]
[/TR]
</TBODY>[/TABLE]
I am new to this forum and looking for some assistance for creating a macro for a process that takes me about a day to complete. Any help would be greatly appreciated. And Thank you in advance!
Below is the table:
[TABLE="width: 500"]
<TBODY>[TR]
[TD]ProviderName
[/TD]
[TD]TotalCharge
[/TD]
[TD]DateOfService
[/TD]
[TD]Pairing
[/TD]
[/TR]
[TR]
[TD]John Smith
[/TD]
[TD]120.00
[/TD]
[TD]1/1/11
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Michael Dean
[/TD]
[TD]130.00
[/TD]
[TD]2/1/11
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John Smith
[/TD]
[TD]60.00
[/TD]
[TD]1/1/11
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]Michael Dean
[/TD]
[TD]50.00
[/TD]
[TD]2/1/11
[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]John Smith
[/TD]
[TD]45
[/TD]
[TD]1/1/11
[/TD]
[TD][/TD]
[/TR]
</TBODY>[/TABLE]
What I currently do manually is look at the ProviderName and look for the names that matches, then I look at the DateOfService and look for the dates that matches. When those two criteria are met, I would add matching numbers to the column call Pairing. What I want the macro to do is automatically add the matching numbers for me in the Pairing Column. Below is the result.
[TABLE="width: 500"]
<TBODY>[TR]
[TD]ProviderName
[/TD]
[TD]TotalCharge
[/TD]
[TD]DateOfService
[/TD]
[TD]Pairing
[/TD]
[/TR]
[TR]
[TD]John Smith
[/TD]
[TD]120.00
[/TD]
[TD]1/1/11
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]Michael Dean
[/TD]
[TD]130.00
[/TD]
[TD]2/1/11
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]John Smith
[/TD]
[TD]60.00
[/TD]
[TD]1/1/11
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]Michael Dean
[/TD]
[TD]50.00
[/TD]
[TD]2/1/11
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]John Smith
[/TD]
[TD]45
[/TD]
[TD]1/1/11
[/TD]
[TD]1
[/TD]
[/TR]
</TBODY>[/TABLE]