Index Match formula accross 5 different workbooks

jpulse

New Member
Joined
Aug 25, 2017
Messages
13
I have a workbook that has item numbers for about 100 different products. I created a formula that will pull in data, located on 5 other workbooks, such as item description and serial number. My formula is formatted for each individual criteria.. My question is how can I make the formula search across all workbooks, instead of just one particular workbook? Is there a way to write one formula to drag across all cells, instead of customizing it for each criteria?

Formula to get Item Description:

=IFERROR(INDEX(All78C.csv!$D:$D,MATCH(A2,All78C.csv!$E:$E,0)),"""")

A2 = Item number
$D:$D = Item description located on All78C.csv
$E:$E = Item number located on All78C.csv

Formula to get Serial Number:

=IFERROR(INDEX(All78C.csv!$F:$F,MATCH(A2,All78C.csv!$E:$E,0)),"""")

A2 = Item number
$F:$F = Item description located on All78C.csv
$E:$E = Item number located on All78C.csv


Workbooks needed to search through:

ALL78C.CSV
ALL78D.CSV
ALL78M.CSV
ALL78P.CSV
ALL780.CSV

[TABLE="width: 500"]
<tbody>[TR]
[TD][/TD]
[TD="align: center"]A[/TD]
[TD="align: center"]B[/TD]
[TD="align: center"]C[/TD]
[/TR]
[TR]
[TD="align: center"]1[/TD]
[TD="align: center"]Item Number[/TD]
[TD="align: center"]Item Description[/TD]
[TD="align: center"]Serial Number[/TD]
[/TR]
[TR]
[TD="align: center"]2[/TD]
[TD]10001[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]3[/TD]
[TD]10002[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]4[/TD]
[TD]10003[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD="align: center"]5[/TD]
[TD]10004[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

How can you automate Excel?
Press Alt+F11 from Windows Excel to open the Visual Basic for Applications (VBA) editor.
Iferror(index(file1... ,iferror(index(file2... ,iferror(index(file3... ,iferror(index(file4... ,iferror(index(file5... ,"")))))
 
Last edited:
Upvote 0
This is what I came up with:

=IFERROR(INDEX([All780.csv]All780!$D:$D,MATCH(A591,[All780.csv]All780!$E:$E,0,(IFERROR(INDEX([All78C.csv]All78C!$D:$D,MATCH(A591,[All78C.csv]All78C!$E:$E,0,(IFERROR(INDEX([All78CSP.csv]All78CSP!$D:$D,MATCH(A591,[All78CSP.csv]All78CSP!$E:$E,0,(IFERROR(INDEX([All78D.csv]All78D!$D:$D,MATCH(A591,[All78D.csv]All78D!$E:$E,0,(IFERROR(INDEX([All78M.csv]All78M!$D:$D,MATCH(A591,[All78M.csv]All78M!$E:$E,0,(IFERROR(INDEX([All78L.csv]All78L!$D:$D,MATCH(A591,[All78L.csv]All78L!$E:$E,0,(IFERROR(INDEX([All78P.csv]All78P!$D:$D,MATCH(A591,[All78P.csv]All78P!$E:$E,0,""))))))))))))))))))))))))))

But, it says "You've entered too many arguments for this function"
 
Last edited:
Upvote 0
=IFERROR(INDEX([All780.csv]All780!$D:$D,MATCH(A591,[All780.csv]All780!$E:$E,0,IFERROR(INDEX([All78C.csv]All78C!$D:$D,MATCH(A591,[All78C.csv]All78C!$E:$E,0,IFERROR(INDEX([All78CSP.csv]All78CSP!$D:$D,MATCH(A591,[All78CSP.csv]All78CSP!$E:$E,0,IFERROR(INDEX([All78D.csv]All78D!$D:$D,MATCH(A591,[All78D.csv]All78D!$E:$E,0,IFERROR(INDEX([All78M.csv]All78M!$D:$D,MATCH(A591,[All78M.csv]All78M!$E:$E,0,IFERROR(INDEX([All78L.csv]All78L!$D:$D,MATCH(A591,[All78L.csv]All78L!$E:$E,0,IFERROR(INDEX([All78P.csv]All78P!$D:$D,MATCH(A591,[All78P.csv]All78P!$E:$E,0,"")))))))))))))))))))))

Took out the parentheses before IFERROR statement
Still get same error
 
Upvote 0
Your MATCH statements don't look correct, it should be MATCH(find value, in range, matchtype)
Your match type is 0 but you havent closed the brackets, and you shouldnt need that many brackets at the end of the formula. You only need as many brackets as you have IFs/IFERRORs.
Does this work?

=IFERROR(INDEX([All780.csv]All780!$D:$D,MATCH(A591,[All780.csv]All780!$E:$E,0),IFERROR(INDEX([All78C.csv]All78C!$D:$D,MATCH(A591,[All78C.csv]All78C!$E:$E,0),IFERROR(INDEX([All78CSP.csv]All78CSP!$D:$D,MATCH(A591,All78CSP.csv]All78CSP!$E:$E,0),
IFERROR(INDEX([All78D.csv]All78D!$D:$D,MATCH(A591,[All78D.csv]All78D!$E:$E,0),IFERROR(INDEX([All78M.csv]All78M!$D:$D,MATCH(A591,[All78M.csv]All78M!$E:$E,0),IFERROR(INDEX([All78L.csv]All78L!$D:$D,MATCH(A591,[All78L.csv]All78L!$E:$E,0),IFERROR(INDEX([All78P.csv]All78P!$D:$D,MATCH(A591,[All78P.csv]All78P!$E:$E,0,"")))))))

The length of this formula is making me think that some form of lookup table may be better.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,186
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