Does anyone Know how to make VLOOKUP&IF work together

bloodmilksky

Board Regular
Joined
Feb 3, 2016
Messages
202
Order Date
Customer Order Number
Order Number
Position Number
Item
SKU
Order Quantity (Packs)
Comments
21/12/2015
2000145943
708817101
133
LCLARCT387-0375125160
-0375125160
1
1/1/1970 12:00:00 AM









<tbody>
</tbody>




  • So basically I have set up VLOOKUP in the comments column to return a date for the item in the item column.


  • The table array I have pulled from another application and is on tab 2.


  • The problem I am having is that I have 2x item codes that I need to have the return value in the comments section not as 1/1/1970 12:00:00 but as “ Made To Order”, these item codes are LCLARCX387 & LFQXLXR387


  • I managed to come up with this =IF(OR(ISNUMBER(FIND({"LPCMNXR387+0175+300Z17","LCLARCX*","LFQXLXR*"},E12))),"MTO","AWAITING") but It wont intergrate into the VLOOKUP formula(=VLOOKUP(E2,LENS,2,FALSE))


  • It should look like this if it works

Order Date
Customer Order Number
Order Number
Position Number
Item
SKU
Order Quantity (Packs)
Comments
25/01/2016
2000146725
708998930
1
LCLARCX387+0025325025
+0025325025
1
Made to Order

<tbody>
</tbody>
 

Excel Facts

Why are there 1,048,576 rows in Excel?
The Excel team increased the size of the grid in 2007. There are 2^20 rows and 2^14 columns for a total of 17 billion cells.
Why is the result "Made to order" and not the date? It's not clear. Can you post a sample source data from wherever your vlookup is looking? Also sample of expected results.
 
Upvote 0
Why is the result "Made to order" and not the date? It's not clear. Can you post a sample source data from wherever your vlookup is looking? Also sample of expected results.

my apologies so the Made To Order value should show when there is a "xr" or "rcx" and without these values it should be showing the date.



So VLOOKUP is pulling the information form sheet 2 but I have used name referencing "products"

LFBXLXR387-178456005401/1/1970 12:00:00 AM
LCOLRCX387+12345678911/1/1970 12:00:00 AM
LCLARCT387+0854682136412/28/2015 6:21:31 PM
LBLACDT387+742854687421/4/2016 2:09:33 PM

<tbody>
</tbody><colgroup><col><col></colgroup>

but instead of the date for the items with xr in them I would like it to say MTO.

LFBXLXR387-17845600540Made To Order
LCOLRCX387+1234567891Made To Order
LCLARCT387+0854682136412/28/2015 6:21:31 PM
LBLACDT387+742854687421/4/2016 2:09:33 PM

<tbody>
</tbody>
 
Upvote 0
In that case, try the SEARCH function. For instance, if your item number is in E2, try something like this:
=IF(OR(ISNUMBER(SEARCH("rcx",E2)),ISNUMBER(SEARCH("xr",E2))),"Made to order",VLOOKUP(E2,LENS,2,FALSE))

I added your VLOOKUP at the end according to your first post
 
Upvote 0

Forum statistics

Threads
1,216,119
Messages
6,128,941
Members
449,480
Latest member
yesitisasport

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