Lookup function gives wrong answer only for the last row.

varath

New Member
Joined
Oct 25, 2023
Messages
3
Office Version
  1. 365
Platform
  1. Windows
The lookup formula is giving wrong answer only fir the last row.

In the example photo given, I want to search for fruits given as reference from one column into other column and output the price.

All other answers are correct. But only last row gives wrong answer.
Can someone please help?

It would be greatly appreciated.
 

Attachments

  • IMG20231025193329(1).jpg
    IMG20231025193329(1).jpg
    130.7 KB · Views: 11

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
For lookup to work the data needs to be sorted ascending.
 
Upvote 0
Attaching another photo, as row number is not visible in previous one.
Change your formula from LOOKUP(...) to XLOOKUP(...) and you should be good to go
It might work. But I am solving this for a test. They have asked to use LOOKUP obly.
 
Upvote 0
If you have to use Lookup, then you will need to sort the data.
 
Upvote 0
Solution
Glad we could help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,215,069
Messages
6,122,958
Members
449,096
Latest member
Anshu121

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