2 way lookup

mjimmy

New Member
Joined
Jan 12, 2020
Messages
1
Office Version
  1. 2016
Platform
  1. Windows
Hi,

I am trying to look for products from column B in column F. Once found I want to compare the 'capacity' with 'quantity'. If quantity is less than capacity for that product I want to display location, product code and quantity for that item.

Can this be done with INDEX and MATCH or will I have to use something else?
Untitled.jpg
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
jimmy,

I don't use built-in functions much, but since no one else has given a solution here I would say you probably can't do this. At least in a simple manner. The reason being: you're asking to return an array of data (location, product code, quantity) for more than 1 record at a time. For instance, that would be true for product code "BRAS-PD-02". But if you're wanting to return just one piece of data for *each* record, one at a time and show the results, one result per cell, per row, then I would guess you could use INDEX and MATCH. Otherwise, i'm guessing you need code.
 
Upvote 0

Forum statistics

Threads
1,214,376
Messages
6,119,178
Members
448,871
Latest member
hengshankouniuniu

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