Fo

howard

Well-known Member
Joined
Jun 26, 2006
Messages
6,603
Office Version
  1. 2021
Platform
  1. Windows
I have ref no's in Col G (destination File) and the ref No's in the Source File is in Col A.

I also have values in Col H & I in the destination workbook. The values in the source file is in Col J


Where the reference numbers on the destination workbook matches the ref number in the source workbook , and the value in Col I , which is postive is positive and value in Col H <> 0 and there is no match in value for same ref, then I need a formula or VBA code to find the value in Col J that matches Col H that is a few rows above it and extract the Account no. from Col G in same row and place in in Col it in Col M in the destination workbook. Secondly if no match can be found for the value in Col J, then to find the value in Col J that is closest to the Value in Col I and extract the account number in Col G (source file) and place it in Col M in the destination file


Your assistance in this regard in most appreciated
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
I know you know the cross-posting rules by now. Please follow them!

PS I don’t think this what Maud meant...
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,184
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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