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: 17

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop
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,223,952
Messages
6,175,593
Members
452,654
Latest member
mememe101

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