# Index Match across multiple sheets - multiple results

#### Garuda44

##### New Member
Evening all, I have spent hours searching threads for an answer to this but to no avail.

I have a workbook with 10 sheets of cost codes, each with a data dump which is a list of specific costs in the cost code. I have a formula in there which picks out the unique suppliers in each dump and also SUMS the value for each supplier.

Now on a summary sheet, I have the following formula which works and returns the cost code (sheet name(s)) the chosen Supplier appears in.

=IFERROR(INDEX(SheetList,SMALL(IF(ISNUMBER(1/COUNTIFS(INDIRECT("'"&SheetList&"'!G2:G14"),\$B\$4)),ROW(INDIRECT("1:"&COUNTIFS(SheetList,"?*")))),ROWS(\$A\$1:A1))),"")

What I am struggling to create is the formula to tell me what the value is for the chosen supplier on each tab.

I know it possibly sounds complicated, if i can work out how to upload a simple version of my spreadsheet i will do so but any initial suggestions would be great as I have been trying different things all day.

Thanks

### Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.

#### Garuda44

##### New Member
example - so i have something like this on each sheet;

 irrigation 5000 winckworth 2500 cgma 10000 GIA 500 RBA 1000 stone 7000

Thanks ti the previous formula, on the summary sheet i have this;

 cgma E6708 E6556 E5666

where column 2 are the sheet names, that column 1 appears in. What I need is the formula which will can be dropped down in column 3 and tell me 10000 next to E6708 if that is what that sheet says, then if the value is 3000 in sheet E5666, then also return that value.

Really hope this makes it clearer.