Vlookup Hlookup is not giving desired result

Hi,

I don't see why you don't post your formula as FDibbins requested, it's no more effort than to post a link.

VLOOKUP is prone to errors when there are multiple "close enough" matches, try INDEX with MATCH:

=IF($H$4="A",INDEX($BA$24:$BA$134,(MATCH(D38,$AY24:$AY134,0))),"")

Note that I also added value if false of "", change this to whatever you want, you didn't provide for a value if false in your VLOOKUP formula.
 
Upvote 0

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
A few years ago, before I learned about INDEX/MATCH, I created a vlookup/hlookup that did the same thing, but it sure wasn't pretty. That's why I asked to see a sample of the formula ;)
 
Upvote 0
A few years ago, before I learned about INDEX/MATCH, I created a vlookup/hlookup that did the same thing, but it sure wasn't pretty. That's why I asked to see a sample of the formula ;)

Nothing is wrong with VLOOKUP/HLOOKUP. They also allow to embed MATCH...
 
Upvote 0

Forum statistics

Threads
1,216,084
Messages
6,128,721
Members
449,465
Latest member
TAKLAM

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