I am looking for help with a formula that will search for the dept (i.e. 10, 20) and Acct # (i.e. N40010) in a column anywhere on the page on sheet 2 and populate the values on sheet 1. The challenge is that the acct nos. on sheet 2 are not in the same columns (columns G and H) and are followed with account descriptions (i.e. N40010 . Med Rev-Self Pay). Note that on Sheet 1, the Acct # is in Col B and the account descriptions are in Col D. This is an abbreviated version of the project I am working on so assistance would be a huge time saver! Thank you for your help.
Sheet 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Col B[/TD]
[TD]Col C[/TD]
[TD]Col D[/TD]
[TD]Col E[/TD]
[/TR]
[TR]
[TD]Acct #[/TD]
[TD]Dept #[/TD]
[TD]Acct Description[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]N40010[/TD]
[TD]10[/TD]
[TD]Med Rev-Self Pay[/TD]
[TD]5,644[/TD]
[/TR]
[TR]
[TD]A40010[/TD]
[TD]10[/TD]
[TD]Adjustment-Self Pay[/TD]
[TD]-108[/TD]
[/TR]
[TR]
[TD]N41010[/TD]
[TD]20[/TD]
[TD]Den Rev-Self Pay[/TD]
[TD]7,667[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]Col G[/TD]
[TD]Col H[/TD]
[TD]Col M[/TD]
[TD]Col N[/TD]
[/TR]
[TR]
[TD]Acct No/Description[/TD]
[TD]Acct No/Description[/TD]
[TD]Dept #10[/TD]
[TD]Dept #20[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]N40010 . Med Rev-Self Pay[/TD]
[TD]5,644[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A40010 . Adj-Self Pay[/TD]
[TD][/TD]
[TD]-108[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]N41010 . Den Rev-Self Pay[/TD]
[TD][/TD]
[TD]7,667[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]Col B[/TD]
[TD]Col C[/TD]
[TD]Col D[/TD]
[TD]Col E[/TD]
[/TR]
[TR]
[TD]Acct #[/TD]
[TD]Dept #[/TD]
[TD]Acct Description[/TD]
[TD]Amount[/TD]
[/TR]
[TR]
[TD]N40010[/TD]
[TD]10[/TD]
[TD]Med Rev-Self Pay[/TD]
[TD]5,644[/TD]
[/TR]
[TR]
[TD]A40010[/TD]
[TD]10[/TD]
[TD]Adjustment-Self Pay[/TD]
[TD]-108[/TD]
[/TR]
[TR]
[TD]N41010[/TD]
[TD]20[/TD]
[TD]Den Rev-Self Pay[/TD]
[TD]7,667[/TD]
[/TR]
</tbody>[/TABLE]
Sheet 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]Col G[/TD]
[TD]Col H[/TD]
[TD]Col M[/TD]
[TD]Col N[/TD]
[/TR]
[TR]
[TD]Acct No/Description[/TD]
[TD]Acct No/Description[/TD]
[TD]Dept #10[/TD]
[TD]Dept #20[/TD]
[/TR]
[TR]
[TD][/TD]
[TD]N40010 . Med Rev-Self Pay[/TD]
[TD]5,644[/TD]
[TD][/TD]
[/TR]
[TR]
[TD]A40010 . Adj-Self Pay[/TD]
[TD][/TD]
[TD]-108[/TD]
[TD][/TD]
[/TR]
[TR]
[TD][/TD]
[TD]N41010 . Den Rev-Self Pay[/TD]
[TD][/TD]
[TD]7,667[/TD]
[/TR]
</tbody>[/TABLE]