Index match using sheet name in array

MinerExcel

New Member
Joined
Apr 18, 2016
Messages
16
I couldn't find anything that seemed like it could help me.

This is my problem if you choose to accept. I have a workbook of my products inventory. On the Cover sheet I have an array named Products first column is product code and the second is product description.
AAAB
11001/4" Washed Chips
2
101State D
31051" CCR
42003/8" Clean
52051" Clean

<tbody>
</tbody>
I have a sheet for each product with the product code for the tab name.
I am trying to make a formula that I can use on all sheets that will read the tab name, lookup the description from the array.

For example on sheet 105 I would like the cell value to read 105 - 1" CCR. This is the formula I tried however it returned #N/A

=MID(CELL("filename",AG3),FIND("]",CELL("filename",AG3))+1,256)&" - "&VLOOKUP(INDIRECT(MID(CELL("filename",AG3),FIND("]",CELL("filename",AG3))+1,256)),West!AA1:AB78,2,FALSE)

If anyone has any ideas for me it would be greatly appreciated.

Thank you,
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
16,666
Try:
Code:
=MID(CELL("filename",AG3),SEARCH("]",CELL("filename",AG3),1)+1,256)+0&" - "&VLOOKUP(MID(CELL("filename",AG3),SEARCH("]",CELL("filename",AG3),1)+1,256)+0,West!$AA$1:$AB$78,2,0)
 

MinerExcel

New Member
Joined
Apr 18, 2016
Messages
16
Are you kidding me I just needed to make that FALSE a zero.
That Works! That AG3 really doesn't matter does it? It has no value on my sheet.

Thank you
 

JoeMo

MrExcel MVP
Joined
May 26, 2009
Messages
16,666
Are you kidding me I just needed to make that FALSE a zero.
That Works! That AG3 really doesn't matter does it? It has no value on my sheet.

Thank you
If you look closely there's a +0 that makes all the difference. You can swap the 0 in the lookup for FALSE, they are equivalent, and yes you can use any cell address on the sheet with the CELL function.
 

Forum statistics

Threads
1,082,139
Messages
5,363,362
Members
400,730
Latest member
cookie123

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top