Edit VLOOKUP Formula to look at an additional column

realniceguy5000

Board Regular
Joined
Aug 19, 2008
Messages
148
Hello, I currently have the 1st formula below which has been working just fine, however now that we have duplicate lot numbers in a column and it now returns the same value for both item numbers. What I would like is it to look at an additional column to separate these type of problems. Here is the formula I need to edit:
Code:
=IF(ISERROR(VLOOKUP(E2&"",OFFSET('Lot Scans'!$A$1,0,0,COUNTA('Lot Scans'!$A:$A),5),5,FALSE)),0,VLOOKUP(E2&"",OFFSET('Lot Scans'!$A$1,0,0,COUNTA('Lot Scans'!$A:$A),5),5,FALSE))
Basically I need to merge the formula above with this one below
Code:
=IF(ISERROR(VLOOKUP(D2&"",OFFSET('Lot Scans'!$B$2,0,0,COUNTA('Lot Scans'!$B:$B),4),4,FALSE)),0,VLOOKUP(D2&"",OFFSET('Lot Scans'!$B$2,0,0,COUNTA('Lot Scans'!$B:$B),4),4,FALSE))
Could someone help me complete this? Thanks as always for the help. Mike
 

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