Index formula lookup

sprtfan34

New Member
Joined
Oct 23, 2019
Messages
19
I am using the following formula:
=INDEX('120219'!$Z$13:$Z$112,MATCH($A2,'120219'!$B$13:$B$112,0))

However is the value in A2 does not exist in the B column of my table then it returns a random value and throws other values off as well. if there a work around?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
32,317
Office Version
365
Platform
Windows
With that formula, if A2 is not found, it should return #N/A, not a "random value"
 

sprtfan34

New Member
Joined
Oct 23, 2019
Messages
19
It actually entered the value under it in the column. Almost as if the returned value was shifted up by one cell. Which threw all other returned values off by one as well.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
32,317
Office Version
365
Platform
Windows
If the formula in post#1 is exactly the same as the formula in your sheet, I don't think that can happen.

If A2 is not found in col B you will get #N/A, if it is found you will get the corresponding value from col Z. So if its found in B35, it will return Z35.
 

sprtfan34

New Member
Joined
Oct 23, 2019
Messages
19
The lists may not be in the same order from the master page to the "120219" page will this pose a problem. I thought it would just search for the name and return the value no matter where it was in the table.
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
32,317
Office Version
365
Platform
Windows
The order makes no difference.
Did you copy/paste your formula to the board, or type it out again?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
32,317
Office Version
365
Platform
Windows
In that case it should work.
Do you have any merged cells in either of your sheets?
 

Forum statistics

Threads
1,082,298
Messages
5,364,377
Members
400,795
Latest member
Vercas

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