Look-up from 2 excel files.

bentxoxo

New Member
Joined
Jan 13, 2016
Messages
29
Hi Everyone,

I'm using this formula to get item name from another excel file when I enter the item code. Am wondering if it's possible to search in 2 files and retrieve the item name. Item code will be in any of the following file.

Product Master.xlsx
or
Archive Product Master.xlsx

=IFERROR(INDEX('[Product Masterfile.xlsx]Sheet1'!$C$8:$C$65536,MATCH(L1202,'[Product Masterfile.xlsx]Sheet1'!$E$8:$E$65536,0))," ")

Thanks in advance,
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Try this

=IFERROR(INDEX('[Product Masterfile.xlsx]Sheet1'!$C$8:$C$65536,MATCH(L1202,'[Product Masterfile.xlsx]Sheet1'!$E$8:$E$65536,0)),IFERROR(INDEX('[Archive Product Masterfile.xlsx]Sheet1'!$C$8:$C$65536,MATCH(L1202,'[Archive Product Masterfile.xlsx]Sheet1'!$E$8:$E$65536,0)),"It does not exist in any file"))
 
Upvote 0
I'm glad to help you. Thanks for the feedback.
 
Upvote 0
Hello all

I have something similar but I'm not sure how to interpret/manipulate this to do what I need.

I have 3 files with all pertinent data on Sheet1.

[A] - H:\Accounting\OTC Services Inc\Accounting\Month End Financial Close\2019 Month End Close\ORDER BACKLOG - (this is a current month file)

- H:\Accounting\OTC Services Inc\Accounting\Month End Financial Close\2019 Month End Close\05-May\Order Backlog May 2019 (this is a prior month file of which the directory and name changes each month so I'm not sure if it can be automated without going into the code to change the directory and file name each month).
Any thoughts on this?

[C] - H:\Accounting\OTC Services Inc\Accounting\Month End Financial Close\2019 Month End Close\Order Intake - (this is a current month file)


I am trying to match the SO # on the ORDER BACKLOG file to both the "Order Backlog for May" and then the "Order Intake" files. If the SO # matches then copy the cells in Col G, H and J.
I also need to add a vlookup(?) to add to the column H if it doesn't already have a copied cell.

Below are the before and after pics of how the "ORDER BACKLOG" looks and will look after each file is matched. Below the first 3 sets of data are the data from the other 2 files.

Obviously there are many more rows than I am showing here for brevity.

For example:


<tbody></tbody>
This is how the file "ORDER BACKLOG" looks before matching the files "Order Backlog for May 2019" and "Order Intake"
ABCDEFGH I JK
1 SO #Cust PriceStatusDateDescr%Cat Profit Qtr
2 15759-1ABM$15,000.00Pending 02-May-19
3 16751ABM8,890.00Active 04-Jun-19
4 16617ABM$8,410.00Active 27-Sep-18
5 16730-OABM$9,500.00Active 23-Apr-19
6 61362APE$3,026.00Active 27-Oct-17
7 61377APE$7,500.00HOLD 28-Nov-17
This is how it looks after matching to the file "Order Backlog for May 2019"
ABCDEFGH I JK
1SO #CustExt PriceStatusDateDescr%Cat Profit Qtr
215759-1ABM$1,500.00Pending 02-May-19 10%5-10 Q3
316751
416617ABM$8,410.00Active 27-Sep-18 10%5-10 Q2 2021
516730-OABM$9,500.00Active 23-Apr-19 3%0-5 Q2
661362APE$3,026.00Active 27-Oct-17 28%>10 Q2
761377APE$7,500.00HOLD 28-Nov-17 9%5-10 Q3
This is how it looks after matching to the file "Order Backlog for May 2019" and then to the file "Order Intake"
ABCDEFGH I JK
1SO #CustPriceStatusDateDescr%Cat Profit Qtr
215759-1ABM$1,500.00Pending 02-May-19 10%5-10 Q3
316751ABM8,990.00Active 04-Jun-19 $10.005-10
416617ABM$8,410.00Active 27-Sep-18 10%5-10 Q2 2021
516730-OABM$9,500.00Active 23-Apr-19 3%0-5 Q2
661362APE$3,026.00Active 27-Oct-17 28%>10 Q2
761377APE$7,500.00HOLD 28-Nov-17 9%5-10 Q3
This is the file "Order Backlog for May 2019 "
ABCDEFG H IJK
1SO #CustPriceStatusDateDescRMargin Profit QuarterType
215759-1ABM$1,500.00Pending05/02/1910% 150.00Q3FS
316539ZYW FSP$550.00Hold06/04/1825% 137.50Q12020FS
416617ABM$8,410.00Active09/27/1810% 841.00Q2 2021FS
516725EXEL$1,100.00Active04/12/1910% 110.00Q3FS
616730-OABM$9,500.00Active04/23/193% 285.00Q2FS
716742OMEN$576.00Active05/15/1950% 288.00Q2FS
816748ABM$1,750.00Pending05/29/1910% 175.00Q2FS
961362APE$3,026.00Active10/27/1728% 847.28Q2Shop
#61377APE$7,500.00Active11/28/179% 675.00Q3Shop
#61377FOAPE$1,391.00Hold11/29/1710% 139.10Q3Shop
This is the file "Order Intake - Sheet1"
ABCDEFGHIJK
1SO #CustPriceStatusDateDescr%Profit
216478-3ABM$1,750.00Pending 18-Jun-1910%$175.00
316751ABM$8,890.00Active 04-Jun-1910%$889.00
416751-OABM$5,360.00Active 04-Jun-193%$160.80
516756KOOPER$2,860.00Active 12-Jun-1910%$286.00
616757ABM$7,387.00Active 19-Jun-195%$369.35

<colgroup><col><col><col><col><col><col><col><col><col><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,214,788
Messages
6,121,582
Members
449,039
Latest member
Arbind kumar

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