Multiple If Statement on a Vlookup

bspence

New Member
Joined
Jul 31, 2017
Messages
13
Hello, need help and struggling with a multiple If statement on a vlookup

=IF(VLOOKUP(A7,'Stock Planning - All Orders on MOM By Line Not Shipped.csv'!$C:$F,4,0)="BO","No","Yes")

I want to also include if the vale in the lookup is PB as well as BO,

How do i do this?
 
Thanks! Perfect, apart from it only checks the first one, but that order number has multiple lines, i need it to find anything in that where the BO or PB Is found
 
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
This part does that:
Rich (BB code):
FIND(VLOOKUP(A7,'Stock Planning - All Orders on MOM By Line Not Shipped.cvs'!$C:$F,4,0),"BOPB")
By finding the VLOOKUP term in the string "BOPB", i.e. if "BO" matches any part of "BOPB" or "PB" matches any part of "BOPB", returning the position number of the match (1 or 3).It returns 0 if no match with the IFERROR wrapped around it, then you test if the value is greater than 0 ("Yes") or not ("No").

It works on filling cells A1:A3 with "BO", "PB", "AB" and running that part of the formula against it returning values of "Yes", "Yes" and "No" respectively.

This works but only for the first item it finds in the vlookup and not all items found, some of the same lookups have the same lookup number in 20 rows, some with BO, some with PB, how can i get it to look at all of them?
 
Upvote 0

Forum statistics

Threads
1,224,824
Messages
6,181,187
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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