VLOOKUP & IF STATEMENT Used Together

bloodmilksky

Board Regular
Joined
Feb 3, 2016
Messages
202

  1. Hi Guys,

    I am trying to run a report for dates for product supply and so far I have managed to use VLOOKUP to bring me back the dates for all of the products I am reporting but I now want to improve the report by providing a value other than dates such as " made to order" for products that have XR in them.

    ex: LTMVXR60052590 MADE TO ORDER

    I have managed to get the Made To Order returned by using IF statement by itself (Below)
  2. =IF(OR(ISNUMBER(SEARCH({"LFQXLXR","LCLARCX"},Sheet1!A1))),"Made To Order")
  3. But Wont work when I try them together.
  4. VLOOKUP(D2&E2,'PRODUCTS*IF(OR(ISNUMBER(FIND({"NXR","RCX387"},XR))),"MTO","AWAITING")


    Any help would be great
 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
The range to lookup begins 'PRODUCTS...

1) Where's the closing apostrophe?
2) Why do you have an asterisk in the formula, you're making it appear as though that's part of the filename, ie 'PRODUCT*MTO' or 'PRODUCTS*AWAITING'
3) You havent referenced the column you want to return in the VLOOKUP
Format is VLOOKUP(lookvalue, range, column, match)

Try changing it to & and inserting the closing quote wherever it needs to be.
You're probably better off listing the various ranges you need to lookup.
 
Last edited:
Upvote 0
Hi,

I have used name referencing to shorten the formula "Products" so Vlookup is looking in products for the product and the date.
but I wanted the IF Statement to work so that if an XR popped up it would return MTO

I do appologise its my first post so very new to this. would there be a problem though of me posting the ranges online?
 
Upvote 0

Forum statistics

Threads
1,215,480
Messages
6,125,053
Members
449,206
Latest member
Healthydogs

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