Nested If/Or statement with a VLookup based off a list using first 2 characters

Deelof

New Member
Joined
Aug 30, 2023
Messages
46
Office Version
  1. 2019
Platform
  1. Windows
I want to extend my current formula to add a condition using a list based off the first 2 characters of the variant SKU.
Any suggestions?

StatusPublishedVariant SKURESULTCURRENT FORMULAADDITION I WANT TO MAKE AS NESTED
Archived
FALSE​
BK00001-1NOT TO GO ON=IF(OR(F6="ACTIVE",G6="TRUE"),"ON","NOT ON")LEFT 2 CHARACTERS AGAINST THE LOOKUP LIST MATCH AND RETURN "NOT TO GO ON"
Active
TRUE​
CH00001-1ON
Draft
FALSE​
BT00001-1NOT ON
Active
TRUE​
MW00002-1NOT TO GO ON
Archived
FALSE​
AR00001-1NOT ON

VLOOKUP LIST
BKNOT TO GO ON
BUNOT TO GO ON
CKNOT TO GO ON
DWNOT TO GO ON
FFNOT TO GO ON
FPNOT TO GO ON
GMNOT TO GO ON
HDNOT TO GO ON
IBNOT TO GO ON
IRNOT TO GO ON
KTNOT TO GO ON
MWNOT TO GO ON
SFNOT TO GO ON
STANOT TO GO ON
TSNOT TO GO ON
TVNOT TO GO ON
VCNOT TO GO ON
WMNOT TO GO ON
 

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.
Test and Add -

--Lookup(Left(C2,2),Lookup Range)>1,"Not to Go On"
Is that to go before of after my current formula? =IF(OR(F6="ACTIVE",G6="TRUE"),"ON","NOT ON")

=Lookup(Left(C2,2),Lookup Range)>1,"Not to Go On",IF(OR(F6="ACTIVE",G6="TRUE"),"ON","NOT ON")
=IF(OR(F6="ACTIVE",G6="TRUE"),"ON","NOT ON"),Lookup(Left(C2,2),Lookup Range)>1,"Not to Go On"
 
Upvote 0
=IF(OR(F6="ACTIVE",G6="TRUE"),"ON",Lookup(Left(C2,2),Lookup Range)>1,"Not to Go On",0)

OR

=IF(Lookup(Left(C2,2),Lookup Range)>1,"Not to Go On",OR(F6="ACTIVE",G6="TRUE"),"ON",0)

Like above but Lookup range should be defined

Moreover the order has to be your order of preference
 
Upvote 0
=IF(OR(F6="ACTIVE",G6="TRUE"),"ON",Lookup(Left(C2,2),Lookup Range)>1,"Not to Go On",0)

OR

=IF(Lookup(Left(C2,2),Lookup Range)>1,"Not to Go On",OR(F6="ACTIVE",G6="TRUE"),"ON",0)

Like above but Lookup range should be defined

Moreover the order has to be your order of preference
So I have 3 results I want returning: ON / NOT ON / NOT TO GO ON.
Also if C is blank I want NOT ON to be returned.
 
Upvote 0
So I have 3 results I want returning: ON / NOT ON / NOT TO GO ON.
Also if C is blank I want NOT ON to be returned.
Share the actual formula you are using...

I will help you improving it to your needs
 
Upvote 0
Share the actual formula you are using...

I will help you improving it to your needs
I am only currently using this: =IF(OR(F6="ACTIVE",G6="TRUE"),"ON","NOT ON") which only returns On or NOT ON based off columns A and B.
I want to extend this to also use the list and "NOT TO GO ON" based off the 1st 2 characters of column C's code.
 
Upvote 0
How can I help you further unless you try and set up a new formula and come up with next challenge...

We are not working in an imaginary situation, so populate a new formula and then come up with the challenges remaining.
 
Upvote 0
How about
Fluff.xlsm
FGHIJKLMNOP
1VLOOKUP LIST
2BK
3BU
4CK
5StatusPublishedVariant SKURESULTDW
6ArchivedFALSEBK00001-1NOT TO GO ONNot to go onFF
7ActiveTRUECH00001-1ONONFP
8DraftFALSEBT00001-1NOT ONNOT ONGM
9ActiveTRUEMW00002-1NOT TO GO ONNot to go onHD
10ArchivedFALSEAR00001-1NOT ONNOT ONIB
11IR
12KT
13MW
14SF
15STA
16TS
17TV
18VC
19WM
Sheet7
Cell Formulas
RangeFormula
J6:J10J6=IF(ISNUMBER(MATCH(LEFT(H6,2),$P$2:$P$19,0)),"Not to go on",IF(OR(F6="ACTIVE",G6="TRUE"),"ON","NOT ON"))
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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