Lookup a Column based on Unique ID and last transaction (date)

smalik

Board Regular
Joined
Oct 26, 2006
Messages
186
Office Version
  1. 365
Platform
  1. Windows
I posted this earlier but I can't find it under my posts. Therefore, please forgive me if this is a duplicate request.

I am trying to fill in the Address field from a transaction file. A unique ID can have multiple transactions. Each transaction comes with an Address. I need to pull the address from the latest transaction based on the date. In case the address is missing from the last transaction, can I pull the data from the transaction before? Obviously, if the ID in Column A does not find any transaction record, I need the cell to stay blank.

Looking to complete Column B using data in Columns D through F. The results I need are highlighted in tan color.

1691704841919.png


PS: I downloaded the Xl2BB add-in but MS Excel blocked the macro saying that the source could not be verified. Did I miss a step?

Thanks for your help in advance.
 
Glad it's sorted & thanks for the feedback.
 
Upvote 0

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

Forum statistics

Threads
1,223,893
Messages
6,175,249
Members
452,623
Latest member
Techenthusiast

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