Combination of Lookup formula or VBA code

Guna13

Board Regular
Joined
Nov 22, 2019
Messages
70
Office Version
  1. 365
Platform
  1. Windows
Dear Sir,
I am working on a VBA project. I have source data and master data here. Using the source file and master data, I have used VLOOKUP to get details about the BPC Description Values from Master data sheet...

Source file I have
  1. Leger account (format 3000, 4400, 6239, 5699,7937, 8464)
  2. Dept Code ( 43, 23, 24, 32, 81, 75 )
Master data file I have
  1. Leger account ( format 3000, 4400, 6239, 5699, 7937, 8463 )
  2. Dept Code ( 43, 23, 24, 32, 81, 75 )
  3. Description
Based on my ledger account start with 3, 4, 7, 8 9, I need to get the BPC Description directly from the master data.

If I start with 5 & 6, I will Combine Ledger accounts with Dept codes, based on the combination, I will get its BPC Description from Master data.

I am looking any excel formula or VBA code.
I would appreciate your advice. Could you please?

1658596905505.png
 

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
Explain with complete examples what you have on each sheet, what you want as a result and where you want the result.

NOTE XL2BB:
For the future, it would help greatly if you could give us the sample data in a form that we can copy to test with, rather that a picture.
MrExcel has a tool called “XL2BB” that lets you post samples of your data that will allow us to copy/paste it to our Excel spreadsheets, so we can work with the same copy of data that you are. Instructions on using this tool can be found here: XL2BB Add-in
Note that there is also a "Test Here” forum on this board. This is a place where you can test using this tool (or any other posting techniques that you want to test) before trying to use those tools in your actual posts.
 
Upvote 0

Forum statistics

Threads
1,215,219
Messages
6,123,684
Members
449,116
Latest member
HypnoFant

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