I am trying to create a report (report 1 below) in one worksheet that requires particular data from another report (report 2 below) in another worksheet (this report is copied from an auto-generated report from an application). I need a formula that will check 3 cells in report 2 (A1, B1, & D1) and copy the data from cell G1 into Report 1, C4 (as B4 in Report 1 = D1 in Report 2)
Report 1
<TABLE dir=ltr border=1 cellSpacing=0 borderColor=#000000 cellPadding=2 width=410><TBODY><TR><TD height=24 width="27%">
A
</TD><TD height=24 width="23%">
B
</TD><TD height=24 width="13%">C
</TD><TD height=24 width="23%">
D
</TD><TD height=24 width="15%">E
</TD></TR></TBODY></TABLE>
<TABLE dir=ltr border=1 cellSpacing=0 borderColor=#000000 cellPadding=2 width=410><TBODY><TR><TD height=24 width="27%">
State:
</TD><TD height=24 width="23%">
Available
</TD><TD height=24 width="13%">
</TD><TD height=24 width="23%">
Duration:
</TD><TD height=24 width="15%">
</TD></TR><TR><TD height=24 width="27%">
</TD><TD height=24 width="23%">
0: No Reason
</TD><TD height=24 width="13%">
</TD><TD height=24 width="23%">
</TD><TD height=24 width="15%">
</TD></TR><TR><TD height=24 width="27%">
</TD><TD height=24 width="23%">
1: Finishing Call
</TD><TD height=24 width="13%">
</TD><TD height=24 width="23%">
</TD><TD height=24 width="15%">
</TD></TR><TR><TD height=24 width="27%">
</TD><TD height=24 width="23%">
2: Break
</TD><TD height=24 width="13%">
</TD><TD height=24 width="23%">
</TD><TD height=24 width="15%">
34:53:02
</TD></TR><TR><TD height=24 width="27%">
</TD><TD height=24 width="36%" colSpan=2>
3: Coordinating/Dispatching
</TD><TD height=24 width="23%">
</TD><TD height=24 width="15%">
</TD></TR><TR><TD height=24 width="27%">
</TD><TD height=24 width="36%" colSpan=2>
4: Meeting/Con. Call
</TD><TD height=24 width="23%">
</TD><TD height=24 width="15%">
</TD></TR><TR><TD height=24 width="27%">
</TD><TD height=24 width="23%">
5: Voicemail/Email
</TD><TD height=24 width="13%">
</TD><TD height=24 width="23%">
</TD><TD height=24 width="15%">
</TD></TR><TR><TD height=24 width="27%">
</TD><TD height=24 width="23%">
6: Project
</TD><TD height=24 width="13%">
</TD><TD height=24 width="23%">
</TD><TD height=24 width="15%">
</TD></TR><TR><TD height=24 width="27%">
</TD><TD height=24 width="36%" colSpan=2>
7: High Priority/Immed Term
</TD><TD height=24 width="23%">
</TD><TD height=24 width="15%">
</TD></TR><TR><TD height=24 width="27%">
</TD><TD height=24 width="23%">
8: Peer Support
</TD><TD height=24 width="13%">
</TD><TD height=24 width="23%">
</TD><TD height=24 width="15%">
</TD></TR></TBODY></TABLE>
Report 2
<TABLE dir=ltr border=1 cellSpacing=2 borderColor=#000000 cellPadding=2 width=503><TBODY><TR><TD height=15 width="12%">
A
</TD><TD height=15 width="15%">
B
</TD><TD height=15 width="12%">
C
</TD><TD height=15 width="12%">
D
</TD><TD height=15 width="25%">
E
</TD><TD height=15 width="12%">
F
</TD><TD height=15 width="12%">
G
</TD></TR></TBODY></TABLE>
<TABLE dir=ltr border=1 cellSpacing=2 borderColor=#000000 cellPadding=2 width=503><TBODY><TR><TD height=15 width="12%">
1341
</TD><TD height=15 width="15%">
Agent 1
</TD><TD height=15 width="12%">
177:15:15
</TD><TD height=15 width="12%">
2
</TD><TD height=15 width="25%">
Break
</TD><TD height=15 width="12%">
1
</TD><TD height=15 width="12%">
0:00:42
</TD></TR><TR><TD height=15 width="12%">
</TD><TD height=15 width="15%">
</TD><TD height=15 width="12%">
177:15:15
</TD><TD height=15 width="12%">
0
</TD><TD height=15 width="25%">
No Reason Code
</TD><TD height=15 width="12%">
104
</TD><TD height=15 width="12%">
34:53:02
</TD></TR><TR><TD height=15 width="12%">
1342
</TD><TD height=15 width="15%">
Agent 2
</TD><TD height=15 width="12%">
0:18:53
</TD><TD height=15 width="12%">
0
</TD><TD height=15 width="25%">
No Reason Code
</TD><TD height=15 width="12%">
1
</TD><TD height=15 width="12%">
0:00:07
</TD></TR><TR><TD height=15 width="12%">
1343
</TD><TD height=15 width="15%">
Agent 3
</TD><TD height=15 width="12%">
148:42:48
</TD><TD height=15 width="12%">
4
</TD><TD height=15 width="25%">
Meeting / Con. Call
</TD><TD height=15 width="12%">
1
</TD><TD height=15 width="12%">
0:00:04
</TD></TR><TR><TD height=15 width="12%">
</TD><TD height=15 width="15%">
</TD><TD height=15 width="12%">
148:42:48
</TD><TD height=15 width="12%">
2
</TD><TD height=15 width="25%">
Break
</TD><TD height=15 width="12%">
2
</TD><TD height=15 width="12%">
0:03:13
</TD></TR><TR><TD height=15 width="12%">
</TD><TD height=15 width="15%">
</TD><TD height=15 width="12%">
148:42:48
</TD><TD height=15 width="12%">
3
</TD><TD height=15 width="25%">
Coordinating / Dispatching
</TD><TD height=15 width="12%">
1
</TD><TD height=15 width="12%">
0:00:04
</TD></TR><TR><TD height=15 width="12%">
</TD><TD height=15 width="15%">
</TD><TD height=15 width="12%">
148:42:48
</TD><TD height=15 width="12%">
0
</TD><TD height=15 width="25%">
No Reason Code
</TD><TD height=15 width="12%">
93
</TD><TD height=15 width="12%">
110:04:50
</TD></TR><TR><TD height=15 width="12%">
</TD><TD height=15 width="15%">
</TD><TD height=15 width="12%">
148:42:48
</TD><TD height=15 width="12%">
6
</TD><TD height=15 width="25%">
Project
</TD><TD height=15 width="12%">
1
</TD><TD height=15 width="12%">
0:00:04
</TD></TR><TR><TD height=15 width="12%">
</TD><TD height=15 width="15%">
</TD><TD height=15 width="12%">
148:42:48
</TD><TD height=15 width="12%">
1
</TD><TD height=15 width="25%">
Finishing Call
</TD><TD height=15 width="12%">
1
</TD><TD height=15 width="12%">
0:00:05
</TD></TR><TR><TD height=15 width="12%">
</TD><TD height=15 width="15%">
</TD><TD height=15 width="12%">
148:42:48
</TD><TD height=15 width="12%">
5
</TD><TD height=15 width="25%">
Voicemail / Email
</TD><TD height=15 width="12%">
1
</TD><TD height=15 width="12%">
0:00:03
</TD></TR><TR><TD height=15 width="12%">
1346
</TD><TD height=15 width="15%">
Agent 4
</TD><TD height=15 width="12%">
167:32:24
</TD><TD height=15 width="12%">
2
</TD><TD height=15 width="25%">
Break
</TD><TD height=15 width="12%">
1
</TD><TD height=15 width="12%">
0:59:40
</TD></TR><TR><TD height=15 width="12%">
</TD><TD height=15 width="15%">
</TD><TD height=15 width="12%">
167:32:24
</TD><TD height=15 width="12%">
0
</TD><TD height=15 width="25%">
No Reason Code
</TD><TD height=15 width="12%">
99
</TD><TD height=15 width="12%">
26:26:50
</TD></TR><TR><TD height=16 width="12%">
1349
</TD><TD height=16 width="15%">
Agent 5
</TD><TD height=16 width="12%">
35:09:46
</TD><TD height=16 width="12%">
0
</TD><TD height=16 width="25%">
No Reason Code
</TD><TD height=16 width="12%">
26
</TD><TD height=16 width="12%">
6:59:52
</TD></TR></TBODY></TABLE>