Getting values based on similiar IDs in two different books

Ishabida

New Member
Joined
Oct 15, 2007
Messages
1
Hello all, my first time here:)

I have 2 books, both of them contain 4k rows of information. In each book there is a column called unit_id, the amount of IDs are not the same in both books. In one of the books I have min_stock column, indicating what the minimum stock for a given item(unit_id) should be. In the other book I have the same setup but with no numbers indicating the value of min_stock.

What I want to do is to do a search based on the IDs(compare them) and get the min_stock value inserted if the function find a match.

I tried with the VLOOKUP function but all I manged was to get it to compare the IDs and insert #N/A or the ID if it was a match.

Hope someone can help me out.

Thanx in advance

Ishabida
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Hi
It sounds to me like you have wrong value in the index_number parameter, or the Min-stock data is in a column prior to the stock code.
 
Upvote 0
Hi
It sounds to me like you have wrong value in the index_number parameter, or the Min-stock data is in a column prior to the stock code.
 
Upvote 0

Forum statistics

Threads
1,225,357
Messages
6,184,480
Members
453,235
Latest member
dirtisbrown17

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